How to Use the 30-Day Drill
Illustrative interview practice. Generic company names and hostnames do not represent any specific organization.
What this is
The 30-Day Drill is a month of practice questions about keeping online services running. Each day gives you one question of the kind asked in interviews for site reliability engineers, the people whose job is to keep a service working.
You answer in your own words first. Then you read an explanation written for someone new to the subject, and compare your answer with a model one.
It contains four warm-up scenarios, thirty daily drills, a sheet of commands, and a list of what to study next.
Please note Every scenario here was made up for practice. None describes the interview questions, process or systems of any real organisation. Names such as app.example.com are stand-ins. Tools are named only because they are in common use.
The thirty days
| Day | Topic | Day | Topic |
|---|---|---|---|
| 1 | Too Many Programs, and the Limits Nobody Watches | 16 | One Shared Exit to the Internet Runs Out of Ports |
| 2 | Busy but Idle, and Killed With Memory to Spare | 17 | Three Error Numbers That Tell You Where to Look |
| 3 | Why New Connections Are Refused | 18 | When Adding Servers Automatically Makes Things Worse |
| 4 | Connected, but Nothing Loads: an Expired Certificate | 19 | Memory That Leaks, Memory That Is Busy, and Pauses to Tidy Up |
| 5 | A Release That Drops Some Users While Every Check Is Green | 20 | Why the Slowest One in a Hundred Matters More Than the Average |
| 6 | Sent to the Wrong Side of the World | 21 | Giving Up Quickly on a Slow Service, and Keeping the Damage in One Room |
| 7 | You Are in Charge: One Part of the World Cannot Log In | 22 | Everything Is Suddenly Slow, and the Processor Is Barely Working |
| 8 | Works From the Command Line, Fails in the Browser | 23 | Errors Shoot Up While Speed and Processor Look Normal |
| 9 | Login Works, but the Live Connection Keeps Dropping | 24 | Twice the Visitors, Half the Speed: Running a Top-Priority Incident |
| 10 | Five Times Slower, With the Processor Half Idle | 25 | A Healthy Service That Nobody Can Reach |
| 11 | Every Request Says "OK", and the Site Is Still Broken | 26 | Slow at the Same Minute Every Night |
| 12 | One Slow Service Drags Down All the Others | 27 | Fine for an Hour, Then Down, Every Time |
| 13 | Everyone Comes Back at Once | 28 | Every Graph Is Calm, and People Say It Is Slow |
| 14 | Fine After a Restart, Stuck Again a Few Hours Later | 29 | No Errors, but Half the Page Is Empty |
| 15 | No Port Numbers Left for Outgoing Calls | 30 | Slow in One Part of the World Only |
| Week | Theme | Days |
|---|---|---|
| Week 1 | How one computer runs out of room, and how traffic reaches it | 1 to 7 |
| Week 2 | Secure connections, and how one fault spreads to others | 8 to 14 |
| Week 3 | Network limits, growing under load, and containing damage | 15 to 21 |
| Week 4 | Whole incidents, start to finish | 22 to 30 |
How each day is laid out
| Part | What it is for |
|---|---|
| Scenario | The question, the same question in plain words, and the words you need to follow it. This is all you see before you answer. |
| Key Insight | The one idea that unlocks the question. |
| Explanation and Investigation | The reasoning, step by step, with the commands you would run. |
| Commands to Know | Each command with what it shows you. |
| Model Answer | An answer you could say aloud in under a minute. |
| Checkpoint Question | On some days: a short follow-up to test yourself. |
| Sample Candidate Answer | On some days: a weaker answer, and what it lacks. |
You can treat a day as a timed practice interview, or read it as a lesson. Trying to answer first teaches more.
A way to think when something breaks
Most questions here are about a fault in a running service. The same six steps work for nearly all of them.
| Step | What you ask |
|---|---|
| 1. Look | Who is affected: everyone, one region, one kind of device? What exactly fails? Which graphs are normal? |
| 2. Narrow by place | One region points to something local. Many regions point to something they all share. |
| 3. Narrow by step | A request passes through several steps on its way. Which is the first one that fails? |
| 4. Prove it | Check your idea against numbers first, then logs, then the traffic itself. |
| 5. Stop the harm | Undo the last change, switch the new feature off, or send users elsewhere. Tell people what is happening. |
| 6. Prevent it | Afterwards, write up what happened without blaming anyone, and add a check or an alert. |
The steps a request passes through
| Step | What to check there |
|---|---|
| Finding the address (DNS) | Does the name lead to the right address, from where the affected users are? |
| Network path | Can traffic get there? Is a firewall rule in the way? |
| Load balancer | Is it listening? Does it count the servers as healthy? |
| Secure connection (TLS) | Is the certificate valid and for the right name? |
| The program itself | What do its logs say? Was a feature switched on? |
| What it depends on | Can it reach its database, its cache and the other services it calls? |
The order to speak in
Say it in this order What I see: “Users in one region are affected. Processor, memory and network look normal.” What it could be: “That suggests the load balancer, the secure connection, or the last release.” How I would check: “I would look at server health on the load balancer, test the handshake, and list recent changes.” How I would stop it: “Go back to the previous version, or switch the feature off.” How I would prevent it: “Add an alert, and make a bad release stop by itself.”
How to rate your own answer
Nothing on this site grades a drill answer. You rate yourself, on the same 1 to 4 scale used in the rest of the site.
| Level | What the answer looks like |
|---|---|
| 4 of 4 (Strong) | Has a clear order. Stops the harm before explaining it. Covers several steps, names what to look at, and ends with prevention. |
| 3 of 4 (Solid) | Finds the likely cause and a way to stop the harm. Leaves out a step or two, or names no tools. |
| 2 of 4 (Developing) | Sensible instincts but no order. Settles on one cause without testing it. |
| 1 of 4 (Gap) | Does nothing to stop the harm, checks nothing, or misreads the problem. |
Habits that help
Say which step of the request you are looking at, every time.
When a fault affects one region, ask for the same numbers from a region that works, and compare.
Look at numbers before logs, and logs before raw traffic.
Always say how you would stop the harm and how you would prevent a repeat. Finding the cause is only half an answer.
Ask what changed recently. It is the cause more often than not.
What an interview for this job usually includes
Companies differ, and this is only a common pattern. Most ask some mix of the following, over several conversations.
| Conversation | What it is about |
|---|---|
| First call | Your background and why you want the job |
| Coding | Small practical programs, such as reading a log file and counting things |
| Linux and networks | How a computer and a network behave, and how you would find a fault in them |
| System design | Sketching a service that must cope with a stated amount of traffic |
| Incident | Talking through a fault as if it were happening now |
| Behavioural | Stories from your own experience: what happened, what you did, how it ended |
This drill practises the Linux, network and incident conversations. The practice section of the site covers coding, system design and behavioural questions.
A small coding example
Coding questions for this job are usually practical. Here is one: given a list of log lines, each with a time in seconds and a result, say whether more than a set number failed in the last five minutes.
def too_many_failures(lines, now, limit, window=300):
"""True if more than `limit` lines failed in the last `window` seconds."""
recent = 0
for line in lines:
if line["result"] == "FAIL" and now - line["time"] <= window:
recent += 1
return recent > limit
lines = [
{"time": 100, "result": "OK"},
{"time": 350, "result": "FAIL"},
{"time": 390, "result": "FAIL"},
]
print(too_many_failures(lines, now=400, limit=1)) # True: two failed, and the limit is onePassing `now` in, not reading the clock inside the function, makes it easy to test. Saying so aloud is the kind of remark interviewers listen for.
A daily routine
One drill a day is enough. Read the scenario, write your answer without looking anything up, then read the explanation and rate yourself.
If you have more time, run the day's commands on a Linux computer and read what they print. A free virtual machine or a container will do.
The aim after thirty days is simple. For any of these questions, you can speak for a minute or two in a clear order and name what you would check. You can also say how you would stop the harm and prevent a repeat.