Skip to content

Lesson 3 of 9 · 27m

Containment and Mitigation Decisions

Choose interventions by reversibility, blast radius, evidence cost, and time-to-impact rather than hunting for perfect root cause too early.

New responders often treat mitigation and diagnosis as the same activity. They are not. Mitigation asks: how do we reduce harm now? Diagnosis asks: why did this happen? During a live incident, mitigation usually wins. You can restore service with an imperfect understanding and diagnose afterward — unless the mitigation itself risks data integrity or destroys the evidence you need.

Build the decision frame

Before acting, say the trade-off out loud:

Option         time to effect   reversibility      blast radius     evidence cost
Rollback       4 minutes        moderate           all regions       low
Failover       8 minutes        high               one region        medium
Scale workers  3 minutes        high               queue only        low
Disable flag   1 minute         high               new checkout UI   low

This table prevents the most seductive option from winning by default. Sometimes the safest mitigation is not the fastest; sometimes the fastest is so reversible that it is obviously correct.

Prefer boring reversible actions

The classic ladder:

feature flag off -> traffic shift -> rollback -> scale out -> failover

Use it as a mental checklist, not a religion. A feature flag that hides symptoms while corrupting writes is not safe. A rollback can be impossible after a destructive migration. Replication failover can carry the corruption with it.

Freeze the blast radius

When data corruption or security exposure is possible, containment may mean stopping writes, revoking tokens, disabling a queue consumer, isolating a tenant, or blocking a hostile path:

kubectl scale deployment/import-worker --replicas=0 -n prod
aws sqs get-queue-attributes   --queue-url https://sqs.us-east-1.amazonaws.com/123456789012/imports   --attribute-names ApproximateNumberOfMessages

Then record what was frozen, when, and by whom. Half-contained systems are dangerous because everyone assumes someone else stopped the harmful path.

Do not repair the crime scene casually

In security incidents and data-integrity incidents, evidence has operational value. Capture the minimum before invasive action:

kubectl logs deploy/checkout-api -n prod --since=30m > checkout-api.log
aws cloudwatch get-metric-statistics   --namespace AWS/ApplicationELB --metric-name HTTPCode_Target_5XX_Count   --start-time 2026-11-30T13:50:00Z --end-time 2026-11-30T14:30:00Z   --period 60 --statistics Sum > alb-5xx.json

This is not forensic perfection. It is enough preserved context that diagnosis does not become folklore.

Declare success criteria for mitigation

"Rollback deployed" is not mitigation success. "Checkout error rate below 0.5% for ten minutes and no new duplicate orders" is. Define measurable recovery before acting, otherwise you will move goalposts while tired.

Field notes

  • Rollback is a mitigation, not a confession. Do not wait for the root-cause winner to allow it.
  • Never perform an irreversible migration, deletion, or key rotation during panic without a second competent reviewer.
  • If a mitigation reduces symptoms but increases hidden data risk, say that explicitly before applying it.
  • Keep a list of actions already tried. Repeated interventions complicate diagnosis and can multiply damage.

Was this lesson helpful?

Sign in to rate