Search GimmeJob

Type at least 2 characters. Enter also searches by meaning.
QA interview question
Observability & productionMiddleOccasionalTheory

What is the difference between an SLI, SLO and SLA?

Answer

An SLI is a measured indicator of service behavior, such as the proportion of successful requests below a latency threshold. An SLO is the internal target for that indicator over a period. An SLA is an external agreement that may attach consequences to missed commitments. Tests should validate measurement semantics, not only the dashboard value.

Strong answer includes

  • measurement versus target versus agreement
  • uses a user-centered example
  • tests the telemetry definition

Practical example

The SLI for a checkout service is 'percentage of checkout requests completing in under 500ms.' The internal SLO sets a target of 99.5 percent over a rolling 30-day window, giving the team an error budget to spend on risky deploys. The SLA promised to enterprise customers is looser — 99 percent — with a service credit if breached. During testing, someone discovers the SLI query actually excludes requests that time out entirely, silently inflating the number, so the team fixes the metric definition before trusting the dashboard again.

#sli#slo#sla#reliability

Sources

Google SRE booksGoogle · Reliability, SLOs, monitoring, incidents and resiliencePrometheus alerting practicesPrometheus · Symptom-based actionable alerts, metamonitoring and noise reduction