Skip to content
‹ 30-Day Drill

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

DayTopicDayTopic
1Too Many Programs, and the Limits Nobody Watches16One Shared Exit to the Internet Runs Out of Ports
2Busy but Idle, and Killed With Memory to Spare17Three Error Numbers That Tell You Where to Look
3Why New Connections Are Refused18When Adding Servers Automatically Makes Things Worse
4Connected, but Nothing Loads: an Expired Certificate19Memory That Leaks, Memory That Is Busy, and Pauses to Tidy Up
5A Release That Drops Some Users While Every Check Is Green20Why the Slowest One in a Hundred Matters More Than the Average
6Sent to the Wrong Side of the World21Giving Up Quickly on a Slow Service, and Keeping the Damage in One Room
7You Are in Charge: One Part of the World Cannot Log In22Everything Is Suddenly Slow, and the Processor Is Barely Working
8Works From the Command Line, Fails in the Browser23Errors Shoot Up While Speed and Processor Look Normal
9Login Works, but the Live Connection Keeps Dropping24Twice the Visitors, Half the Speed: Running a Top-Priority Incident
10Five Times Slower, With the Processor Half Idle25A Healthy Service That Nobody Can Reach
11Every Request Says "OK", and the Site Is Still Broken26Slow at the Same Minute Every Night
12One Slow Service Drags Down All the Others27Fine for an Hour, Then Down, Every Time
13Everyone Comes Back at Once28Every Graph Is Calm, and People Say It Is Slow
14Fine After a Restart, Stuck Again a Few Hours Later29No Errors, but Half the Page Is Empty
15No Port Numbers Left for Outgoing Calls30Slow in One Part of the World Only
WeekThemeDays
Week 1How one computer runs out of room, and how traffic reaches it1 to 7
Week 2Secure connections, and how one fault spreads to others8 to 14
Week 3Network limits, growing under load, and containing damage15 to 21
Week 4Whole incidents, start to finish22 to 30

How each day is laid out

PartWhat it is for
ScenarioThe question, the same question in plain words, and the words you need to follow it. This is all you see before you answer.
Key InsightThe one idea that unlocks the question.
Explanation and InvestigationThe reasoning, step by step, with the commands you would run.
Commands to KnowEach command with what it shows you.
Model AnswerAn answer you could say aloud in under a minute.
Checkpoint QuestionOn some days: a short follow-up to test yourself.
Sample Candidate AnswerOn 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.

StepWhat you ask
1. LookWho is affected: everyone, one region, one kind of device? What exactly fails? Which graphs are normal?
2. Narrow by placeOne region points to something local. Many regions point to something they all share.
3. Narrow by stepA request passes through several steps on its way. Which is the first one that fails?
4. Prove itCheck your idea against numbers first, then logs, then the traffic itself.
5. Stop the harmUndo the last change, switch the new feature off, or send users elsewhere. Tell people what is happening.
6. Prevent itAfterwards, write up what happened without blaming anyone, and add a check or an alert.

The steps a request passes through

StepWhat to check there
Finding the address (DNS)Does the name lead to the right address, from where the affected users are?
Network pathCan traffic get there? Is a firewall rule in the way?
Load balancerIs it listening? Does it count the servers as healthy?
Secure connection (TLS)Is the certificate valid and for the right name?
The program itselfWhat do its logs say? Was a feature switched on?
What it depends onCan 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.

LevelWhat 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.

ConversationWhat it is about
First callYour background and why you want the job
CodingSmall practical programs, such as reading a log file and counting things
Linux and networksHow a computer and a network behave, and how you would find a fault in them
System designSketching a service that must cope with a stated amount of traffic
IncidentTalking through a fault as if it were happening now
BehaviouralStories 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 one

Passing `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.