You need to set SLOs for a service that depends on a database with a 99.95% SLA, a cache, and two internal APIs at 99.9%.
AdvancedScenarioSLO Design & Error Budget Decisions
Answer
Situation read → If all are hard dependencies, the composite ceiling is about 0.9995 x 0.999 x 0.999 ≈ 99.75% before your own failures. The cache, if handled well, should be soft.
What I'd do →
- Classify each dependency as hard or soft for each journey.
- Make the cache soft: on cache failure, read from DB with a short timeout and degrade if needed.
- For the internal APIs, check whether calls can be async, cached or have fallbacks.
- Compute the ceiling for what remains hard, and set the SLO below it (for example 99.5% now).
- Plan work to remove hard dependencies and raise the SLO later.
Why → You cannot promise more than your critical path delivers; architecture changes raise the ceiling, not wishful targets.
Interview tip → Do the multiplication out loud; then show how turning a hard dependency soft changes it.
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?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?Advanced