Your manager asks you to "set up SLOs" for a checkout API that has none. Where do you start?
BeginnerScenarioSLO Design & Error Budget Decisions
Answer
Situation read → No SLOs means no shared definition of "reliable enough". Start from user journeys and existing data, not from a number someone likes.
What I'd do →
- Identify the critical user journey: add to cart, submit order, payment confirmation.
- Find where requests are already measured: ingress controller metrics or app metrics.
sum by (code) (rate(nginx_ingress_controller_requests{ingress="checkout"}[5m])) - Pull 4 weeks of history for availability (non-5xx ratio) and latency (fraction under 300 ms).
- Propose an SLO slightly below current performance, for example 99.9% availability and 99% under 300 ms over 28 days.
- Write the SLO document, error-budget policy, and get product sign-off.
- Implement recording rules and burn-rate alerts; review after one month.
Why → An SLO based on measured reality is achievable and meaningful; one picked from thin air is either always red or meaningless.
Interview tip → Say "I start with the user journey and four weeks of data", not "I set 99.99%".
More on SLO Design & Error Budget Decisions
Product 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?IntermediateYou have one SLO for the whole API, and it's green, but the mobile team says login is broken for 10% of users.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