How do you choose good SLIs for a service? [Basic]
Answer
Good SLIs are user-centric, measurable, attributable, and hard to game. I choose SLIs that represent the experience users actually care about: availability, latency, correctness, freshness, and durability depending on the service.
Technical explanation
For synchronous APIs, good SLIs are success ratio and latency below a threshold.
For pipelines, good SLIs include freshness, completeness, and processing delay.
Avoid SLIs that only measure internals, such as pod count or CPU, unless the user impact is direct and proven.
Hands-on example
Hands-on: for an order API, define good events as POST /orders returning 2xx within 750 ms, excluding client 4xx validation errors. In Prometheus, create a numerator for good requests and a denominator for total eligible requests, then graph the ratio by service and environment.
Check how well your resume matches the role with our free resume checker— match score, ATS check, and the skills you're missing.
More Observability interview questions
- What are the four golden signals of monitoring? [Basic]
- What is a burn rate, and how do you alert on it? [Basic]
- Why are multi-window, multi-burn-rate alerts better than a single threshold? [Basic]
- What is the difference between a symptom-based and a cause-based alert, and which is better? [Basic]
- What is a time series in Prometheus, and how is it identified (metric name plus labels)? [Basic]
- What are the Prometheus metric types (counter, gauge, histogram, summary)? [Basic]
- What is the difference between a counter and a gauge? [Basic]
- How does Prometheus collect metrics — what is the pull model and scraping? [Basic]