A service returns HTTP 200 with an error message in the body for failures. Your availability SLI says 100%.
IntermediateScenarioObservability & Telemetry Decisions
Answer
Situation read → Status-code SLIs cannot see failures hidden in 200 responses. The SLI is lying.
What I'd do →
- Short term, add an app-level metric for business outcome:
orders_total{result="success|failure"}. - Change the SLI to use that outcome metric rather than HTTP code.
- Work with the team to return correct status codes (4xx for client errors, 5xx for server failures).
- Add a synthetic check that validates response content, not only status.
- Check for similar patterns elsewhere (GraphQL returns 200 with
errorsarray by design — handle with a dedicated metric).
Why → An SLI must reflect user success; status codes are only a proxy.
Interview tip → Mention GraphQL explicitly — interviewers love that edge case.
More on Observability & Telemetry Decisions
Your team has metrics and logs but no tracing. A request to checkout fans out to 9 services and nobody can tell where the 2 seconds go. How do you introduce tracing?IntermediateThe monthly observability bill doubled in two months and finance wants it cut by 40%. What do you do?IntermediateA developer adds `customer_id` as a label to a request counter "for better debugging". You catch it in code review. What do you say?BeginnerYou need to pick a trace sampling strategy for a service doing 20,000 requests per second.AdvancedEvery team has built their own Grafana dashboards with different panels. During incidents, nobody can find anything.BeginnerA service's logs are unstructured strings like `Order 123 failed for user 9 after 3 retries`. Searching them during incidents is painful.Beginner