Interview Prep/DevOps Fundamentals/Reliability, monitoring & incidents

What is a runbook?

BeginnerConceptReliability, monitoring & incidents
Answer

In one line: A runbook is a step-by-step guide for handling a specific operational task or alert — what to check, what commands to run and when to escalate — so anyone on call can respond quickly and consistently.

What a good runbook includes:

  1. Title and trigger — which alert or situation it's for ("Orders API 5xx rate high").
  2. Impact — what users experience and how serious it is.
  3. Quick checks — dashboards to open, queries to run.
  4. Diagnosis steps — common causes and how to confirm each.
  5. Fix / mitigation steps — exact commands, with what "good" looks like afterwards.
  6. Escalation — who to contact if the steps don't work.
  7. Links — dashboards, logs, architecture diagram, related post-mortems.
  8. Last reviewed date and owner.

Example snippet:

## Alert: OrdersHighErrorRate
1. Check Grafana "Orders overview" — is it all endpoints or one?
2. Was there a deployment in the last 30 minutes? (Argo CD → orders → History)
   - Yes → roll back: `helm rollback orders -n orders`
3. Check payments dependency: `kubectl -n orders logs deploy/orders | grep -i timeout`
   - Timeouts to payments → page the payments on-call.
4. Database connections > 90%? Scale replicas down to reduce load and page the DBA on-call.
Escalate to: #orders-team, then the engineering manager on-call.

Good practices:

  • Link every alert to its runbook (in the alert annotation).
  • Update runbooks after incidents — post-mortem action items often include runbook changes.
  • Keep them short and current — an outdated runbook can be worse than none.
  • Automate over time — repeated runbook steps become scripts, then automatic remediation ("runbook automation").

Example of value: after a junior engineer handled a 3 a.m. disk-full alert in 5 minutes using the runbook, the team automated the fix entirely with log rotation and an auto-expanding volume.

Tip for interviews: mention linking alerts to runbooks and evolving runbooks into automation.

All DevOps Fundamentals questions

More on Reliability, monitoring & incidents