Skip to content
RED SAGSkills
easyDevOps Engineer interview question

Walk me through the stages of a typical CI/CD pipeline you would build for a web service.

What the interviewer wants to hear

  • Trigger on commit or pull request
  • Build, lint and unit tests
  • Security scans and artifact or image creation
  • Deploy to staging and run integration tests
  • Production deploy with approval or progressive rollout and rollback

Model answer

The pipeline starts when someone opens a pull request or pushes a commit. First it checks out code, restores the dependency cache, then runs linting and unit tests so developers get feedback in a few minutes. Next it builds a versioned artifact, usually a container image tagged with the commit SHA, and runs security checks such as dependency and image scanning. After merging to main, the same image is pushed to the registry and deployed to a staging environment, where integration and smoke tests run. Production deployment uses the exact same image, either after a manual approval or automatically with a canary or rolling update. Health checks and metrics decide whether to continue, and if something goes wrong the pipeline can roll back to the previous version quickly.

Can you answer it under time pressure?

Take a timed easy round and get scored on every answer.

Start mock interview

More easy DevOps Engineer questions