← Questions

SLIs, SLOs and SLAs, then a monitoring design

0
GoogleSystem designLast asked Sep 2025

A system design interview question asked in Google's system design round, last asked Sep 2025. It tests reliability, observability and sre.

Explain the difference between SLIs, SLOs and SLAs with concrete examples for a web API, covering availability and latency. Given a quarterly SLO, define the error budget and show how you would split it and track its consumption over time. Then design monitoring and alerting for the API that catches real problems without burying the on-call engineer in noise.

Requirements

  • Functional: indicators that reflect what users experience, targets per indicator, an error budget with its policy, alerts that page only when the budget is at real risk, and dashboards for everything else.
  • Non-functional: low alert fatigue, fast detection of severe outages, and alert rules that are easy to reason about and maintain.

Clarifying questions

  • Who uses the API, and what does a failed or slow request mean for them?
  • Is there a contractual SLA with customers, and what are its penalties?
  • What is the traffic volume? (Low traffic makes ratio-based alerts noisy.)
  • Which dependencies does the API have, and are they ours to fix?

What a strong answer covers

  • Definitions with numbers: an SLI such as the fraction of valid requests that return a non-5xx response within 300 ms, measured at the load balancer; an SLO such as 99.9% of those over a quarter; an SLA as the looser external promise (for example 99.5%) with credits, kept below the SLO so internal alerts fire first.
  • The error budget: 99.9% over about 90 days allows 0.1% bad requests, roughly 2.2 hours of full outage. How it is split between planned work (deploys, migrations) and unplanned incidents, and the policy when it runs out (freeze risky launches).
  • Tracking: a burn-down chart of budget remaining, with burn rate defined as the speed of consumption relative to the even pace.
  • Alerting on symptoms, not causes: page on SLO burn, ticket on slower burn, and keep CPU or memory signals on dashboards.
  • Multi-window, multi-burn-rate alerts: for example page when the 1-hour burn rate exceeds 14.4 and the 5-minute rate confirms it, ticket when the 6-hour rate exceeds 6; why the short window stops alerts from lingering after recovery.
  • Noise control: aggregation and deduplication per service, grouping related alerts, silences during maintenance, escalation paths, and a runbook linked from every page.

Follow-ups

  • The API's traffic drops to a few requests an hour at night. How do the alerts change?
  • A dependency you don't own burns half your budget. What do you do?
  • How would you set an SLO for a new service with no history?

Where it's asked

  • Google · System design · Last asked Sep 202545 min · Whiteboard for the diagram, a doc for requirements and capacity math

What it tests

reliability · observability · sre

Your canvas
Draw your answer hereBoxes, arrows and notes, saved for you to come back to.Sign in to start drawing