All jobs / DevOps / SRE / cloud / CI/CD
DevOps / SRE / cloud interview question · 0–1 years
A deploy goes bad. What is a rollback?
The strongest answer
Put the last known-good artifact back in service — I do not “roll forward” by hot-editing the box unless that is the only path and I say so
Why it works
Exactly. Last good bits, already built. Git on a laptop is not the environment.
What a good answer covers
- Redeploy the last good artifact.
- Know how to find that artifact.
- Do not pet the box as plan A.
- Say when you must roll forward instead.
Answers that fall short
- Close, but not the strongest: Revert the git commit on my laptop and hope prod notices
A local revert is not a deploy. - Weak: Reboot the node
A reboot may be a bounce; it is not a rollback. - Red flag: Turn the site off until morning
An overnight outage is not a rollback.
Who gets asked this
More CI/CD questions
- Who builds the artifact we put in production?
- When is a Friday production deploy a bad idea?
- What belongs in a CI/CD pipeline before production?
- 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?