Running an incident · core
Rollbacks, feature flags and recent changes
A rollback or a flag is the fastest way to stop damage, but it reverts code, not data, jobs or state. You must know what a rollback does not undo, and have flags with a kill switch before you need them.
Explain it out loud
Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.
Practise by voiceThe notes
What you must know
- Rollback reverts the code version only. It does not undo a schema change, rows already written, a backfill still running, or messages already sent.
- A background job or backfill started by the release keeps running after the rollback. Pause it too, or latency and replica lag stay high.
- A feature flag turns one code path off in seconds, with no deploy. It needs a kill switch that works fast, and a safe default when the flag service is down.
- The list of recent changes is the first thing to read: deploys, config, flags, infrastructure and data changes. Revert the most likely one, one change at a time.
- Config is code. A change reaching every server at once can crash them all. Validate config against a schema, keep the last good version, and roll it out to a small group first.
- A config client that saves every received config as "last known good" before checking it makes the fallback bad too. Check before saving.
- During an incident, freeze other changes to the config service, except the fix, with one person approving.
- After many crashes Kubernetes waits longer between restarts (up to 5 minutes by default). When the fix lands, many pods start together with cold caches: stagger restarts and bring traffic back gradually.
The red pen
Common traps: mistake → fix
Mistake: A rollback always brings the system back to the old state
Fix: it reverts code only; data, jobs and external effects stay.
Mistake: A bad config change is small, so it is safe
Fix: config reaches every server at once and can be worse than a code bug.
Mistake: If rollback helped only halfway, the rollback is wrong
Fix: something else came with the release (a backfill, a migration, a flag).
Easy to hard
Questions interviewers ask, easy to hard
- p99 latency doubled after a deploy. Do you roll back or investigate first?
- You rolled back, but latency is only half better. Why?
- A config change crashes every server. What do you do, and why might the obvious revert fail?
- How do you design a config rollout so one bad change cannot take down everything?
Practise
Practise with these questions
Explain it out loud
Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.
Practise by voiceYour first interview is free
Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.