All jobs / DevOps / SRE / cloud / CI/CD
DevOps / SRE / cloud interview question · 3–5 years
The runbook says “rollback.” The schema migrated forward. What do you actually do?
The strongest answer
I say so: the app can roll back only if the schema is compatible, otherwise we roll the app forward or run a written down-migration — I do not pretend a button undoes data
Why it works
Exactly. Expand/contract. A button does not rewind rows. Restoring yesterday is a new incident.
What a good answer covers
- Name schema compatibility.
- Expand/contract migrations.
- Do not restore-over writes as “rollback.”
- Write the true undo.
Answers that fall short
- Close, but not the strongest: I roll the app back anyway; the DB will cope
Incompatible down is a crash loop. - Weak: I restore yesterday’s database onto prod and call it rollback
Yesterday’s DB loses a day’s writes. - Red flag: I hide the incompatibility in the runbook
Hiding it is a red flag.
Who gets asked this
More CI/CD questions
- 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?
- Who aborts a canary, and on what?
- Squads go around your CI templates. What is the diagnosis?
- CI is a queue of 90-minute jobs. What do you change at company scale?
- When is a deploy freeze a grown-up tool, not folklore?
- Backend engineers will keep owning their services. What do you still own as platform?
- When do you say no to continuous deploy for a given path?