Site Reliability Engineering (SRE) & Observability Master Interview Bank
SLI, SLO, SLA calculations, Error Budgets, Prometheus & Grafana monitoring, OpenTelemetry distributed tracing, incident post-mortems, and Chaos Engineering.
Curriculum Roadmap & Learning Path
3 StagesPart 1: Basic & Foundational Concepts (Junior / Entry-Level)
10 QuestionsWhat is Site Reliability Engineering (SRE) and how does it relate to DevOps?
SRE is a discipline pioneered by Google: "SRE is what happens when you ask a software engineer to design an operations team.": DevOps: A philosophical cultural movement bridging development and operations to accelerate delivery • SRE: A concrete, programmatic implementation of DevOps principles • Treats operations as a software problem.
What are SLIs, SLOs, and SLAs?
The 3 foundational reliability targets: SLI (Service Level Indicator): A carefully defined quantitative measure of some aspect of the level of service delivered (e.g. "Ratio of HTTP.
What is an Error Budget and how does it balance Speed vs Reliability?
\text{Error Budget} = 100\% - \text{SLO}: If your SLO is 99.9%, your Error Budget is 0.1% allowed downtime or failure • The Balance: An Error Budget treats 100% reliability as an anti-pattern (100% is too expensive and halts innovation).
What is Toil in SRE and how is it managed?
Toil is operational work that has 4 characteristics: Manual, repetitive, and administrative (e.g. manually restarting servers, resetting passwords, manual data patches) • Automatable (could be replaced by software scripts) • Tactically driven with zero enduring value (running it leaves the service in the exact same state).
What are The 4 Golden Signals of Monitoring (Google SRE)?
The essential metrics every production service must monitor: Latency: The time it takes to service a request (differentiating between successful request latency vs failed request latency) • Traffic: The demand placed on the system (e.g. HTTP requests per second, network I/O bits/sec).
What are the Three Pillars of Observability (Metrics, Logs, Traces)?
Metrics: Numeric, aggregated, time-series data measured over intervals (e.g. CPU usage, request rate) • Logs: Timestamped, discrete event records (often structured JSON) • Distributed Tracing: Records the end-to-end journey of a single request across multiple microservices via a unique trace_id.
What is the difference between Monitoring and Observability?
Monitoring (Passive): Tells you when a system is broken: "Is the CPU > 90%? • Observability (Active): A property of a system that allows you to deduce its internal state based on its external outputs: "Why is User 42.
What is the difference between Availability and Reliability?
Availability: The percentage of time a system is functional and reachable (e.g. "Uptime: 99.9%") • Reliability: The probability that a system will perform its required functions correctly under specified conditions over a given duration.
What is Mean Time to Detect (MTTD) and Mean Time to Resolve (MTTR)?
MTTD (Mean Time to Detect): Average time from when an incident begins until the engineering team is alerted • MTTR (Mean Time to Resolve / Recover): Average time from incident detection until the service is fully restored and operating within SLOs.
What is an On-Call Runbook (Playbook)?
A standardized operational document that provides step-by-step instructions for diagnosing and mitigating a specific alert: When an SRE is paged at 3:00 AM, the alert contains a direct link to the runbook.
Part 2: Core Architecture & Implementation (Mid-Level)
10 QuestionsWhat is Multi-Window Multi-Burn-Rate Alerting?
Traditional alerting on raw percentages triggers false alarms or alerts too late: Burn Rate: The rate at which an incident is consuming the 30-day Error Budget • Burn Rate 1 = Consumes 100% of budget in exactly 30 days • Burn Rate 14.4 = Consumes 2% of the entire budget in 1 hour! • Multi-Window Alerting (Google SRE Standard).
What is OpenTelemetry (OTel) and how does its architecture operate?
OpenTelemetry is the CNCF vendor-neutral standard for collecting and exporting telemetry data: OTel API: Standardized interfaces used in application code to instrument metrics and traces • OTel SDK: Concrete implementation that batches, buffers, and exports data.
What is Distributed Tracing and the W3C `traceparent` header?
Tracks a request as it traverses 10 independent microservices: Trace: The complete end-to-end journey, identified by a unique 16-byte trace_id • Span: A single unit of work within a service (e.g. an HTTP handler, a SQL query) • W3C traceparent Header: Passed over HTTP to propagate context.
How does Prometheus work (The Pull Model vs Push Model)?
Prometheus is an open-source metrics monitoring and time-series database: The Pull Model (Default): Prometheus server periodically scrapes HTTP endpoints (/metrics) exposed by target services • Discovers targets automatically via Kubernetes API or Consul.
What are PromQL Fundamentals (Counters, Gauges, Histograms, Summaries)?
Counter: Monotonically increasing value (resets to 0 on restart) • Gauge: Value that can go up or down (e.g. CPU temperature, memory usage, concurrent connections) • Histogram: Samples observations into configurable buckets.
What is the difference between the USE Method and the RED Method?
USE Method (Brendan Gregg - Resource Centric): For physical hardware and infrastructure (CPUs, Disks, Memory) • Utilization (percent of time resource was busy) • Saturation (degree to which work is queued) • Errors (hardware/driver error events).
How does Incident Management work and what is the Incident Commander (IC) role?
During a production P1 outage, clear roles prevent chaotic panic: Incident Commander (IC): The leader of the incident response • Does NOT debug code or run fixes! • Coordinates communication, assigns investigation tasks, and has final authority on failovers or rollbacks • Operations Lead: Executes technical mitigation commands.
What is a Blameless Post-Mortem?
An incident retrospective conducted under the core cultural assumption that: "Engineers are skilled, intelligent, and do the best they can with the information they have at the time. System failures are organizational and architectural flaws, not human incompetence.": Avoids naming or shaming individuals.
What are RTO (Recovery Time Objective) and RPO (Recovery Point Objective)?
Key disaster recovery metrics: RTO (Recovery Time Objective): The maximum acceptable duration of time the system can remain down following a disaster before operations must be • RPO (Recovery Point Objective): The maximum acceptable age of data that can be permanently lost due to a disaster (e.g. "We can tolerate losing.
What is Chaos Engineering and the Principles of Chaos?
The discipline of experimenting on a distributed system to build confidence in the system's capability to withstand turbulent production conditions: Principles • Define normal steady-state behavior (e.g. steady 99.9% success rate) • Hypothesize that steady state will continue during a simulated fault.
Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)
30 QuestionsHow do you implement Canary Deployments with Automated Rollbacks?
Replaces risky all-at-once releases: Deploy new version to a small subset of instances (e.g. 5% of traffic) • The Canary analyzer (e.g. Argo Rollouts or Flagger) continuously queries Prometheus SLIs • If HTTP 5xx error rate > 0.5% or p99 latency > 300ms.
What is Alert Fatigue and how do you design Actionable Alerts?
When on-call engineers receive hundreds of non-urgent, informational notifications, they become desensitized and ignore real catastrophic alerts: Rules for Actionable Alerts • Every alert that pages an engineer must be urgent, important, actionable, and real.
What is High-Cardinality and High-Dimensionality in Observability?
Cardinality: The number of unique values in a set • The Problem in Time-Series DBs (Prometheus): Putting high-cardinality labels (like userid, orderid, or uuid) on a Prometheus metric creates • Solution: High-cardinality values belong in Distributed Tracing Spans and Structured Logs, while metrics must be restricted to low-cardinality.
What are Load Shedding and Graceful Degradation under extreme traffic spikes?
When traffic exceeds maximum capacity by 300%, a system without load shedding collapses completely (throughput drops to 0): Load Shedding: The gateway intentionally drops excess incoming low-priority requests with HTTP 429 / 503 to ensure the system can process its • Graceful Degradation: Disables non-critical, heavy features dynamically.
What is the Circuit Breaker Pattern and how does it prevent Cascading Failures?
When a downstream service (e.g. Payment Gateway) hangs or slows down: Upstream services wait on thread timeouts, exhausting their own thread pools until every microservice across the entire company crashes sequentially • Circuit Breaker: Tracks failure rates • Immediately rejects calls locally without network calls.
What is Tail Latency Amplification in microservice architectures?
In a microservice tree where serving one user request requires fanning out to 100 backend services in parallel: If each service has a 99th percentile (p99) latency of 1 second (1% chance of slowness) • The probability that the user experiences a slow request is.
How does Distributed Rate Limiting work with Redis and Token Bucket?
Token Bucket Algorithm: A bucket has a maximum capacity of B tokens and refills at a steady rate of R tokens per second • Each request consumes 1 token • Handled atomically in distributed clusters using an in-memory Redis Lua script or Envoy proxy rate-limit service.
What are Health Checks: Liveness vs Readiness vs Startup Probes?
In container orchestrators (Kubernetes): Startup Probe: Checks if the container has finished initial slow bootstrapping (e.g. JVM warmup) • Liveness Probe: Checks if the container is healthy • Readiness Probe: Checks if the container is ready to accept user network traffic.
What is Backpressure and how does it prevent buffer overflow?
When a fast data producer sends data faster than a slow consumer can process it: Without backpressure: In-memory buffers fill up, resulting in Out-Of-Memory crashes • Backpressure: The consumer signals the producer to slow down or halt transmission (e.g. TCP sliding window, reactive streams, pausing Kafka.
How do you design an SRE Capacity Planning model?
Forecasts infrastructure requirements to accommodate business growth before resource exhaustion occurs: Establish baseline per-user resource consumption (e.g. 10,000 active users consume 4 CPU cores and 8 GB RAM) • Project traffic growth trends factoring in upcoming marketing campaigns and seasonal spikes (Black Friday).
What is GameDay in Chaos Engineering?
A scheduled live-fire exercise where engineering teams gather to simulate real-world disaster scenarios in staging or production: Simulates scenarios: "Region us-east-1 has completely lost power", "Primary database disk is full", "DNS provider is hijacked".
What is Distributed Consensus and how does Raft maintain quorum?
Used by etcd, Kubernetes, and Consul to maintain consistent cluster state: Guarantees that a cluster can continue operating correctly as long as a strict majority (\lfloor N / 2 \rfloor + 1) of nodes are healthy • Elects a single Leader.
What are Hedged Requests and how do they eliminate tail latency?
A client sends a request to Replica A: If Replica A does not respond within the 95th percentile expected latency (e.g. 50ms) • The client sends a duplicate hedged request to Replica B • Whichever replica returns first is accepted; the other request is cancelled.
What is a Dead Man's Snitch (Watchdog Alerting)?
If your entire monitoring infrastructure (Prometheus / Alertmanager) crashes or loses internet connectivity, it cannot send an alert telling you it is down!: Dead Man's Snitch: Prometheus sends a continuous "Heartbeat" alert every minute to an external third-party service (e.g. PagerDuty / Healthchecks.io).
When should an SRE team say "NO" to a feature launch?
An SRE engagement is governed by objective data, never subjective opinions: SRE halts a launch only if • The service's Error Budget is completely exhausted for the current window • The service lacks basic observability (missing metrics, no actionable alerts) • The service lacks an audited emergency rollback plan and verified runbook.
Multi-Window Multi-Burn-Rate Alerting: The Google SRE mathematical formula.
Traditional alerts (e.g. "Error rate > 1% for 5 mins") trigger noisy alerts for tiny blips and fail to alert on slow leaks that drain 100% of the monthly error budget: Burn Rate: The rate at which your service consumes its 30-day error budget (1 imes burn rate consumes 100% of the budget in exactly 30 days).
OpenTelemetry (OTel) Architecture: OTel Collector, Traces, Metrics, Logs, and W3C TraceContext.
OpenTelemetry is the vendor-neutral standard for cloud-native telemetry: API & SDK: Instrument code with unified spans, metrics, and logs • W3C TraceContext: Automatically propagates traceparent (version-traceid-parentid-flags) across HTTP and gRPC network boundaries.
Distributed Tracing Sampling Strategies: Head-based vs Tail-based sampling.
At 100,000 requests/second, recording 100% of distributed traces costs millions of dollars in storage: Head-Based Sampling: Sampling decision is made at the very start of the request (e.g. randomly sample 5% of incoming requests) • Fast, low CPU overhead.
Circuit Breakers and Bulkheading: Preventing cascading failures.
Circuit Breaker (Envoy / Resilience4j) • If downstream Payment Service fails 50% of requests over 10 seconds, the circuit Opens • Subsequent requests fail fast immediately without waiting for timeouts, allowing the downstream database to recover • Transitions to Half-Open after a cool-off window to test if health is restored.
Graceful Degradation and Load Shedding: Priority-based request drops.
When server CPU hits 95% and traffic spikes by 500%: Load Shedding: The API Gateway inspects incoming request priority headers • Critical Tier (Drop Probability = 0%): Login, Payment, Checkout transactions • Non-Critical Tier (Drop Probability = 100%): Recommendations, analytics pings, user avatar thumbnails.
Chaos Engineering in Production: Chaos Mesh and GameDays.
Validating distributed systems resilience before unexpected outages occur: GameDays: Simulated failure drills where engineers inject controlled faults in production • Simulating an entire AWS Availability Zone network partition • Terminating Kafka broker leaders under peak load • Corrupting DNS server configurations.
Capacity Planning & Load Forecasting: Linear regression, organic growth, and Headroom.
Determining when to provision new cloud infrastructure: Analyze Historical Trends: Distinguish organic growth (e.g. +3% month-over-month) from marketing events and seasonal spikes (Black Friday) • Identify System Bottlenecks: Determine which resource saturates first (Database IOPS, Network egress, Connection pool limits).
On-Call Rotations, Alert Fatigue, and Pager Hygiene.
Alert Fatigue: When engineers receive 50 non-actionable notification emails a day, they inevitably ignore the real P1 emergency page • Rules of Pager Hygiene • Every page must be strictly actionable and indicate active user degradation • If an alert requires no human action -> Delete the alert.
Blameless Postmortems & Incident Management.
When production goes down, punishing engineers creates a culture of fear where mistakes are hidden: Blameless Culture: Assume that engineers made the best decisions possible given the information they had • Incident Commander (IC): One designated leader who directs troubleshooting and assigns tasks; does not write code during the incident.
Disaster Recovery Testing: RTO vs RPO and active-active multi-region failover.
RTO (Recovery Time Objective): Maximum acceptable duration of downtime before system is restored (e.g. RTO le 15 ext{ minutes}) • RPO (Recovery Point Objective): Maximum acceptable amount of data loss measured in time (e.g. RPO le 1 ext{ minute} of database write transactions).
Blackbox vs Whitebox Monitoring: Synthetics vs Runtime Metrics.
Whitebox Monitoring: Inspects internal application state (JVM garbage collection metrics, queue lengths, memory usage, database connection pools) • Blackbox Monitoring (Synthetics): Probes external user-facing endpoints from multiple global cloud locations every 60 seconds (HTTP status, SSL.
Service Mesh Observability with Istio / Envoy.
Observability without modifying application code: Sidecar Envoy proxies intercept all inbound and outbound network traffic across pods • Instant Golden Signals: Latency, Error rates, and Request volume measured automatically • Automatic Mutual TLS (mTLS): Wire encryption and service identity verification across all microservices.
eBPF Observability with Cilium and Pixie: Kernel-level inspection.
Traditional APMs require installing heavy language agents and re-deploying code: eBPF (Extended Berkeley Packet Filter): Runs sandboxed programs directly inside the Linux Kernel • Inspects all network socket syscalls, HTTP payloads, and database queries with < 1% CPU overhead.
Automating Remediation with SRE Runbooks.
Replacing manual 2:00 AM human SSH commands with automated event-driven remediation: The Pattern • Alertmanager trips alert: HighMemoryUsageOnPod • Webhook triggers an automated runbook operator (e.g. Rundeck / Kubernetes Operator).
Toil Reduction Framework: The 50% Rule and engineering automation.
Toil: Repetitive, manual, tactical work that lacks enduring value and scales linearly with service size (e.g., manually restarting servers • The 50% Google SRE Rule: SREs must spend at least 50% of their time on engineering projects (writing code, building automation, improving • Toil is capped at 50%.