On-Call Practices and Runbook Design Questions
Running a sustainable on-call function: rotation design, production-readiness handoffs, and authoring runbooks that let responders act quickly. Covers runbook automation, on-call culture, escalation-ready documentation, and readiness reviews before a service takes production traffic. The operational-preparedness discipline that makes incidents survivable.
An automated remediation keeps firing and the service flips between healthy and unhealthy as a result, a feedback loop. How would you design the automation to avoid this kind of flapping?
Sample Answer
Direct answer
Stop the flap by putting a circuit breaker on top of the remediation itself: require a minimum number of consecutive failures before acting at all, cap how many automated attempts happen before backing off exponentially, and open the breaker entirely, stopping automated action, after repeated failures so the automation isn't the thing keeping the service oscillating. The automation should get less aggressive the more it fails, not equally aggressive every time.
Structured elaboration
State machine
stateDiagram-v2
[*] --> Closed
Closed --> Remediating: threshold breached
Remediating --> Closed: health recovers
Remediating --> Open: still failing after attempt
Open --> HalfOpen: cooldown elapses
HalfOpen --> Closed: canary healthy
HalfOpen --> Open: canary fails
Open --> HumanApproval: max attempts reached
Why each piece prevents flapping
- A failure-count threshold before acting at all, requiring multiple consecutive failed health checks within a window rather than one, filters out single transient blips that don't need remediation.
- An exponential cooldown between attempts means each retry backs off further, so a persistent problem gets fewer, more spaced-out remediation attempts instead of a tight restart loop.
- The circuit breaker's open state, where the system stops acting entirely and escalates to a human after enough failed attempts, is what actually breaks the flap, not just slows it down.
- The half-open probe tests recovery with a single canary instance or request after the cooldown, before trusting the system enough to resume full automated remediation.
- Staggered, single-instance restarts that respect the dependency graph prevent one service's remediation from cascading into a restart storm on services that depend on it.
Worked example
With a base cooldown of 60 seconds and a cap of 1800 seconds (30 minutes), the cooldown after the nth failed attempt is:
cooldownn=min(base⋅2n−1,max)
cooldown1=min(60⋅20,1800)=60 s
cooldown2=min(60⋅21,1800)=120 s
cooldown3=min(60⋅22,1800)=240 s
cooldown4=min(60⋅23,1800)=480 s
cooldown5=min(60⋅24,1800)=960 s
cooldown6=min(60⋅25,1800)=min(1920,1800)=1800 s
After the sixth failed attempt the breaker opens: no further automated action until a human intervenes. This pattern applies whether the underlying trigger is a transient availability-zone network partition, a database connection-pool spike, or intermittent upstream timeouts. The automation doesn't need to know which cause it's looking at, because the backoff and breaker behave the same regardless.
Trade-offs and pitfalls
- Tuning the failure-count threshold too low means genuinely fast-recurring problems get no remediation attempt before the breaker opens; too high delays help for the transient blips the system was meant to catch.
- A longer maximum cooldown reduces flap risk but leaves a genuinely fixable problem unremediated for longer; the cap should be informed by how long a typical transient cause, like an AZ partition or a connection spike, usually takes to self-resolve.
- Forgetting the dependency graph is the most common miss: fixing one service's flap by restarting it can trigger a second flap downstream if that service health-checks against the still-recovering upstream.
How would you get a new engineer ready to join the on-call rotation? Walk through what you'd want them to do before their first solo shift.
Sample Answer
Readiness is a checklist, not a countdown: get access and tooling working first, have them study and sign off on the runbooks for their services, shadow several live pages, then run one supervised tabletop and one supervised live (or simulated) incident before they take a shift alone with a mentor reachable but not present.
A four-week ramp
| Week | Focus | Activities | Exit criteria |
|---|---|---|---|
| 1 | Access + orientation | Provision accounts/VPN/MFA/pager, architecture overview, assigned runbook study | All access verified, runbooks read |
| 2 | Guided practice | Shadow 3-4 live alerts with a mentor, pair on small remediation tickets | Runbook sign-offs for owned services |
| 3 | Increasing autonomy | Lead a staging fault-injection drill with mentor observing, handle 1-2 small solo operational tasks with review | Drill led successfully, gaps found in runbooks fixed |
| 4 | Supervised solo shift | First on-call shift with mentor reachable, pre-shift briefing and post-shift debrief | Mentor sign-off, at least one incident handled or correctly escalated |
Sign-off checklist before the first unsupervised shift
- Access confirmed end to end (paging tool, dashboards, deploy/rollback permissions) with a real test, not just "provisioned."
- Runbooks for their assigned services reviewed and any ambiguous steps flagged and fixed.
- At least one supervised tabletop and one supervised live or injected-fault incident completed.
- Mentor sign-off plus the engineer's own confidence self-assessment, not mentor judgment alone.
Extending the ramp for a complex or high-stakes service
Four weeks is often enough for a straightforward service, but for a complex hybrid-cloud system or one with many downstream dependents, add explicit competency checkpoints tied to named systems, for example certifying someone independently on the database failover path as a separate sign-off from general on-call readiness, rather than declaring them ready across the board at once. Longer term, treat the first 90 days as a structured mentorship arc rather than stopping at week four: scheduled 30/60/90-day check-ins, a second mentor pairing on a different service, and a distinct milestone for graduating from "supervised" to "primary" status rather than just a date on the calendar.
Trade-offs and pitfalls
Rushing readiness to fill a rotation gap is the most common failure mode, and it produces confident-sounding but wrong incident responses, which is worse than an obviously under-prepared response because it takes longer to catch. A checklist with no live-incident component only validates that someone can read, not that they can act under time pressure; keep at least one supervised live or simulated incident before signing off. Sign-off criteria should be service-specific rather than one generic "on-call ready" badge, since readiness on a well-instrumented service doesn't automatically transfer to a fragile legacy one with thin runbooks.
You're deciding which of a few common runbook steps to automate: restarting a cached worker instance, reattaching a detached volume, and running a database schema migration. What criteria would you use to decide whether each should be fully automated, human-in-the-loop, or kept manual?
Sample Answer
Whether to fully automate, keep human-in-the-loop, or leave manual comes down to four questions applied to each specific action: how often does it happen, how bad is it if it goes wrong, can it be safely retried, and can success be verified automatically. High frequency, low blast radius, idempotent, and observable pushes toward full automation; anything destructive or hard to verify stays manual or gated behind a human, no matter how routine it feels.
The criteria
| Criterion | Favors automation | Favors manual / human-in-the-loop |
|---|---|---|
| Frequency | Happens often enough that manual toil adds up | Rare enough that automation investment doesn't pay back |
| Blast radius | Failure is contained (one instance, easily reverted) | Failure can be irreversible or affect data integrity broadly |
| Idempotency | Running it twice is harmless | Running it twice causes a different, possibly worse outcome |
| Verifiability | Success can be checked automatically (health check, row count) | Success requires human judgment to confirm |
Applying it to the three actions
Restarting a cached worker instance: high frequency, low blast radius (stateless, replaceable), fully idempotent, and easily verified with a health check. This is a strong automate candidate: drain connections, spin up a replacement, run a health check, cut traffic over, roll back automatically if the health check fails.
Reattaching a detached volume: lower frequency, meaningfully higher blast radius (attaching to the wrong instance or double-attaching can corrupt data), and only moderately idempotent, reattaching twice isn't necessarily safe. This sits in the middle: automate the pre-checks and the mechanical steps (verify volume ID, verify target instance, snapshot before attaching), but require a human to confirm before the final attach executes.
Running a database schema migration: low frequency, high blast radius (can be destructive and hard to reverse), low idempotency for anything involving DDL (data definition language: schema-altering SQL statements like ALTER TABLE), and success often isn't verifiable by a simple automated check, it needs someone to look at whether the data actually came out right. This stays manual, or more precisely, human-gated: automation handles the mechanical parts (schema diff, pre-migration validation, backup, staged rollout to a canary), but a person approves the production apply.
The underlying argument for phasing automation in gradually
Automating a step doesn't just remove toil, it also removes the moment a human would have caught something unusual about this particular instance of the problem. That's fine for the worker-restart case, where "unusual" mostly doesn't exist, but risky for the migration case, where every migration is a little different. The practical path is phasing: run a new automation in shadow mode first (it proposes the action but a human executes), then human-in-the-loop (it executes after one-click approval), and only promote to full automation once it has a track record across enough real incidents that its false-positive and false-negative rate are actually known, not assumed.
Guarding automated actions with least privilege
Whatever is automated should run with only the permissions that specific action needs, a worker-restart automation shouldn't hold credentials that could also run a schema migration, and every automated action should be logged with who (or what) triggered it and why. For the human-in-the-loop tier, the approval step itself should require a specific person's action (not a shared bot token anyone can trigger), so there's a real approval trail, not a rubber stamp.
Trade-offs and pitfalls
The common wrong turn is automating based on how annoying a task feels rather than how safe it is, restarting workers manually is annoying but safe to automate; migrations are also annoying, but the annoyance is not the variable that should decide it. The other pitfall is leaving a human-in-the-loop step gated behind an approval that nobody actually reads before clicking, if the approval doesn't include enough context (what will run, what's the blast radius, what's the rollback) to make a real judgment, it's automation with an extra click, not a genuine safety gate.
During a P1 outage, the first responder doesn't restore service within a few minutes and doesn't acknowledge the page. Walk through what happens next: escalation timeouts, who gets paged, which channels you use, and who ultimately declares a major incident.
Sample Answer
Direct answer
Escalation has to be a timed staircase, not a hope that someone notices: each tier gets an explicit timeout, and crossing it triggers the next tier automatically rather than waiting for a human to decide to escalate. The critical branch is distinguishing "primary hasn't acknowledged at all" (a much stronger, faster signal that they're unreachable) from "primary acknowledged but hasn't fixed it yet" (a slower, more judgment-based signal), and a specific person needs to be unambiguously the incident commander once the incident crosses into major-incident territory.
Structured elaboration
flowchart TD
A[Page fires to primary] --> B{Acked within 5 min?}
B -->|No| C[Auto-escalate to secondary]
B -->|Yes| D{Mitigated or owned by 15 min?}
C --> D
D -->|No| E[Notify SRE lead and EM at 20 min]
E -->|Sev1 criteria still met at 30 min| F[IC declares Major Incident]
F --> G[Comms lead posts updates every 15 min]
| Time | Trigger | Action | Channel |
|---|---|---|---|
| T+0 | Page fires | Primary paged | PagerDuty + phone |
| T+5m | No ack from primary | Auto-escalate to secondary (unreachable-primary path) | PagerDuty + phone |
| T+15m | Acked but not mitigated or no clear owner | Secondary/backup engages as acting responder | Incident Slack channel |
| T+20m | Still unresolved | SRE lead and engineering manager notified | PagerDuty + phone |
| T+30m | Sev1 criteria still met, no imminent fix | Incident Commander formally declares a Major Incident, opens a bridge | Incident channel + status page |
Redundancy for an unreachable primary. The T+5m no-ack escalation exists specifically because "didn't acknowledge" is not the same failure mode as "acknowledged but stuck." An unreachable primary should trigger the fastest possible escalation, on multiple channels at once (page, SMS, phone call) rather than a single retry, since every minute the whole rotation is effectively uncovered.
Who declares Major Incident, and when. The role of Incident Commander should be predefined (whoever is the senior-most engaged responder at the moment of declaration, or a designated on-call IC rotation), not assigned ad hoc during the incident. Declaration criteria should be objective: customer-facing impact confirmed and no imminent fix, not a vibes call.
Audit trail. Every escalation event (page sent, ack received, tier crossed, IC declared) should be logged automatically by the paging tool with timestamps, not reconstructed from memory afterward. This is what makes the eventual postmortem's timeline accurate instead of approximate.
Worked example
A P1 outage affects payment processing. T+0: primary is paged, acknowledges within 2 minutes, and starts investigating (restart attempts, checking recent deploys). T+15m: the issue isn't mitigated and the primary flags they need help; the secondary engages and effectively becomes acting IC. T+20m: still unresolved, SRE lead and EM are notified via page and phone. T+30m: payment processing is still materially impaired with no fix in sight, so the SRE lead formally declares a Major Incident: opens an incident bridge, assigns a comms lead to post external status-page updates and an internal lead to keep driving the technical fix, and sets a 15-minute update cadence. Every one of these steps (ack time, escalation trigger, IC declaration) is logged automatically with a timestamp by the paging tool, which becomes the backbone of the postmortem timeline.
Trade-offs and pitfalls
- Pitfall: "someone will notice and escalate" with no explicit timer is the default at many small companies and reliably fails exactly when it matters most, at 3am with a skeleton crew.
- Pitfall: leaving IC as "whoever showed up" instead of a defined selection rule creates coordination ambiguity in the first minutes of a major incident, which is the worst possible time to negotiate who's in charge.
- Trade-off: the T+5m no-ack timeout should be noticeably tighter than the T+20m and T+30m escalation-for-non-progress timeouts, because "didn't acknowledge at all" is a much stronger signal of a coverage gap than "acknowledged and is still working on it." Making every tier the same length either escalates too aggressively on ordinary, in-progress incidents or too slowly on a genuinely unreachable primary.
Tell me about a time you pushed back on an executive or client about an unrealistic operational expectation, like 100% uptime at zero cost. How did you frame the trade-offs and get buy-in?
Sample Answer
The version of this story that lands isn't "I said no," it's "I translated an impossible ask into priced options and let the business choose one." Quantify what each availability tier actually costs in downtime and dollars, then let the person asking pick a tier instead of arguing about whether 100% uptime is achievable.
Situation
On a multi-region migration project, the client's leadership wanted a contractual guarantee of 100% uptime with no additional budget, written directly into the renewal. Procurement had already fixed the budget, and the engineering side knew the ask was not just expensive but physically meaningless as written; nothing achieves literal 100% availability.
What availability tiers actually mean
Every "nines" figure translates to a concrete amount of allowed downtime per year:
Downtimehours/year=(1−availability)×24×365| Availability | Downtime/year |
|---|---|
| 99% | (1−0.99)×8760=87.6 hours |
| 99.9% | (1−0.999)×8760=8.76 hours |
| 99.95% | (1−0.9995)×8760=4.38 hours |
| 99.99% | (1−0.9999)×8760≈0.876 hours (52.6 min) |
Task and action
My job was to protect delivery and financial risk while still meeting the underlying business need for reliability. I brought three concrete options, each priced relative to a simple baseline (this relative-cost framing was an illustrative assumption for the workshop, not a benchmarked figure): a baseline single-region setup at roughly 99.5% availability, a warm-standby setup with automated failover at roughly 99.95%, and a full active-active geo-redundant setup at roughly 99.99%+, at meaningfully higher infrastructure cost. I ran a workshop with the CIO, procurement, and product owners to map which transactions were actually revenue-critical (payment flows) versus which weren't (internal telemetry, admin dashboards), rather than treating the whole system as one uniform target.
Result
The client accepted a hybrid SLA: the higher-availability tier for payment flows, the baseline tier for non-critical systems, phased with a roadmap to increase availability later if the business case justified it. The negotiation replaced an unenforceable "100%, no exceptions" clause with numbers everyone in the room had agreed to and could actually be held to.
Trade-offs and pitfalls
Showing up with only "that's technically impossible" and no alternative loses the argument on tone even when you're right; always bring priced options, not just a rejection. Watch for the agreed tier quietly becoming a number nobody revisits; put an explicit review date on it rather than treating the negotiation as a one-time event. Not every ask is negotiable this way; if leadership genuinely won't move off a literal 100% guarantee, that's a signal to escalate the conversation above your level rather than keep re-explaining the same math to the same audience.
Unlock Full Question Bank
Get access to all On-Call Practices and Runbook Design interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.