Site Reliability Engineering Principles Questions
The core SRE practice model: service-level objectives and indicators, error budgets, toil reduction, and reliability as an engineering discipline. Covers the principles and trade-offs behind treating operations as a software problem and balancing reliability against feature velocity. The conceptual foundation questions specific to SRE-style roles.
You are designing SLA contractual terms for a mission-critical API sold to enterprise customers. Specify which service metrics to include (availability, latency percentiles, error-rate), measurement windows and methodology (who measures and how), outage and maintenance exclusions, financial penalties or credits, dispute-resolution steps, and required evidence providers must accept for adjudication.
Design an algorithm (pseudocode acceptable) that consumes streaming telemetry and computes SLIs in near-real-time, and then dynamically adjusts alert thresholds using an anomaly detection technique (e.g., EWMA or z-score over sliding windows) to reduce false positives. Describe window sizes, smoothing parameters, and how to handle seasonality.
You have 30 days of uptime data for a service as an SLI. The daily 'successful_requests' and 'total_requests' are:
| day | successful_requests | total_requests |
|---|---|---|
| 1 | 9,990,000 | 10,000,000 |
| 2 | 9,995,000 | 10,000,000 |
| ... | (assume similar) | 10,000,000 |
Assume an SLO of 99.9% availability over 30 days. Explain how to compute the 30-day SLI and the remaining error budget. Show formulas and a short numeric example for a single day with 9,990,000 successes out of 10,000,000 requests.
Design an SLO for a Spark job that writes data to a data warehouse. The business requires that 95% of hourly partitions are available in the warehouse within 30 minutes of hour boundary. Specify the SLI, SLO, and one simple alert rule tied to this SLO.
Write a PromQL expression to compute a rolling 1-hour burn rate for an SLO based on a 'success_rate' metric, and write an alert that fires if burn rate > 2 for 30 minutes. Explain how burn rate is calculated from SLI time-series and justify the window lengths and threshold chosen.
Unlock Full Question Bank
Get access to all 24 Site Reliability Engineering Principles interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.