Interview Prep/SRE & Reliability/SLO Design & Error Budget Decisions

You have one SLO for the whole API, and it's green, but the mobile team says login is broken for 10% of users.

IntermediateScenarioSLO Design & Error Budget Decisions
Answer

Situation read → An aggregate SLO is hiding a failing journey. Login is a small fraction of total requests, so even 100% login failure barely moves the global ratio.

What I'd do →

  1. Slice the SLI by route and client:
    sum by (route) (rate(http_requests_total{code=~"5..",job="api"}[30m]))
    / sum by (route) (rate(http_requests_total{job="api"}[30m]))
    
  2. Check whether login failures are 4xx (excluded from the SLI) such as 401 from a token bug.
  3. Mitigate the login issue as an incident.
  4. Split the SLO per critical journey: login, browse, checkout, each with its own target and alert.
  5. Revisit whether specific 4xx codes on login should count as bad.

Why → SLOs must reflect user journeys; high-volume endpoints drown out low-volume, critical ones.

Interview tip → "One SLO per critical user journey" is the phrase interviewers want.

All SRE & Reliability questions Roadmap: SRE & incident response

More on SLO Design & Error Budget Decisions