How to Prepare for an SRE Interview: What Each Round Tests and How to Practice It
- 15 min read
The short answer
To prepare for an SRE interview, practice each round separately. Write small scripts that handle bad input, debug Linux and networking layer by layer, do SLO and error budget math on the spot, rehearse two outage stories in depth, and practice defending reliability trade-offs while someone pushes back. Spend about four weeks.
An SRE loop looks like a DevOps loop from the outside, but the scoring keeps coming back to measurement: how reliable is reliable enough, how do you know, and what do you do when the numbers say you are out of budget. Candidates who prepare only for "fix the broken server" tend to stall when the design round asks them to put a number on a failure.
This guide goes through the common SRE interview rounds one at a time: what each tests, what a strong answer sounds like, a worked example, the usual mistakes, and what to practice. It ends with a 4-week plan.
For the general loop and generic scenarios, read how to pass a DevOps interview. For the live "the service is slow" prompt, the SRE incident response interview questions post works through it in full. This post covers the SRE-specific preparation neither of those does.
The typical SRE interview process
There is no standard site reliability engineer interview process. Companies mix and rename rounds, and smaller ones fold several into one conversation. A common shape after the recruiter and technical screens is:
| Round | Common format | What it is really scoring |
|---|---|---|
| Coding or scripting | 45-60 min, shared editor | Correct, defensive code for an operational task |
| Linux and networking troubleshooting | 45-60 min, discussion or live VM | A layer-by-layer method and knowing what each tool proves |
| Reliability or system design | About 60 min, whiteboard | SLOs, error budgets, failure domains, capacity math |
| Incident deep-dive | About 45 min, discussion | Depth on one real outage you were part of |
| Behavioral | 30-45 min | On-call habits, toil, pushing back with data |
Treat this as a typical structure, not a promise. Ask the recruiter which rounds you will have, whether coding is a practical script or a data-structures problem, and whether troubleshooting is hands-on.
A note on Google SRE interview prep: Google publishes its SRE books free at sre.google. They do not describe Google's hiring process, and neither does this post, but they are the best source for the vocabulary the design round uses (SLIs, SLOs, error budgets, toil).
Round 1: Coding and scripting
What it tests. Turning an operational question into code that survives messy data: parse a log, aggregate metrics, call an API with retries. Some companies ask data-structures questions instead, so confirm which kind.
What a strong answer sounds like. You ask about the input before typing: how big is the file, can lines be malformed, what should happen on bad data. You write the simple version first, then say where it breaks: "I stream the file line by line instead of loading it whole. I skip malformed lines and count them, because silently dropping data hides problems."
Worked example. "Given an access log with lines like 2026-11-25T10:00:01Z GET /api/orders 200 123 (status, then latency in ms), print the error rate and p99 latency per endpoint."
import sys
from collections import defaultdict
def p99(values):
# nearest-rank percentile: the smallest value with at least 99% of samples at or below it
s = sorted(values)
rank = -(-99 * len(s) // 100) # ceil(0.99 * n) using integer math
return s[rank - 1]
latencies = defaultdict(list)
errors = defaultdict(int)
bad_lines = 0
for line in sys.stdin:
parts = line.split()
if len(parts) != 5:
bad_lines += 1
continue
_, _, path, status, ms = parts
try:
status, ms = int(status), int(ms)
except ValueError:
bad_lines += 1
continue
latencies[path].append(ms)
if status >= 500:
errors[path] += 1
for path, values in sorted(latencies.items()):
rate = errors[path] / len(values)
print(f"{path} requests={len(values)} error_rate={rate:.2%} p99_ms={p99(values)}")
print(f"skipped {bad_lines} malformed lines", file=sys.stderr)
Then say the limits out loud: it keeps every latency in memory, so for a huge log you would use fixed histogram buckets (the same idea as a Prometheus histogram) and accept an approximate p99. That sentence connects the code to how monitoring actually works.
Common mistakes. Counting 4xx as errors without asking (a 404 is often the client's fault, not the service's). Averaging latency when the question asked about the tail. Crashing on the first malformed line. Going silent while debugging your own code.
What to practice. Five small scripts in one language: log aggregation, a retry with capped backoff, parsing API JSON, diffing two configs, and top N from a stream. The Bash scripting guide covers the shell side if your round allows Bash.
Round 2: Linux and networking troubleshooting
What it tests. A repeatable method, and knowing what each command can and cannot prove. SRE versions often go deeper than DevOps ones: memory pressure, file descriptors, TCP states, DNS resolution order.
What a strong answer sounds like. You name the layer before the command, and say what the result would rule out. "If dig resolves but the app cannot, that points at the resolver config the app uses, not at DNS itself."
Worked example: "What happens when you curl a URL, and where can it fail?" Walk it in order and attach a check to each step:
- Name resolution. The client resolves the hostname through
/etc/nsswitch.conf, which usually means/etc/hostsfirst, then the resolvers in/etc/resolv.conf. Check withgetent hosts api.example.com(uses the same path as most applications) anddig api.example.com(queries DNS directly, skipping/etc/hosts). A difference between the two is a finding. - TCP connect. A SYN goes to the resolved IP and port. "Connection refused" means something answered with a reset: usually nothing is listening, so check
ss -tlnpon the server. A timeout means packets are dropped somewhere: firewall, security group, routing. - TLS handshake. For HTTPS, the client sends SNI, receives a certificate chain, and validates name, expiry and trust.
curl -voropenssl s_client -connect api.example.com:443 -servername api.example.comshows where it fails. - HTTP request and response. The request may pass a load balancer or reverse proxy before reaching the app. A 502 or 504 from the proxy means the proxy is fine and the upstream is not.
Then show you can measure it instead of guessing:
curl -s -o /dev/null -w 'dns=%{time_namelookup} connect=%{time_connect} tls=%{time_appconnect} ttfb=%{time_starttransfer} total=%{time_total}\n' https://api.example.com/health
Each value is cumulative seconds from the start. If dns is 2.0 and everything after adds little, the problem is resolution, not the server. If ttfb minus tls is large, the server is slow to produce the first byte, so look at the app.
Common mistakes. Jumping to tcpdump before the cheap checks. Treating "refused" and "timed out" as the same thing. Restarting a service before reading its logs. Panicking at a small free column in free -h, when page cache is reclaimable and the available column is the one that matters.
What to practice. The Linux troubleshooting interview questions post covers the commands. Then argue the decisions: the OOM and swap challenge tests whether you would mask memory pressure with swap, the intermittent service DNS challenge tests isolating one failure in twenty by layer, and the nginx 502 after deploy challenge tests knowing the proxy is usually the messenger. If your target role is Kubernetes-heavy, add the Kubernetes troubleshooting interview questions post. The free Linux performance and Linux networking guides fill gaps.
Round 3: Reliability and system design
What it tests. This round is what makes an SRE interview different. You get a prompt ("make this checkout service reliable") and the interviewer listens for numbers: the SLO, what it allows, what fails together, how much capacity survives a failure.
What a strong answer sounds like. You define the user-facing promise first, then design to it. "I would set an availability SLI as the share of checkout requests that return a non-5xx response within 1 second, measured at the load balancer. I would propose 99.9% over 30 days, and here is what that buys us."
Worked example 1: the error budget. A 99.9% availability SLO over 30 days:
- 30 days x 24 hours x 60 minutes = 43,200 minutes.
- The budget is 0.1% of that: 43,200 x 0.001 = 43.2 minutes of full downtime.
- At 99.95% it is 21.6 minutes. At 99.99% it is about 4.3 minutes, small enough that a single slow rollback can spend all of it.
Request-based SLOs are usually more useful than time-based ones. With 10 million requests in the window, 99.9% allows 10,000 failed requests, however they are spread over the month.
The budget is the risk you can spend on launches and changes. When it runs out, an error budget policy (the SRE workbook has an example policy) typically shifts the team from features to reliability work until it recovers.
Worked example 2: dependencies and failure domains. If checkout calls two services in series and each one is 99.9% available, and their failures are independent, checkout can be no better than 0.999 x 0.999 = 0.998001, about 99.8%. That is roughly twice the downtime of either dependency alone. Say what you would do about it: remove a hard dependency, add a fallback (serve cached prices if pricing is down), or make the call asynchronous.
Worked example 3: capacity with a zone down. Peak load is 12,000 requests per second, and one instance handles 800 at your target utilization, so you need 12,000 / 800 = 15 instances. Across three zones, the system must still serve peak with one zone lost, so the two surviving zones need 15 between them: 8 per zone (16 total survives), 24 instances overall. Doing that arithmetic out loud is a strong signal. The SRE workbook chapter on non-abstract large system design practices this style of reasoning.
Worked example 4: alerting on the SLO with burn rates. The interviewer asks how you would page for that 99.9% SLO. A threshold on error rate alone either pages too late or pages on noise. A burn rate says how fast you are spending the budget: a burn rate of 1 spends exactly the whole budget in 30 days, a burn rate of 14.4 spends it in 720 / 14.4 = 50 hours.
The multiwindow approach in the SRE workbook chapter on alerting on SLOs suggests:
| Severity | Burn rate | Long window | Short window | Budget spent when it fires |
|---|---|---|---|---|
| Page | 14.4 | 1 hour | 5 minutes | 14.4 x 1 / 720 = 2% |
| Page | 6 | 6 hours | 30 minutes | 6 x 6 / 720 = 5% |
| Ticket | 1 | 3 days | 6 hours | 1 x 72 / 720 = 10% |
For a 99.9% SLO, a burn rate of 14.4 means an error ratio above 14.4 x 0.1% = 1.44%. In PromQL, with your own metric names:
(
sum(rate(http_requests_total{job="checkout", code=~"5.."}[1h]))
/ sum(rate(http_requests_total{job="checkout"}[1h]))
) > (14.4 * 0.001)
and
(
sum(rate(http_requests_total{job="checkout", code=~"5.."}[5m]))
/ sum(rate(http_requests_total{job="checkout"}[5m]))
) > (14.4 * 0.001)
The long window makes the alert significant. The short window makes it stop firing soon after the problem is fixed, instead of paging for another hour on stale data.
Common mistakes. Choosing 99.99% because it sounds serious, without pricing it. Measuring availability on the server when users see failures at the load balancer. Drawing boxes before stating the SLO. Adding replicas that share a failure domain (same zone, same database, same config push). Retrying at every layer, which multiplies traffic during an incident.
What to practice. Do the budget math for 99.5%, 99.9%, 99.95% and 99.99% until it is instant. Then argue the design decisions where they get tested: retry storms for retry amplification, region failover and async replica data loss for RPO and RTO, untested backups for what "covered" means, noisy alerts for symptom-based paging, and the Prometheus cardinality challenge for what metrics should and should not carry. The observability interview questions hub collects the monitoring prompts in one place, and the Kubernetes observability and CloudWatch guides cover the tooling.
Round 4: The incident deep-dive
What it tests. Depth. The interviewer picks one outage from your past and keeps asking "why" until they reach the edge of what you know: were you really involved, do you understand the system beyond your own change, did the follow-ups reduce risk.
What a strong answer sounds like. Specific and bounded. You know the timeline, the detection gap, what you did and did not do, and which follow-ups shipped. When you do not know something, you say so.
Worked example: a story sheet. Prepare each story as a one-page sheet you could answer from cold. A made-up example, to show the level of detail:
- Impact: about 40 minutes of failed checkouts for a share of users in one region, measured from load balancer 5xx counts.
- Detection: a support ticket. No alert fired, because the only page was on host CPU, which stayed normal.
- Timeline: deploy at 14:02, first ticket at 14:10, incident declared at 14:17, rollback at 14:25, error rate back to baseline at 14:42 (connection pools took time to drain).
- Contributing causes: a config default changed in a library upgrade, the canary served too little traffic to show it, and the alert design hid it.
- Your part: you ran the rollback and wrote the timeline. Someone else found the library change.
- Follow-ups that shipped: an SLO burn-rate page on checkout errors, a canary that holds until it has enough traffic to compare, a pinned dependency with an upgrade test.
Expect drilling questions like: "Why did the rollback take 17 minutes to show recovery?" "Would your new alert have fired in time? At what burn rate?" "What would you have done if rollback was not possible?" The last one is where the roll back or fix forward challenge helps.
Common mistakes. Picking the biggest outage instead of the one you understand best. Saying "we" for everything. Listing "be more careful" as a follow-up. Naming one root cause when your own story shows three contributing causes.
What to practice. Write two sheets and rehearse them out loud, then have someone push on the weakest line. If you lack production incidents, borrow the shape from a challenge and say so: the p99 latency tracing challenge, the liveness probe restart storm and the growing queue backlog each contain a full incident you can reason through end to end. Be honest that it is practice, not experience.
Round 5: Behavioral
What it tests. On-call habits, how you handle toil, whether you can say no to a launch with data rather than opinion, and whether your postmortems stay blameless.
What a strong answer sounds like. Concrete actions with a measurable result, not values statements. SRE behavioral questions often hide a technical judgment, so answer both halves.
Worked example: "Tell me about a time you pushed back on a release." A strong structure:
- The situation in one sentence: the service had spent most of its error budget for the window.
- The data you brought: budget remaining, the burn rate, the incidents that spent it.
- The ask: hold the launch for a short period, or ship it behind a flag to a small slice, while two reliability fixes land.
- The disagreement and how it resolved: who decided, and what you conceded.
- The result and what you would change.
A related prompt is "Tell me about toil you removed." The SRE book chapter on eliminating toil defines toil as manual, repetitive, automatable work that scales with the service. A small real example (automating certificate renewal) beats a vague large one. The cert expiry challenge is that exact decision.
Common mistakes. Describing heroics (staying up all night) as the success, when the interviewer wants the fix that meant nobody had to. Blaming another team. Having no example of being wrong.
What to practice. Four stories: a release you pushed back on, toil you removed, an alert you fixed or deleted, and a time you changed your mind. Each in under two minutes.
Practicing under pushback
Every round has a moment where the interviewer disagrees on purpose. "Why not just add replicas?" "Isn't 99.99% safer?" Some objections are traps and some are new facts. Hold your position under pressure, and change it when a fact changes the trade-off.
You cannot practice that by reading. You need someone who argues back and a fixed standard. A general chatbot makes up an answer on the spot. DevOps Ledger grades you against an answer key written before you started. Most challenges linked here open with someone proposing the tempting fix, and you have to defend the better call.
A 4-week SRE interview preparation plan
This plan assumes you already work with Linux and one cloud, at about an hour on weekdays and two on weekends. Shift time toward the rounds the recruiter named.
Week 1: Linux, networking and scripting
- Mon-Tue: Walk the curl example against three real hosts with the
-wtiming line, explaining each number. - Wed: Read
free,vmstat 1and/proc/meminfoon a busy box, then argue the OOM and swap challenge. - Thu: The intermittent service DNS challenge.
- Fri: The nginx 502 challenge, then one script from the Round 1 list.
- Weekend: The remaining scripts, with error handling.
Week 2: SLOs, alerting and observability
- Mon: Error budget math for four SLO targets, by hand, both time-based and request-based.
- Tue: Read the workbook chapter on alerting on SLOs and redo the burn-rate table without looking.
- Wed: The noisy alert challenge. Rewrite its alert as a burn-rate alert.
- Thu: The Prometheus cardinality challenge, then the Kubernetes observability guide.
- Fri: The p99 latency tracing challenge.
- Weekend: Pick a service you know and write its SLIs, SLOs and alerting rules on one page.
Week 3: Reliability design
- Mon: The retry storm challenge. Compute the attempt counts for 2, 3 and 4 layers.
- Tue: The region failover challenge, then the async replica challenge. Write down RTO and RPO for each option.
- Wed: The untested backups challenge.
- Thu: Capacity drill: redo the zone math for 2, 3 and 4 zones and a different peak.
- Fri: The queue backlog challenge.
- Weekend: Two full design prompts out loud, 45 minutes each, starting with the SLO every time.
Week 4: Incidents, stories and timed runs
- Mon: The roll back or fix forward challenge and the liveness probe challenge.
- Tue-Wed: Write and rehearse your two incident story sheets. Have someone ask "why" five times.
- Thu: Behavioral stories, two minutes each, recorded once so you hear your filler words.
- Fri: A timed mixed run: one script, one troubleshooting walk, one design question.
- Weekend: Light review. Reread your sheets and the budget table.
FAQ
How long does it take to prepare for an SRE interview?
About four weeks at an hour a day if you already work with Linux, networking and one cloud. Coming from software development or support, plan for longer and spend it on Linux internals and on-call concepts.
What is the difference between an SRE interview and a DevOps interview?
They overlap heavily, and many companies use the titles loosely. SRE interviews more often ask you to quantify reliability: SLOs, error budgets, burn rates and capacity math. DevOps interviews more often focus on pipelines, infrastructure as code and delivery. Ask the recruiter which the role leans toward.
Do SRE interviews have coding?
Usually, yes. The common form is practical scripting such as parsing logs, aggregating metrics or calling an API with retries. Some companies use data-structures questions instead or as well. Pick one language, get fast with it, and always handle malformed input.
What SRE interview questions should I expect in the design round?
Expect a service or pipeline to design with reliability as the focus: define an SLI and SLO, compute the error budget, identify shared failure domains, size capacity with a zone lost, and explain how you would alert. Being able to say that 99.9% over 30 days is 43.2 minutes without a calculator helps.
How do I prepare for an SRE interview with no on-call experience?
Run a small service yourself, give it an SLO, break it on purpose and write a short postmortem. Say clearly that the experience is self-directed. Honest small examples hold up. Inflated stories fall apart in the deep-dive round.
Practice these scenarios
- The Box Keeps OOM-Killing. Just Add a Huge Swapfile?
A latency-sensitive service keeps getting OOM-killed and a teammate wants to add 16GB of swap and crank swappiness. Defend what you actually do instead.
- Service A Intermittently Cannot Reach Service B
One in twenty calls between two services fails. A teammate wants to add retries and move on. Defend how you actually find the cause.
- 502 Bad Gateway Right After a Deploy
The site returns 502 from nginx after a deploy. A teammate wants to tweak the nginx config. Defend where you actually look first.
- On-Call Is Drowning in Alerts. Silence Them?
A CPU alert pages constantly with no real impact. A teammate wants to silence it. Defend how you fix alerting properly.
- We're Missing a Dimension, So Add user_id as a Label?
Debugging lacked per-user detail, so a teammate wants user_id and request_id as Prometheus labels. Prometheus is already under memory pressure. Defend the call.
- A 30-Second Blip Became a 2-Hour Outage. More Retries?
A brief downstream blip cascaded into a full-platform meltdown because every layer retried. A teammate wants to raise retry counts. Defend the real fix.
- Your Primary Region Is Down. Fail Over Now?
The primary region is degraded. A teammate wants to flip DNS to the standby immediately. Defend whether and how you fail over.
- Failover Lost 5 Minutes of Writes. Promise Zero Data Loss?
An async-replica failover dropped five minutes of committed writes. Leadership demands zero data loss with zero performance impact. Defend the honest trade-off.
- Nightly Backups Run. Are You Actually Covered?
Automated backups have run for months. A teammate says you are fully covered for disasters. Defend whether you agree.
- p99 Latency Spiked Across a Microservice Chain
p99 latency jumped across a request that touches six services. A teammate wants to scale up the slowest-looking one. Defend how you find the real culprit.
- 3 AM Outage: Roll Back or Fix Forward?
A deploy 20 minutes ago correlates with a spike in 500s. You are on call. Defend whether to roll back or fix forward.
- Under Load, Healthy Pods Keep Restarting. Add Replicas?
During traffic peaks, Kubernetes keeps killing pods that are not actually broken. A teammate wants to scale up replicas. Defend the real fix.
- The Queue Backlog Doubles Every Day. 10x the Consumers Tonight?
A consumer queue backlog is doubling daily and a teammate wants to 10x the consumer fleet tonight. Defend diagnosing the real bottleneck first, and why blind consumer scaling can make the outage worse.
- The Cert Expires Tonight. Just Bump It to a 10-Year Cert?
Your nginx TLS cert expires tonight and an expired cert took the site down last quarter. A teammate wants a 10-year self-signed cert. Defend the real fix.
Free guides to read next
Practice defending your decisions
DevOps Ledger is a scenario-based DevOps and SRE interview practice platform: you pick a real production incident, defend your decision in a chat against a senior-engineer AI that pushes back, and get scored against an answer key written before you started.
One payment. 12 months of access. No subscription, nothing renews.
Get full access - $19