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 inherited a service with no SLOs and minimal monitoring. The product manager wants measurable reliability improvements in 30 days. Create a plan to define appropriate SLOs, implement minimum viable monitoring and alerting, and deliver concrete reliability improvements within 30 days. Include which metrics, tooling choices, and quick-win actions you'll prioritize.
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.
Explain SLO burn rate and design an automated system that detects an elevated burn rate and triggers mitigations such as feature throttling, automatic scale-up, or temporary feature rollbacks. Define detection windows, burn-rate thresholds for preemption levels, and map specific automated actions to each burn-rate level.
Given the table schema service_metrics(service_name TEXT, ts TIMESTAMP, success BOOLEAN), write an SQL query (any dialect) to compute the 30-day error budget burn rate per service where SLO = 99.95%. Output: service_name, total_requests, observed_errors, allowed_errors, burn_rate. Explain assumptions (time window alignment, nulls) and how you would run this efficiently on large datasets.
Given a PostgreSQL table http_logs(id PK, service varchar, status_code int, occurred_at timestamptz), write a SQL query that computes the daily error rate (percentage of requests with status_code >= 500) for service = 'checkout' over the last 30 days. Ensure your query returns days with zero requests as 0% error.
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.