BetaJobprepping.com is in beta and still under construction. New sign-ups are closed.
Start practising
Site Reliability Engineer

26 Site Reliability Engineer Interview Questions and Answers

26 Site Reliability Engineer interview questions grouped by round, each with why it is asked, a strong answer outline, a weak answer and the follow-up.

Updated

Site Reliability Engineer interview questions fall into six groups: on-call and incident stories, Linux and networking fundamentals, live troubleshooting scenarios, SLOs and alerting, reliability-focused system design with real numbers, and practical coding. Below are 26 questions we wrote for practice, each with why it is asked, a strong answer, a weak answer and the likely follow-up.

For the whole loop, read the Site Reliability Engineer interview guide; for a schedule, the two-week SRE prep plan; and for employer expectations, things to know before applying for an SRE job.

How Site Reliability Engineer interview questions map to the interview loop#

  • Screen: an on-call story and "why SRE rather than software engineering".
  • Coding: a practical Python or Go task on log or metrics data.
  • Troubleshooting: an open scenario where the interviewer gives evidence only when you ask.
  • Linux and networking: processes, memory, file descriptors, DNS, TCP and TLS.
  • Reliability design: SLOs, alerting, capacity and failure modes. At Google this is the non-abstract large system design (NALSD) interview; Google's SREcon18 Asia talk "Interviewing for Systems Design Skills" says every SRE candidate sits one, and chapter 12 of "The Site Reliability Workbook" explains the method.
  • Behavioural: postmortems, disagreements over risk, toil you removed.

Interviewers care less about your first answer than about how you narrow uncertainty, so expect follow-ups that move you off your prepared story.

SRE behavioural interview questions about on-call and incidents#

1. Tell me about the worst incident you have been part of#

  • Why: it tests whether you were really in the room and what role you played.
  • Strong answer: impact in numbers, a timeline in five beats (detection, triage, mitigation, resolution, review), your role and one lasting change.
  • Weak answer: a heroic all-nighter with no numbers.
  • Follow-up: "What would have cut detection time in half?"
Sample outline: "Checkout errors hit 8% for 40 minutes after a config push. I was incident commander. We rolled back at minute 22 once the error rate tracked the deploy; the postmortem added a canary stage for config."

2. Describe a postmortem you wrote that changed how the team worked#

  • Why: blameless review is core to SRE culture, and Google's "Site Reliability Engineering" book gives it a whole chapter.
  • Strong answer: the contributing factors (not one root cause), action items with owners and dates, and proof they were closed.
  • Weak answer: "the root cause was human error, we told them to be careful."
  • Follow-up: "Which action item never got done, and why?"

3. How many pages did your last on-call rotation get, and what did you do about it?#

  • Why: the "Being On-Call" chapter of Google's "Site Reliability Engineering" book sets a ceiling of two incidents per 12-hour shift, so each can be handled and followed up properly.
  • Strong answer: a before-and-after number, how you classified pages as actionable or noise, and the specific change.
  • Weak answer: "it was busy but manageable."
  • Follow-up: "How did you stop the noise coming back?"
Sample outline: "About 14 pages a week, only 30% actionable. Half came from one per-host disk alert, now a fill-rate ticket. I grouped Alertmanager alerts by cluster and alertname and added an inhibition rule so node-down suppressed that node's pod alerts. Six weeks later: four pages a week, 85% actionable."

4. Tell me about a piece of toil you eliminated#

  • Why: the Google SRE book's chapter on eliminating toil sets a goal of keeping operational work below 50% of each SRE's time.
  • Strong answer: defines the toil (manual, repetitive, automatable, grows with traffic), quantifies it ("certificate renewals took four hours a month, now zero") and names the automation's own failure mode.
  • Weak answer: a script with no measure of time saved.
  • Follow-up: "How do you know the automation is not silently failing?"

5. Tell me about a time you pushed back on a launch because of reliability risk#

  • Why: SREs have to say no to product teams with evidence, not authority.
  • Strong answer: the data (a load test that failed at 1.5 times current peak before a launch expected to bring three times), the compromise (a feature-flagged rollout at 5% while the connection pool was fixed) and the outcome.
  • Weak answer: "I blocked it until it was ready."
  • Follow-up: "What if the product lead had overruled you?"

Linux and networking interview questions for SRE#

6. What happens when you type a URL into a browser and press enter?#

  • Why: it reveals depth across the stack in one prompt.
  • Strong answer: DNS resolution (cache, /etc/resolv.conf, recursive resolver, TTL), TCP and TLS handshakes, the HTTP request through a load balancer, and where each step fails and how you would see it (dig, curl -v, openssl s_client).
  • Weak answer: five boxes on a whiteboard with no failure modes.
  • Follow-up: "DNS resolves, but the connection hangs. What next?"

7. A server's load average is 40 on a 16-core machine. Is that bad?#

  • Why: load average is widely misread.
  • Strong answer: Linux load counts runnable tasks plus tasks in uninterruptible sleep (usually disk waits), so it can mean CPU saturation or I/O stalls. Check whether the 1, 5 and 15 minute uptime averages are rising, then run vmstat 1, mpstat -P ALL 1 and iostat -xz 1. These commands are part of Brendan Gregg's 60-second Linux performance checklist, and reading them through his USE method (utilisation, saturation, errors) tells you which resource is saturated. ps -eo state,pid,cmd | grep '^D' lists tasks stuck in uninterruptible I/O.
  • Weak answer: "yes, reboot it."
  • Follow-up: "CPU is 20% busy. Where is the load coming from?"

8. A process was killed and the logs only say "Killed". What happened?#

  • Why: OOM behaviour trips up candidates who have only worked above the container layer.
  • Strong answer: suspects the kernel OOM killer, confirms with dmesg or journalctl -k, and for a Kubernetes pod checks for OOMKilled as the last termination reason, comparing the memory limit with real usage.
  • Weak answer: "double the memory."
  • Follow-up: "Memory grows slowly for two days before each kill. What does that suggest?"

9. A service logs "too many open files". How do you investigate?#

  • Why: file descriptor limits are a classic production failure.
  • Strong answer: checks /proc/<pid>/limits, counts descriptors with ls /proc/<pid>/fd | wc -l or lsof -p, and inspects them: sockets that never close mean a leak, not a low limit.
  • Weak answer: raise ulimit and move on.
  • Follow-up: "Most descriptors are sockets to the same database host. Why?"

10. Explain the difference between a liveness probe and a readiness probe in Kubernetes#

  • Why: misconfigured probes cause outages.
  • Strong answer: readiness controls whether a pod receives traffic; liveness controls whether it gets restarted. The trap: a liveness probe that checks a downstream database restarts every pod when the database blips, turning a partial outage into a total one.
  • Weak answer: "they both check health."
  • Follow-up: "What should a readiness endpoint check?"

11. Why might a DNS change take hours to reach some clients?#

  • Why: DNS caching is a classic cause of slow migrations and long incident tails, because you cannot recall a cached answer.
  • Strong answer: the TTL on the old record, resolvers that cache longer than the TTL, client libraries that cache addresses for the life of a process, and negative caching. The fix: lower the TTL well before the change.
  • Weak answer: "DNS is slow."
  • Follow-up: "How would you migrate a hostname with no downtime?"

SRE troubleshooting interview questions#

12. Error rate on the main API jumped from 0.1% to 6% five minutes ago. Go#

  • Why: this is the core SRE round.
  • Strong answer: follows an order out loud.
  1. Scope: which endpoints, regions and customers, and since exactly when.
  2. Change: any deploy, config, feature flag, certificate or dependency change in the window.
  3. Mitigate: if it lines up with a change, roll back first and investigate after.
  4. Communicate: declare an incident, name a commander, post an update.
  5. Narrow: compare failing and healthy requests by trace.
  • Weak answer: jumping into one pod's logs.
  • Follow-up: "Nothing changed in the last day. Now what?"

13. Latency p99 doubled but p50 is flat. What does that tell you?#

  • Why: it tests how you read distributions.
  • Strong answer: a subset of requests is slow: one bad replica, garbage collection pauses, a cold cache shard, hot-key lock contention or stacked retries. Split p99 by instance, endpoint and dependency to find it.
  • Weak answer: "the service is slow, scale it."
  • Follow-up: "One instance out of 30 explains it. Do you remove it or debug it?"

14. Database connections are exhausted and the app is returning errors. What do you do?#

  • Why: connection pool sizing causes real outages.
  • Strong answer: mitigates first by shedding non-critical traffic, then does the arithmetic: 60 pods with a pool of 20 each is 1,200 possible connections against a Postgres max_connections of perhaps 500. Lasting fixes are smaller pools, a connection pooler in front of Postgres, and finding slow queries that hold connections.
  • Weak answer: "raise max_connections to 5,000", ignoring per-connection memory.
  • Follow-up: "Autoscaling added pods during the incident. Did that help or hurt?"

15. A deploy went out and errors rose, but rolling back did not fix it. What now?#

  • Why: it breaks the easy story.
  • Strong answer: looks for what the rollback did not undo: a schema migration, a cache of bad data, poisoned queue messages or a coincident upstream failure.
  • Weak answer: rolling back again.
  • Follow-up: "How would you design deploys so this cannot happen?"

16. Retries are making an outage worse. Why, and how do you stop it?#

  • Why: retry storms turn small failures into large ones, the argument made in the Google SRE book's chapter "Addressing Cascading Failures".
  • Strong answer: explains multiplication. Three layers that each make up to three attempts turn one user request into as many as 27 calls to the bottom service (3 x 3 x 3); with three retries each, that is four attempts per layer and 64 calls. Fixes: backoff with jitter, retry budgets, circuit breakers and retrying at one layer only. Payments and other non-idempotent calls need idempotency keys first.
  • Weak answer: "turn retries off."
  • Follow-up: "Where in the stack should retries live?"

17. You are incident commander and two senior engineers disagree on the fix. What do you do?#

  • Why: incident command is a coordination job.
  • Strong answer: asks each for evidence and the risk of being wrong, picks the reversible action first, and sets a time box: "We roll back for ten minutes; if errors do not drop, we try the failover."
  • Weak answer: letting the debate run.
  • Follow-up: "How do you keep the status page and executives informed meanwhile?"

SLO and error budget interview questions#

18. Define the SLI and SLO for a public REST API#

  • Why: this is the foundation of SRE practice.
  • Strong answer: user-facing indicators measured at the load balancer: the share of valid requests that succeed and the share served under a latency threshold. Then a target and window, for example 99.9% under 300 milliseconds over 28 days, with exclusions stated (client 4xx errors do not count).
  • Weak answer: "99.999% uptime" with no measurement point.
  • Follow-up: "Who decided 99.9%, and what happens if you miss it?"

19. How much error budget does a 99.9% SLO allow over 30 days?#

  • Why: budget arithmetic is asked constantly.
  • Strong answer: 30 days is 43,200 minutes, and 0.1% of that is 43.2 minutes of full outage. For a request-based SLO, convert it to a count: at 20 million requests a day, 30 days is 600 million requests, so the budget is 600,000 failed requests. A 2% error rate for an hour at 230 requests a second uses about 16,600 of them, under 3% of the month's budget.
  • Weak answer: a memorised figure with no method.
  • Follow-up: "One incident on day three burned 30 minutes of full outage. What changes?"

20. Why would you alert on burn rate rather than error rate?#

  • Why: it checks you can page for real budget risk rather than short blips, the most common cause of noisy rotations.
  • Strong answer: chapter 5 of "The Site Reliability Workbook" recommends multiwindow, multi-burn-rate alerts: page when 2% of a 30-day budget burns in one hour (burn rate 14.4) or 5% in six hours (burn rate 6), and open a ticket when 10% burns in three days (burn rate 1). A short window, a twelfth of the long one, resets the alert quickly. Sketch the fast-burn rule:
(
  sum(rate(api_requests_total{status=~"5.."}[1h]))
    / sum(rate(api_requests_total[1h]))
) > (14.4 * 0.001)

Add and the same ratio over [5m] for the short window. The 0.001 is the budget of a 99.9% SLO; times the burn rate, it is the error ratio that spends 2% of the month's budget in an hour.

  • Weak answer: "alert when errors exceed 1%."
  • Follow-up: "How do these thresholds change for a 28-day window?"

21. Why can't you average p99 latency across instances, and how do Prometheus histograms fix it?#

  • Why: it separates people who build dashboards from people who only read them.
  • Strong answer: percentiles do not aggregate; a quiet slow instance and a busy fast one get equal weight in an average. Prometheus summaries compute quantiles per instance, so they cannot be combined. Histograms export bucket counts, which you sum first and convert afterwards:
histogram_quantile(0.99,
  sum by (le) (rate(http_request_duration_seconds_bucket[5m])))

Precision depends on buckets, so place them near the SLO threshold (0.25, 0.3 and 0.4 seconds for a 300 millisecond target), and every label multiplies series count, so never label by user ID.

  • Weak answer: "average the p99 panels."
  • Follow-up: "When would you reach for traces instead of metrics?"

SRE system design and capacity questions#

22. Size a service that must handle 20 million requests a day#

  • Why: non-abstract design means real numbers.
  • Strong answer: 20 million divided by 86,400 seconds is about 230 requests a second; at a peak of three times average, plan for roughly 700. If one instance handles 100 requests a second within the latency SLO, you need seven at peak. To run at about 60% utilisation you need 700 / 60, so 12. Spread across three zones and planning to lose one, the two survivors must carry all 12, so 6 per zone and 18 in total. Two zones would mean 24 instances, and four zones would mean 16.
  • Weak answer: "put it on autoscaling."
  • Follow-up: "Where does this design hit a wall first, the app or the database?"

23. Design a payments service to survive the loss of a whole region#

  • Why: data is where candidates go vague.
  • Strong answer: chooses active-active or active-passive, decides where writes go, and sets recovery objectives it proves with drills.
Sample outline: "RPO 1 minute, RTO 15 minutes. Async replication lag p99 is 5 seconds, so the RPO holds. Failover: fence the old primary, promote the replica, switch DNS with a 60-second TTL set well in advance, reconcile payments in the lag window using idempotency keys. Drill quarterly and time it against the RTO."
  • Weak answer: "deploy to two regions" without discussing data.
  • Follow-up: "Replication lag is 30 seconds at failover. What do users see?"

24. Terraform plan shows it will destroy and recreate the production database. What do you do?#

  • Why: a careless apply is a fast way to lose data.
  • Strong answer: stops and reads which attribute forces replacement: a renamed resource, a changed immutable argument, or drift after a manual console change. Fix a rename with a moved block or terraform state mv, adopt a hand-made resource with terraform import, and revert an immutable change or plan it as a migration. Then prevent repeats: lifecycle { prevent_destroy = true }, database deletion protection, and CI plan review that fails on destroying stateful resources.
  • Weak answer: "apply it, there are backups."
  • Follow-up: "Someone already applied it. What are your first five minutes?"

SRE coding interview questions#

25. Write a script that reports the p99 latency per endpoint from an access log#

  • Why: SRE coding rounds use operational data.
  • Strong answer: asks the interviewer to confirm the input format before coding. Assume a timestamp, an endpoint and a latency in milliseconds per line, such as 2026-11-24T10:00:01Z /api/orders 182.4. Stream lines, count malformed ones, group per endpoint, and state the percentile method:
import math
from collections import defaultdict

def p99_by_endpoint(lines):
    latencies, bad = defaultdict(list), 0
    for line in lines:
        parts = line.split()
        try:
            endpoint, ms = parts[1], float(parts[2])
        except (IndexError, ValueError):
            bad += 1
            continue
        latencies[endpoint].append(ms)
    result = {}
    for endpoint, values in latencies.items():
        values.sort()
        rank = math.ceil(0.99 * len(values))  # nearest-rank method
        result[endpoint] = values[rank - 1]
    return result, bad
  • Weak answer: loading the whole file into pandas and crashing on line 40.
  • Follow-up: "The log is 200 GB. How do you avoid holding every latency in memory?" Mention fixed buckets, as in question 21, or sketches such as HDR histograms or t-digest.

26. Automate a check for TLS certificates that expire within 30 days#

  • Why: expiry still causes outages; an expired authentication certificate stopped users signing in to Microsoft Teams for a few hours on 3 February 2020.
  • Strong answer: reads each host's notAfter date with Python's ssl module, parses it with ssl.cert_time_to_seconds and compares it with today plus 30 days. The trap: with a verifying context an already-expired certificate fails the handshake with ssl.SSLCertVerificationError, so a naive script reports "connection error". Catch it, report it as expired, and treat timeouts separately. Ticket at 30 days; page only under seven.
  • Weak answer: a script that prints to stdout on someone's laptop.
  • Follow-up: "How would you automate renewal?" Name ACME clients, cert-manager on Kubernetes or certbot, renewing well before expiry. Let's Encrypt's default 90-day lifetime is due to fall to 64 days in February 2027, so hard-coded renewal dates will break.

How to practise these questions out loud#

Three drills that turn these questions into rehearsed answers:

  • Narrate your order. Say "first I scope, then I check for changes, then I mitigate" before asking for evidence.
  • Do the arithmetic on paper. Practise five budget, burn-rate and capacity sums, varying the SLO, window and zone count, until each takes under a minute.
  • Prepare three stories with numbers: an incident, a postmortem and an on-call improvement.

You can practise a timed 30, 45 or 60 minute Site Reliability Engineer mock interview with an AI interviewer that follows up on what you said, then scores reliability, debugging, coding and design.

Frequently asked questions#

What are the most common SRE interview questions?#

The most common are an open troubleshooting scenario (errors or latency rising with no obvious cause), "what happens when you load a URL", defining an SLO and calculating its error budget, an incident or postmortem story, and a practical coding task on log or metrics data. Linux questions on load average, memory and file descriptors are frequent in dedicated systems rounds.

What is a good answer to "error rate jumped to 6%, go"?#

A good answer starts with three questions to the interviewer before touching any tool: which endpoints and regions are affected, what changed in the last hour, and does the rise track a deploy. Those answers decide whether you roll back now or keep narrowing. Then declare an incident and follow the five-step order in question 12 above, saying what each piece of evidence rules out.

Do SRE interviews ask system design questions?#

Yes, but the emphasis differs from software engineering design rounds. SRE design questions focus on capacity estimates with real numbers, failure domains, degradation, rollout safety and monitoring. Google calls its version non-abstract large system design and documents it in "The Site Reliability Workbook". Expect to justify how many machines you need and what happens when a zone fails.

What coding language should I use in an SRE interview?#

Use Python or Go unless the job advert says otherwise; both are common in SRE tooling and most interviewers accept either. Pick the one you write fastest without looking things up. Tasks are usually practical, such as parsing logs, so clean handling of messy input matters more than clever algorithms.

How many questions should I prepare for an SRE interview?#

Prepare three or four detailed stories with numbers, a rehearsed method for troubleshooting scenarios, and fluent arithmetic for error budgets and capacity. With those, you can handle most of the 26 questions here. Practising follow-ups beats memorising answers word for word, because SRE interviewers deliberately move you off your prepared story.

Read next

GuideSite Reliability Engineer

Site Reliability Engineer Interview Guide and Questions

How the site reliability engineer interview works, the skills it scores, 7 practice questions with strong-answer notes, the coding round and a one-week plan.

Prep planSite Reliability Engineer

How to Prepare for a Site Reliability Engineer Interview

How to prepare for a site reliability engineer interview in 14 days, with daily drills, burn-rate maths, a story bank, timed mocks and a 3-day fallback plan.

ChecklistSite Reliability Engineer

Site Reliability Engineer Job, 16 Things to Know First

What to know before applying for a Site Reliability Engineer job, from on-call and SLO maths to must-have skills, pay data, job-ad red flags and the loop.

Practice

Say it out loud.

Reading about an interview isn't the same as doing one. Take a 30, 45 or 60-minute Site Reliability Engineer interview with an AI interviewer and get scored against a real rubric.

Choose an interview