How do you set an SLO for a batch pipeline that runs once per hour?
IntermediateScenarioSLOs and Error Budgets
Answer
Situation read → Request-based SLIs do not fit; use freshness and correctness.
What I'd do →
- Freshness SLI: data is no older than 2 hours, 99% of the time.
- Correctness SLI: percentage of runs that pass validation checks.
- Export
last_success_timestamp_secondsfrom the job and compute freshness:
time() - max(pipeline_last_success_timestamp_seconds{pipeline="orders_etl"}) < 7200
- Alert when freshness is about to breach, not after.
Why → For data pipelines, "late" and "wrong" are the user-facing failures.
Interview tip → Name the SLI types: freshness, coverage, correctness.
More on SLOs and Error Budgets
Your company has no SLOs. A VP asks you to introduce them. Where do you begin?BeginnerChoose an SLI for a REST API: availability measured at the pod, the load balancer, or the client?IntermediateThe product owner wants a 99.99% SLO for a service that depends on a database with 99.95% availability. What do you say?IntermediateThe error budget for the month is exhausted on day 18. What happens now?IntermediateWrite an SLO in a declarative tool so teams do not hand-write burn-rate rules.AdvancedLatency SLO: "99% of requests under 300 ms." How do you measure it correctly in Prometheus?Intermediate