All jobs / DevOps / SRE / cloud / CI/CD
DevOps / SRE / cloud interview question · 1–3 years
Staging is good. How do those bits get to production?
The strongest answer
The same image / bundle id is promoted — I do not `docker build` again on the prod runner “to be sure”
Why it works
Exactly. Promote the digest. A second build is a second artifact.
What a good answer covers
- Promote by digest.
- Config differs; bits do not.
- Do not rebuild for prod.
- Do not trust latest over time.
Answers that fall short
- Close, but not the strongest: I rebuild with prod flags so it is more production-like
Prod flags belong in config, not a second compile. - Weak: I rsync my staging container’s filesystem
Rsync of a container is a pet. - Red flag: I tag latest on staging and pull latest in prod an hour later
latest an hour later may not be the staging bits.
Who gets asked this
More CI/CD questions
- 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?
- A canary looks “fine” on CPU. Users on the canary cannot check out. What was wrong?