EX-26: SRE Error Budget & Release Freeze Calculation
Track: Data Contracts & SRE • Difficulty: Intermediate • Mastery Points: 150 PTS
Business Problem Scenario
Site Reliability Engineering (SRE) principles apply directly to enterprise data pipelines. Global DynaDatum Bank's Deposits Return pipeline operates under a contractual Service Level Objective (SLO) of 99.5% reliability across a 90-day rolling window of daily batch runs (exactly 1 run per day = 90 runs). Across 90 daily batch runs, a 99.5% SLO allows exactly 0.45 failed batch runs of error budget (0.5% × 90 = 0.45 runs). Each SLA breach burns budget according to: budget_burn_pct = (breaches / 0.45) * 100. When budget burn reaches or exceeds 100%, automated CI/CD deployment gates must freeze non-critical schema and feature releases.
Engineering Objective
Write an SRE error budget query against gov.pipeline_runs for pipeline 'deposits_return'. • Expected Columns: pipeline_name, total_runs, failed_runs, budget_burn_pct, release_policy • Mathematical Formulation: - Filter for run_date >= CURRENT_DATE - INTERVAL 90 DAYS for pipeline_name = 'deposits_return'. - total_runs = count(*). - failed_runs = sum(CASE WHEN is_sla_breach THEN 1 ELSE 0 END). - budget_burn_pct = round(failed_runs / 0.45 * 100, 2). - release_policy: Return 'FREEZE_NON_CRITICAL_RELEASES' when budget_burn_pct >= 100.0, else 'BUDGET_HEALTHY'. Key Concepts: - Service Level Objective (SLO): Contractual reliability percentage target for pipeline delivery. - Error Budget: Maximum permissible downtime before code deployments are halted to protect system stability.
Target Table: gov.pipeline_runs (run_id STRING, pipeline_name STRING, run_date DATE, is_sla_breach BOOLEAN)
Verification & Architecture Insights
SRE error budgets protect platform stability: when reliability drops, feature development is halted until operational resilience is restored.