Two teams argue whether 4xx responses should count as errors. How do you decide?
BeginnerScenarioSLOs and Error Budgets
Answer
Situation read → Most 4xx are client mistakes, but some are server bugs.
What I'd do →
- Exclude 4xx by default from the error count; they are client errors.
- Include specific codes caused by the service: 429 (if you throttle unfairly), 408, or 404 on routes that should exist.
- Track 4xx rate separately and alert on sudden jumps (often a broken client release or API change).
Why → The SLI must reflect service failures, not user typos.
Interview tip → Mention 429 as the grey area worth discussing.
More on SLOs and Error Budgets
Your company has no SLOs. A VP asks you to introduce them. Where do you begin?BeginnerChoose an SLI for a REST API: availability measured at the pod, the load balancer, or the client?IntermediateThe product owner wants a 99.99% SLO for a service that depends on a database with 99.95% availability. What do you say?IntermediateThe error budget for the month is exhausted on day 18. What happens now?IntermediateWrite an SLO in a declarative tool so teams do not hand-write burn-rate rules.AdvancedLatency SLO: "99% of requests under 300 ms." How do you measure it correctly in Prometheus?Intermediate