Skip to main content
19

How do you handle a production incident?

MediumSREIncidentsOn-call

How do you handle a production incident, from the first alert to the postmortem?

TL;DR

The priority is restoring service first, root cause later. Acknowledge the alert, assess impact and severity, and declare an incident with clear roles: an incident commander who coordinates and decides, people who investigate and fix, and a communications lead who updates stakeholders and the status page. Look for what changed (deploys, config, traffic, dependencies), and mitigate with the fastest safe action: roll back, turn off a feature flag, fail over, or scale up. After recovery, write a blameless postmortem with a timeline, root cause, contributing factors and tracked action items.

Key points

  • Severity levels (SEV1–SEV4) decide who gets pulled in and how often you communicate.
  • One incident channel and a running timeline of actions and findings, timestamped.
  • Mitigation beats diagnosis: if the deploy 10 minutes ago correlates, roll it back now and investigate after.
  • Communicate on a cadence ("next update in 30 minutes"), even if there's no news.
  • Blameless means focusing on how the system allowed the failure, not who pressed the button. People share honestly only when it's safe.
  • Good action items are specific, owned and dated: "add an alert on queue lag over 5 minutes", not "be more careful".
  • Track MTTD (time to detect) and MTTR (time to restore) over time.

Example

text
14:02  Alert: checkout error rate 12% (SLO burn)
14:04  IC declared SEV2, #inc-checkout opened
14:07  Correlated with deploy api v1.42 at 13:58
14:09  Rolled back to v1.41
14:12  Error rate back to 0.1%; monitoring
Next day: postmortem → missing null check + no canary for this service
Actions: add canary (owner, date), add contract test (owner, date)

Common follow-ups

  • What makes a good on-call setup? Sustainable rotations, actionable alerts only, runbooks, escalation paths, and time to fix what pages you.
  • What's the "five whys"? Asking why repeatedly to move from the trigger to deeper causes. Real incidents usually have several contributing causes, not one.

What interviewers look for

Tip

Mitigate first, clear roles and communication, "what changed?", and a blameless postmortem with real follow-up.

  • Red flag: debugging the root cause for an hour while users are down, when a rollback was available.

Was this helpful?

Related questions