The idea in one minute#
SRE sits between software engineering and systems engineering, and the job — and the interview — tests both. Expect five kinds of interview: coding (practical, often scripting or a small service), systems fundamentals (Linux, networking, how things actually work), troubleshooting (a live, open-ended “this is broken, find out why”), non-abstract large system design (NALSD: design a system with numbers — machines, disks, bandwidth), and behavioural (incidents you handled, conflicts, on-call). The best preparation is the work itself: run services, break them, fix them, and write it down.
An analogy#
A ship’s engineer must be able to read the blueprints (design), know how the engine works (fundamentals), fix it at sea at night (troubleshooting), build the tools they need (coding), and keep calm with the captain shouting (behaviour). Missing any one of these is felt at the worst moment.
A picture#
flowchart LR
subgraph SKILLS["The SRE skill map"]
direction TB
SWE[":go: <b>Software engineering</b><br/><small>Go/Python, testing, APIs, automation</small>"]
SYS[":linux: <b>Systems</b><br/><small>Linux, processes, memory, filesystems</small>"]
NET[":i-network: <b>Networking</b><br/><small>TCP/IP, DNS, TLS, HTTP, load balancing</small>"]
DIST[":i-layers: <b>Distributed systems</b><br/><small>replication, consensus, queues, caching</small>"]
OPS[":kubernetes: <b>Operations</b><br/><small>Kubernetes, cloud, IaC, observability</small>"]
REL[":i-gauge: <b>Reliability practice</b><br/><small>SLOs, incidents, postmortems (this material)</small>"]
end
SKILLS --> INT[":i-users: <b>Interview loop</b><br/><small>coding · fundamentals · troubleshooting · NALSD · behavioural</small>"]
class SWE compute
class SYS,NET io
class DIST memory
class OPS queue
class REL neutral
class INT warnHow it really works#
What to know#
| Area | You should be able to explain | Practise by |
|---|---|---|
| Linux | Processes and signals, fork/exec, file descriptors, memory (RSS, page cache, OOM), CPU scheduling and load average, cgroups and namespaces, systemd, /proc | Running the 60-second checklist (4.c) on a stressed VM |
| Networking | TCP handshake and teardown, TIME_WAIT, retransmits, MTU, DNS resolution path, TLS handshake, HTTP/1.1 vs 2 vs 3, L4 vs L7 load balancing, NAT | tcpdump, dig +trace, curl -v, ss, openssl s_client |
| Distributed systems | Replication, quorum, consensus (Raft at a high level), CAP and PACELC, idempotency, exactly-once myths, queues and backpressure, caching and invalidation | Reading the papers and postmortems in The Best of the Internet |
| Coding | Write a correct, tested tool in an afternoon; parse logs; call APIs; concurrency basics | The Go programs in this material, and the projects |
| Operations | Kubernetes objects and failure modes, a cloud provider’s core services, Terraform, Prometheus/PromQL, tracing | A home lab or a kind cluster with the projects |
| Reliability | Everything in this material | Running the projects and a real on-call rotation |
The interview types#
1. Coding. Often practical: parse a log file and report the top error per endpoint; implement a rate limiter; write a concurrent health checker with timeouts. Interviewers look for correctness, edge cases (empty input, malformed lines, huge files), reasonable complexity, and clean error handling — not puzzle tricks.
2. Fundamentals. “What happens when you type a URL into a browser and press Enter?” — at the depth of DNS caching, TCP, TLS, HTTP, the load balancer, the server, and back. “What does load average mean?” “A process is using 100% CPU but you cannot kill it with SIGTERM — why?”
3. Troubleshooting. An open-ended scenario: “Users report the site is slow. Go.” The interviewer answers your commands. They watch your method: clarify impact, form hypotheses, check the cheapest and likeliest first, use the USE/RED checklists, narrow down, mitigate before root cause, and communicate. Narrate your thinking.
4. NALSD (non-abstract large system design). Google’s term for system design with concrete numbers: design a system, then work out how many machines, disks and how much bandwidth it needs, where it fails, and how it degrades. “Non-abstract” means “3 TB/day across 3 replicas on 12 TB disks at 70% fill needs ~1 disk-day of growth…”, not “we’ll use a database”. The program below is a NALSD calculator.
5. Behavioural. “Tell me about an incident you handled.” Use a structure — situation, your actions, the result, what changed afterwards — and show blamelessness, communication, and follow-through. Prepare stories about: an outage, a disagreement about reliability vs speed, an automation you built, a mistake you made, and pushing back on a launch.
A troubleshooting answer, worked#
“The checkout API’s latency went from 100 ms to 3 s ten minutes ago.”
- Impact: all users or some? All endpoints? Errors too? (Interviewer: all users, all endpoints, a few timeouts.)
- What changed? Deploys, config, traffic, dependencies? (No deploys; traffic normal.)
- RED on the service and its dependencies: are dependencies slow? (Database p99 is 2.8 s.)
- USE on the database: CPU 30%, disk await normal, connections 500/500, many queries waiting on locks.
- Which queries?
pg_stat_activity: a long-runningALTER TABLEfrom a migration is holding a lock; everything touching that table queues. - Mitigate: cancel the migration’s backend (
pg_cancel_backend) — latency recovers. - Follow-up: run migrations with
lock_timeout, expand/contract (9.c); alert on lock waits.
Talking through those steps clearly matters more than reaching the exact cause.
Growing as an SRE#
- Junior: handles pages with runbooks, automates toil, fixes postmortem items.
- Mid: owns a service’s reliability — SLOs, alerting, capacity — and runs incidents as IC.
- Senior: designs for reliability across teams, leads PRRs and major incident reviews, builds paved roads.
- Staff+: sets reliability strategy and engagement models, influences architecture across the organisation, makes the SLO and error-budget culture stick.
Certifications (Kubernetes CKA/CKAD, cloud associate/professional, Terraform) help structure learning and pass CV filters; they do not replace evidence of running things. A public portfolio — the projects in this material, a write-up of a home-lab incident, a postmortem you wrote — is strong evidence.
A worked example#
NALSD prompt: “Design log ingestion for a fleet producing 2 million log lines per second, 500 bytes each, searchable for 14 days, 3× replicated.”
- Ingest:
2e6 × 500 B = 1 GB/s→ 8 Gbit/s. With 3× replication that is 3 GB/s of writes raw, or 600 MB/s after 5× compression. - Storage per day:
1 GB/s × 86,400 = 86 TB/dayraw; compressed 5× → 17 TB/day; × 3 replicas → 52 TB/day; × 14 days → 726 TB. - Disks: 16 TB disks at 70% fill → 65 disks; nodes of 12 disks → 6 nodes for space. Writes need only 2 nodes at 400 MB/s each, so space dominates. With N+1: 7 nodes.
- Failure: losing one node means re-replicating ~121 TB; at 1 GB/s that is ~34 hours of reduced redundancy — a risk window to raise yourself. Options: more, smaller nodes (20 nodes of 4 disks cut it to about 11 hours), erasure coding instead of 3× replicas, rack-aware placement.
The program does this arithmetic so you can practise with different numbers.
Code#
// nalsd.go — back-of-the-envelope numbers for a log ingestion design.
package main
import (
"fmt"
"math"
)
func main() {
const (
linesPerSec = 2_000_000.0
bytesPerLine = 500.0
compression = 5.0
replicas = 3.0
retentionDays = 14.0
diskTB = 16.0
fill = 0.70
disksPerNode = 12.0
nodeWriteMBps = 400.0 // sustained compressed write capacity per node we are willing to plan for
)
ingestBps := linesPerSec * bytesPerLine
fmt.Printf("ingest: %.1f GB/s (%.1f Gbit/s)\n", ingestBps/1e9, ingestBps*8/1e9)
daily := ingestBps * 86400
stored := daily / compression * replicas * retentionDays
fmt.Printf("raw per day: %.0f TB\n", daily/1e12)
fmt.Printf("stored (14 d, 3×, ÷5): %.0f TB\n", stored/1e12)
disks := math.Ceil(stored / 1e12 / (diskTB * fill))
nodesForSpace := math.Ceil(disks / disksPerNode)
writeMBps := ingestBps / compression * replicas / 1e6
nodesForWrites := math.Ceil(writeMBps / nodeWriteMBps)
nodes := math.Max(nodesForSpace, nodesForWrites) + 1 // N+1
fmt.Printf("disks at %.0f%% fill: %.0f × %.0f TB\n", fill*100, disks, diskTB)
fmt.Printf("nodes for space: %.0f\n", nodesForSpace)
fmt.Printf("nodes for writes: %.0f (%.0f MB/s compressed+replicated ÷ %.0f MB/s per node)\n", nodesForWrites, writeMBps, nodeWriteMBps)
fmt.Printf("plan (max + 1): %.0f nodes\n", nodes)
perNodeTB := stored / 1e12 / (nodes - 1)
rebuildGBps := 1.0
fmt.Printf("\nlose one node: re-replicate ~%.0f TB; at %.0f GB/s that is %.0f hours of reduced redundancy\n",
perNodeTB, rebuildGBps, perNodeTB*1000/rebuildGBps/3600)
}Remember this#
- SRE = software engineering + systems; the interview tests coding, fundamentals, troubleshooting, NALSD and behaviour.
- Troubleshooting interviews grade the method: impact, what changed, RED/USE, narrow down, mitigate first, communicate.
- NALSD means numbers: bandwidth, storage, machines, failure and recovery time.
- Prepare incident stories with blameless framing and follow-through.
- Evidence of running things beats certificates; the projects in this material are a portfolio.
Try it#
- Run
nalsd.go. Change retention to 30 days and compression to 8×. What dominates now — space or writes? - Answer “what happens when you type a URL and press Enter” out loud for ten minutes, down to the TCP handshake and TLS.
- Ask a colleague to run a troubleshooting interview on you, using an incident from your own system.
Check yourself#
- What makes system design “non-abstract”?
- In a troubleshooting interview, why mitigate before finding the root cause?
- Name four incident stories worth preparing for a behavioural interview.
- Which skills on the map are hardest to learn from reading alone?