JuniorCI/CD

Design the pipeline for a typical web application. What stages would you have, and in what order?

What they are really testing: Whether you order stages by feedback speed or just list every tool you have heard of. They want to see the cheap fast checks gating the slow expensive ones.

A real interview question

Design the pipeline for a typical web application. What stages would you have, and in what order?

What most people say

drag me

Build, test, deploy.

It is technically the right shape but shows no thinking about ordering, security scanning, artifact promotion, or where a human decision belongs. Every candidate says this, so it distinguishes nobody.

The follow-ups they ask next

  • Where would you put database migrations?

    As a separate step before the app deploy, written to be backward compatible so the old and new app versions can both run during rollout. Never as part of app startup.

  • What runs on a pull request versus on main?

    PRs get the fast gates: lint, unit, build, scan. Main additionally gets integration, staging deploy and promotion. The split keeps PR feedback under a few minutes.

What the interviewer is listening for

  • Orders by feedback speed and says so
  • Builds once and promotes
  • Puts security scanning in the pipeline

What sinks the answer

  • Lists tools instead of stages
  • Rebuilds per environment
  • No security step at all

If you genuinely do not know

Say this instead of freezing. Reasoning out loud from what you do know beats silence every single time, and a good interviewer is listening for exactly that.

I order by feedback speed: [lint and unit tests first], then [build and tag by sha, scan the image], then [integration tests], then [deploy to staging and smoke test], then [promote the same artifact to production behind a gate].

Keep going with ci/cd

All 87 devops engineer questions

Knowing the answer is not the same as recalling it under pressure

Sign in to send the questions you fumble to spaced recall, so they come back right before you would forget them, and learn the concepts behind them with hands-on labs.

Start free