Site Reliability Engineering Principles Questions
The core SRE practice model: service-level objectives and indicators, error budgets, toil reduction, and reliability as an engineering discipline. Covers the principles and trade-offs behind treating operations as a software problem and balancing reliability against feature velocity. The conceptual foundation questions specific to SRE-style roles.
You inherited a service with no SLOs and minimal monitoring. The product manager wants measurable reliability improvements in 30 days. Create a plan to define appropriate SLOs, implement minimum viable monitoring and alerting, and deliver concrete reliability improvements within 30 days. Include which metrics, tooling choices, and quick-win actions you'll prioritize.
Sample Answer
Thirty days is enough time to get real minimum-viable monitoring in place and land a few concrete fixes, but not enough to justify an aggressive SLO target; the plan needs to be honest about that distinction from day one.
Structured elaboration
Week 1: instrument the golden signals (latency, traffic, error rate, saturation) even before any target exists, using whatever the org already has available rather than introducing new tooling under time pressure, e.g. Prometheus + Grafana (or a hosted equivalent like Datadog or a cloud provider's native metrics, such as CloudWatch) for metric collection and dashboards, and the existing on-call/paging tool (e.g. PagerDuty or Opsgenie) for alert routing, since standing up brand-new tooling in week 1 of a 30-day window competes directly with the time needed to actually instrument and observe. Set up basic alerting on obvious failure conditions (5xx spike, service down) that don't require historical baselining to be useful. Week 2: with a few days of real data, propose a deliberately conservative INITIAL SLO (looser than hoped-for, since there's no real baseline yet) and identify 1-2 quick-win reliability fixes visible from the new telemetry (an obvious N+1 query, a missing timeout, an unbounded retry loop). Weeks 3-4: implement the quick wins, tighten alerting thresholds based on the now-larger dataset, and present a plan for the NEXT phase (a real SLO, set with proper headroom) rather than pretending 30 days is enough to also validate a long-term target. The same underlying discipline applies whether the deadline is a relatively relaxed 30 days or a much tighter two-week window with no maintenance window available at all: the sequence (instrument first, then quick wins, then a real target) just compresses, with even more conservatism applied to any interim SLO or error-budget accounting during that short bootstrap period, since there isn't enough data yet to trust a tight number.
Worked example
For a service with no prior monitoring: Day 1-3, deploy request-count, error-rate, and p95-latency instrumentation using the org's existing Prometheus/Grafana stack (or the closest equivalent already running elsewhere in the company), wired into the existing PagerDuty rotation rather than a new one. Day 4-10, observe; find that 15% of requests hit an endpoint making an unindexed database query under load, an easy, well-understood fix. Day 11-20, ship the fix, observe improvement (p95 latency drops from 900ms to 200ms). Day 21-30, propose an initial SLO (e.g. 99% success / p95 < 400ms, comfortably above what's now being observed) as a placeholder, explicitly flagged to stakeholders as provisional pending a longer observation window.
Trade-offs and pitfalls
The biggest risk under a hard 30-day (or shorter) deadline is a product manager interpreting "we set an SLO" as "the reliability problem is solved," when in reality only the FIRST cheap fixes have landed and the number itself is still a conservative placeholder; that expectation needs managing explicitly and early, not left implicit. It's also tempting to skip instrumentation and jump straight to "fixes" under deadline pressure, but without baseline telemetry there's no way to demonstrate the fixes actually helped, which undermines the whole exercise's credibility with the very stakeholder who's watching for measurable improvement. Introducing an entirely new observability stack from scratch inside a 30-day window is itself a common mistake: reusing whatever tooling the org already trusts and knows how to operate is almost always faster than evaluating and onboarding a new platform under deadline pressure.
You inherit a platform (or client engagement) suffering frequent incidents and low operational maturity: no meaningful monitoring, tight release cycles, and repeated unplanned outages. Propose a prioritized 6 to 12 month roadmap to improve reliability, with specific milestones and how you would sequence quick wins against structural fixes.
Sample Answer
The right approach to inheriting a low-maturity, incident-heavy system is to resist the urge to fix everything at once, and instead sequence a small number of high-leverage, fast wins that reduce the most painful and frequent failures first, while building the observability needed to make every later decision with data instead of guesswork. A credible 6 to 12 month roadmap has three phases: stop the bleeding, build the foundation, and invest in structural fixes, in that order.
Phase 1 (weeks 0 to 4): stop the bleeding
- Instrument the system enough to see what's actually failing (before this, teams are usually reacting to whichever incident is loudest, not the ones costing the most).
- Fix or work around the single most frequent or costly failure mode, even with a blunt, temporary mitigation (a manual restart script, a stricter rate limit), to buy breathing room for the rest of the plan.
- Stand up a minimal on-call rotation and the first one or two runbooks, for whatever is currently paging most.
Phase 2 (months 1 to 3): build the foundation
- Establish the first real reliability target (a service-level objective, or SLO) grounded in the data gathered in phase 1, not guessed at.
- Close the biggest gaps a production-readiness review would have caught (missing monitoring, no rollback path, no capacity margin).
- Introduce a lightweight blameless postmortem process so recurring root causes stop repeating silently.
Phase 3 (months 3 to 12): structural fixes
- Address the underlying architectural or process causes the earlier phases only worked around (a single point of failure, a fragile deploy process, a monolith that makes any change risky).
- Automate away the highest-volume manual, repetitive operational work identified along the way.
- Re-baseline the reliability target against the now-healthier system, and set the cadence (quarterly review, ongoing error-budget policy) that keeps the gains from eroding after the initial push ends.
Worked example
A team inherits a data platform with no defined service-level indicators (SLIs) and outages roughly weekly, each investigated from scratch because nothing is written down. Weeks 0 to 4: add basic pipeline-completion and freshness monitoring, discover 60% of incidents trace back to one upstream, unversioned schema change breaking downstream jobs, and put a schema-validation check in front of ingestion as an immediate mitigation. Months 1 to 3: define an SLO for data freshness per critical dataset, write runbooks for the two most common failure classes, and start a blameless postmortem for every incident above a defined severity. Months 3 to 12: replace the ad hoc schema-validation patch with a proper schema-registry and contract-testing setup, and automate the manual reprocessing steps that on-call had been doing by hand after every incident. Incident frequency drops from roughly weekly to roughly monthly by the end of the roadmap, tracked against the pipeline-completion monitoring put in place in phase 1, not asserted without a baseline to compare to.
Trade-offs and pitfalls
The most common failure is starting with the most architecturally satisfying fix (a full rewrite, a major re-platform) before the team has the monitoring to know whether it actually helped, or the credibility with stakeholders that comes from a visible early win. A second pitfall is declaring victory after phase 1's quick wins and never funding phase 3's structural work, which lets the same class of incident resurface once the temporary mitigations degrade or the system grows past what they were sized for. The roadmap's sequencing (visibility first, targets second, structural change third) matters more than any specific fix on it; a team that skips straight to structural change without phase 1's visibility is often solving the wrong problem first.
A security team proposes a stricter authentication flow that increases latency and introduces some additional error rate. As SRE, propose how you would balance the security requirement against the reliability goal: what you would measure, negotiate, or mitigate.
Sample Answer
Balancing a security change that hurts reliability starts from the premise that this is not security versus reliability as opposing goals, it's finding the specific implementation of the security requirement that satisfies the actual threat model at the lowest reliability cost, since most security requirements have more than one way to be satisfied. The approach is to measure the actual reliability impact rather than estimate it, negotiate the requirement's specifics (not just accept or reject it wholesale), and mitigate the remaining cost with standard reliability techniques rather than treating it as unavoidable.
Working through the trade-off
- Measure, don't estimate, the actual impact. Before arguing about the change, load-test or canary it to get real numbers: how much latency does the added authentication step actually add, and what's the real error-rate increase, rather than debating a hypothetical.
- Understand what's actually required versus how it's currently proposed. A "stricter authentication flow" might be satisfiable with a cached, shorter-lived token validated locally most of the time and only re-validated against the identity provider periodically, instead of a synchronous round-trip on every single request; the security requirement and its most expensive possible implementation are not the same thing.
- Apply standard mitigations to the remaining cost. If some latency and error-rate increase is unavoidable, standard reliability techniques reduce its blast radius: caching validated tokens for their safe lifetime, adding a circuit breaker around the identity-provider dependency so its failure degrades gracefully rather than cascading, and rolling the change out as a canary to catch a worse-than-expected impact before it's fully live.
- Make the residual trade-off an explicit, owned decision, not an implicit one. If after mitigation there's still a real reliability cost, that's a decision for whoever owns both the security and the reliability target to make consciously, informed by real numbers, not something engineering absorbs silently.
Worked example
A security team proposes moving from long-lived session tokens to short-lived tokens re-validated against the identity provider on every request. A canary of the new flow on 5% of traffic shows p99 (99th-percentile) latency increasing by 45 milliseconds and error rate increasing by 0.3 percentage points, both driven by the identity provider's own latency and occasional timeouts under load. The negotiated alternative: cache validated tokens for 60 seconds (short enough to meet the security team's freshness requirement, since 60 seconds is well within their stated threat window) instead of re-validating on every request, plus a circuit breaker around the identity-provider call so a slow or failing identity provider degrades to the cached validation rather than failing every request. The re-canaried result: p99 latency increase drops to roughly 4 milliseconds and the error-rate increase becomes negligible, while still meeting the security team's actual requirement rather than their initial specific implementation of it.
Trade-offs and pitfalls
Accepting a security requirement's first proposed implementation without probing what it's actually protecting against risks paying a much larger reliability cost than necessary; conversely, resisting a legitimate security requirement purely on reliability grounds, without proposing a workable alternative, isn't a real answer either and tends to get overridden anyway once a real incident makes the security gap concrete. The right posture treats both reliability and security as real constraints with real owners, and looks for the specific implementation that satisfies both, rather than treating the trade-off as a fixed, zero-sum choice between the two.
You are asked to reduce mean time to recovery (MTTR) by 50% within six months across an organization with hundreds of microservices and third-party dependencies. Evaluate potential root causes across observability, runbooks, on-call process, and automation, propose a prioritized program, and define how you would measure and validate the improvement (including metrics beyond MTTR/MTTD alone).
Sample Answer
Cutting mean time to recovery (MTTR) by half across hundreds of microservices requires treating it as a portfolio problem, finding where recovery time is actually being lost across many different incidents, rather than a single fix applied everywhere, because at that scale the causes are rarely uniform. The approach is to instrument and measure before proposing solutions, prioritize the changes with the broadest reach across the incident population, and track more than the headline metric so the program doesn't just move the number without actually improving the underlying response.
Evaluating root causes across the incident population
- Observability gaps: incidents where responders spent significant time just figuring out what was wrong, which points to missing dashboards, unclear service ownership, or alerts that don't point at the actual failing component.
- Runbook gaps: incidents where the fix was known once diagnosed, but took time to locate or execute, pointing to missing, outdated, or hard-to-find runbooks.
- On-call process gaps: incidents delayed by escalation friction (the first responder wasn't the right person, or didn't know who to escalate to), pointing to on-call routing or training issues rather than technical gaps.
- Automation gaps: incidents where the fix, once known, was a manual, repeatable action (a restart, a failover, a rollback) that could be automated to trigger directly from the same signal that pages a human today.
A prioritized program
- Pull the last two to four quarters of incident data and categorize each by which of the four gaps above dominated its recovery time, rather than assuming which category matters most.
- Target the highest-volume category first, since at this scale a fix that shaves a few minutes off a common failure mode usually beats a larger fix for a rare one.
- Pilot the highest-priority fix on a subset of services, measure the actual effect, then roll out broadly rather than mandating an untested change across hundreds of services at once.
Measuring and validating the improvement, beyond MTTR alone
Track mean time to detect (MTTD) and mean time to acknowledge (MTTA) as separate, defined stages so a change in overall MTTR can be attributed to a specific stage rather than treated as one opaque number, and rigorously define what "detect," "acknowledge," and "recover" each mean across all the services in scope, since inconsistent definitions across hundreds of services will corrupt the aggregate number before any real change happens. Also track incident frequency and severity mix alongside MTTR, since a portfolio-wide MTTR average can be pulled down simply by having fewer severe (and slower to fix) incidents in a given quarter, which would look like an MTTR improvement without reflecting any actual change in how fast incidents are resolved once they happen.
Worked example
Incident data across 150 services shows that 40% of total recovery time comes from observability gaps (responders spending an average of 12 minutes just locating the right dashboard or owner), 30% from missing or stale runbooks, 20% from escalation delays, and 10% from manual fixes that could be automated. The program targets the largest category first: a standardized, auto-generated per-service dashboard template and an ownership directory integrated into the paging tool, piloted on 20 services, measured to cut their average diagnosis time by roughly 8 minutes, then rolled out to the remaining 130. Combined with the second-largest category (a runbook audit requiring every paging alert to link a runbook, enforced by an automated check), the portfolio-wide MTTR is tracked quarterly against the pre-program baseline, alongside MTTD and MTTA separately, to confirm the improvement is coming from the targeted stages and not from an unrelated drop in incident severity that quarter.
Trade-offs and pitfalls
A common failure is picking the fix that seems most impressive (a sophisticated automated-remediation system) over the fix the data actually supports, when a large fraction of the recovery-time loss turns out to be something mundane like unclear ownership; the data-driven prioritization step exists specifically to prevent this. A second pitfall is declaring success based on the MTTR number alone without checking incident frequency and severity mix, since a genuinely worse quarter for a different reason (fewer severe incidents) can produce a misleadingly good MTTR number that masks no real improvement in response capability.
Design an algorithm (pseudocode acceptable) that consumes streaming telemetry and computes SLIs in near-real-time, and then dynamically adjusts alert thresholds using an anomaly detection technique (e.g., EWMA or z-score over sliding windows) to reduce false positives. Describe window sizes, smoothing parameters, and how to handle seasonality.
Sample Answer
Static thresholds fail on traffic with real daily/weekly seasonality; adapting the threshold from the data itself via a smoothed baseline and a spread estimate is the standard fix, but the naive single-pass version of this hides a real accuracy bug.
Structured elaboration
A sliding-window z-score approach scores each new point against the mean and standard deviation of the last N points, flags it as anomalous if the deviation exceeds a chosen multiple of sigma, then adds it to the window. Testing revealed that an EWMA-based variance estimator (a common textbook alternative that avoids keeping a window in memory) has a real flaw here: with a smoothing factor high enough to track real level changes responsively, its effective sample size for the VARIANCE estimate is far too small (roughly 1/α points), so the estimated standard deviation itself swings noisily, and whenever it happens to dip low, an entirely ordinary point reads as a spurious multi-sigma anomaly.
Worked example (executed; python3, 5+ seeds, before/after comparison)
The first (EWMA-variance) version, tested against 80 points of injected Gaussian noise (mean 100, std 5) plus one genuine spike at 300, flagged the real spike correctly but ALSO flagged 3 ordinary points (values 91.7, 89.9, 106.4, none more than 1.8 true standard deviations from the mean) as false anomalies purely because the EWMA-variance estimate had randomly dipped. Switching to a fixed 30-point rolling window for both the mean and standard deviation:
from collections import deque
import statistics
def sliding_window_anomaly(values, window_size=30, z_thresh=3.0, min_periods=20):
window = deque(maxlen=window_size)
out = []
for v in values:
flagged = False
if len(window) >= min_periods:
mu = statistics.fmean(window)
sd = statistics.pstdev(window)
if sd > 1e-9:
flagged = abs(v - mu) / sd > z_thresh
out.append((v, flagged))
window.append(v)
return out
flagged ONLY the genuine spike, with zero false positives on the same test data, and a false-positive rate of 0.35%-0.80% across five separate pure-noise seeds of 2,000 points each (close to the ~0.27% a true 3-sigma threshold implies on i.i.d. Gaussian data, with the small remaining excess coming from estimating standard deviation off a finite 30-point sample rather than the true population value).
Trade-offs and pitfalls
The window size trades detection speed for stability: a smaller window adapts faster to legitimate seasonality but re-introduces the same kind of variance instability seen in the EWMA version; a larger window is more stable but slower to adapt after a genuine, permanent level shift (e.g. after a deploy that legitimately changes baseline latency). min_periods matters just as much as the window size: evaluating z-scores before the window has enough points to estimate a meaningful standard deviation is what let the EWMA version misfire early in its own warm-up period.
Unlock Full Question Bank
Get access to all 41 Site Reliability Engineering Principles interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.