Q&A-1Define an SLI, SLO, SLA, and error budget with one coherent example.
Answer
First 90 seconds
Assume a checkout service doing ~100 eligible requests/min, instrumented at the edge. Four terms, four different jobs: the SLI is the measurement, the SLO is the internal target on that measurement, the error budget is the failure the SLO permits, and the SLA is the contract with money behind it. Keep them separate or the numbers stop meaning anything.
The example
Eligible request: a checkout POST from a logged-in user with a non-empty cart. Good: the user receives a committed order confirmation within 2 s. SLI = good events / eligible events, measured at the edge (load-balancer logs), not inside the app: the app can't see requests that died in the CDN or never got a connection.
SLO: 99.9% of eligible requests over a rolling 28-day window.
Error budget: the 0.1% the SLO allows. At 100 req/min that's 4.03M eligible requests per window and 4,032 bad events: an allowed bad rate of 6/hour.
SLA: a separate commercial contract. Say 99.5% per calendar month with service credits, exclusions for scheduled maintenance and client-side failures. Set it looser than the SLO on purpose: you want to be paged and fix things long before you owe anyone money.
Budget arithmetic
| event | bad events | % of 4,032 budget | burn rate |
|---|---|---|---|
| 10 min at 5% error | 50 | 1.2% | 50x |
| 1 h at 1.44% error | 86 | 2.1% | 14.4x |
| 6 h at 0.6% error | 216 | 5.4% | 6x |
| steady 0.1% error | 4,032 | 100% | 1x |
Burn rate is observed bad rate ÷ allowed bad rate; 1x exhausts the budget exactly at the end of the window. Alert on burn rate, not raw error rate: 14.4x over 1 h pages (2% of budget gone), 6x over 6 h pages (5%), 1x over 3 days files a ticket (10%).
Trade-offs
Edge SLI vs proxy SLI. Edge catches DNS, CDN and connection failures users actually hit; it's noisier and harder to join to backend traces. A server-side "200 within 2 s" proxy is cheap and stable but blind to everything in front of the app. Pick edge for a revenue journey; pick proxy for an internal batch job.
Window length. Rolling 28 days is stable and slow: a 10-minute outage barely moves it. Short windows react fast and flap. Multiwindow multi-burn-rate gets both.
Target level. Each nine costs roughly 10x. 99.9% allows 43 min/month; 99.99% allows 4.3 min/month. 99.99% on a checkout that depends on a third-party payment provider is a promise you can't keep.
Failure modes
Burn-rate alerts misconfigured: alerting on raw error rate pages on a 0.5% blip that's inside budget, or misses a slow 2x burn that empties the budget in two weeks. Detect by plotting alert firings against budget consumption and replaying a synthetic bad-traffic window.
Budget exhausted with no policy: the SLO becomes decorative. The policy has to say what stops: feature launches freeze, reliability work takes the sprint, and who decides. Detect by tracking budget remaining and reviewing it at every window boundary.
Wrong boundary: SLI measured inside the app misses edge failures; measured at the edge it double-counts retries. Detect by computing the SLI at both boundaries and expecting a known divergence.
Missing data, if the metric pipeline drops, is a request good or bad? Choose, record it, and alert on scrape gaps so a silent pipeline doesn't read as 100%.
What would change my answer
If the journey can't be measured at the edge, I'd say so and use a proxy SLI with the gap documented, not quietly measure the wrong thing.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.