All jobs / DevOps / SRE / cloud / CI/CD
DevOps / SRE / cloud interview question · 1–3 years
What belongs in a CI/CD pipeline before production?
The strongest answer
Build a unique artifact, test it, scan what you reasonably can, and deploy that same artifact — I do not rebuild on the way to prod
Why it works
Exactly. One artifact, promoted. Rebuilds on the path are new unknowns.
What a good answer covers
- Build once.
- Test that artifact.
- Promote it.
- Do not rebuild for prod.
Answers that fall short
- Close, but not the strongest: Deploy from the branch name; artifacts are ceremony
Branch names are not bits. - Weak: Skip tests on main because we tested the PR
Main can still break after merge. - Red flag: A manual FTP as the last stage, for control
FTP as “control” is a hole.
Who gets asked this
More CI/CD questions
- Staging is good. How do those bits get to production?
- What is blue/green, in one sentence you would say in a room?
- What is a canary deploy, as opposed to blue/green?
- A bad change is already live. The store / the cluster is slow to revert. What is faster?
- The team wants true continuous deploy to production. What do you still insist on?
- Every squad has a unique pipeline. You want a paved road. What do you standardise first?
- The runbook says “rollback.” The schema migrated forward. What do you actually do?
- Blue/green is easy for stateless pods. What do you say about the database?