SLA
A service-level agreement (SLA) sets out what a service provider commits to delivering, how performance is measured, and what happens if the provider falls short.
Also known as: SLO, SLI
What an SLA promises
An SLA is an agreement between a service provider and a customer. For example, a cloud provider might commit to 99.9% monthly availability for a particular API and offer a credit toward the customer's bill if availability falls below that threshold. The agreement determines who qualifies and whether the customer has to file a claim. Internal teams can also have SLAs, with escalation rather than a billing credit as the consequence of a breach.
SLA, SLO, and SLI are not interchangeable
A service-level indicator (SLI) is a measure of how the service performs, such as the fraction of eligible requests that succeed. A service-level objective (SLO) is a target for that measure over a defined window, such as 99.95% successful requests in a calendar month. The SLA is the agreement with the customer, not the metric or the target itself. A team can set a stricter internal SLO than its customer-facing commitment so it has room to respond before breaching the SLA.
What to specify before measuring
Start with what the customer needs to do, then define the scope, data source, measurement window, and exclusions. For a checkout API, decide which endpoints count, whether a timeout counts as a failure, and how to handle scheduled maintenance. Measuring only inside the application can miss requests that fail at the gateway. Choose an observation point that captures the failures the agreement is meant to cover. An SLA can cover support as well as reliability: a 30-minute first-response commitment doesn't promise a fix within 30 minutes.
Worked example: the SLO is missed, but the SLA holds
Suppose both thresholds use the same definition of a successful request and the same calendar-month window. Out of 2 million eligible requests, 1,400 fail. The observed success rate is 99.93%, above the SLA threshold of 99.9% but below the internal SLO of 99.95%.
The SLO leaves an error budget of 0.05% of eligible requests, or 1,000 failures at that month's traffic volume. The team exceeded that budget by 400 failures. Its error-budget policy might call for pausing risky rollouts or prioritizing reliability work, even though the customer-facing commitment was met.
How it comes up in interviews
A common DevOps or SRE interview prompt is to turn “three nines” into downtime. First ask whether availability is time-based or request-based. For time-based availability, 99.9% over an uninterrupted 30-day window allows 43.2 minutes of downtime. For request-based availability, it allows up to 0.1% of eligible requests to fail. There is no direct conversion to minutes: an outage during peak traffic can consume much more of a request-based budget than an equally long outage overnight.