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 →
- 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])) - Check whether login failures are 4xx (excluded from the SLI) such as 401 from a token bug.
- Mitigate the login issue as an incident.
- Split the SLO per critical journey: login, browse, checkout, each with its own target and alert.
- 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.
More on SLO Design & Error Budget Decisions
Your manager asks you to "set up SLOs" for a checkout API that has none. Where do you start?BeginnerProduct insists on a 99.99% SLO for a service that has run at 99.7% for the last quarter. What do you do?IntermediateThe error budget for the month is exhausted on day 12, and a big feature launch is planned for day 15. What happens?IntermediateYour service's latency SLO is "99% of requests under 500 ms", measured at the app. Users still complain about slowness.IntermediateA team wants to exclude all 5xx responses caused by a third-party payment provider from their SLO. Do you agree?AdvancedA low-traffic internal admin API (200 requests a day) keeps firing burn-rate pages because one failed request is 0.5% of the hour.Intermediate