During an incident, you can roll back or push a forward fix the developer says is ready in 10 minutes. How do you decide?
IntermediateScenarioOutages and incident response
Answer
Situation read → Rolling back is usually faster and safer because it returns to a known-good state. A forward fix is new, untested code going out under pressure.
What I'd do →
- Default to rollback if the previous version is known to work and rollback is safe (no one-way migration, no incompatible data written).
- Fix forward only when rollback isn't possible or is riskier: for example, the new schema can't be read by the old code, or the bug is in data rather than code.
- If fixing forward, keep it minimal, run it through the pipeline (with the fast-track path, not skipping tests), and have a rollback plan for the fix.
- Set a time box: "if the fix isn't live and verified in 20 minutes, we roll back".
Why → "10 minutes" estimates during incidents are often wrong; a rollback has a known outcome.
Interview tip → Say "rollback is the default; fix forward needs a reason"; that framing is what senior engineers use.
More on Outages and incident response
You're on call and get paged at 3 AM: "Checkout error rate 25%". What do you do in the first 15 minutes?BeginnerA major outage involves four teams and everyone is talking at once. You're asked to be incident commander. What do you do?IntermediateHow do you prove your platform survives the loss of a whole Availability Zone?AdvancedOn-call gets 300 alerts a day and people have started ignoring them. How do you fix alerting?IntermediateA customer told you about an outage on social media before your monitoring did. How do you fix detection?BeginnerDuring an outage, your Prometheus and Grafana went down too, because they ran in the same cluster. How do you design monitoring so this doesn't happen?Advanced