Originally published on four-leaf.ai.
Key takeaways
Google's SREs wrote down what they want from a system design, and the same habits carry into Google's system design interview. Draw the boxes, then put numbers on them you can defend. Google's Site Reliability Engineering Workbook says its SREs "are expected to be able to start resource planning with a basic whiteboard diagram of a system," and Google's SRE design interview tests candidates on estimating provisioning needs.
- Ask about scale before you draw anything, and when the interviewer won't give you a number, pick one out loud and say why.
- Work through the four questions Google's SRE Workbook uses, in roughly this order: is it possible, can we do better, is it feasible, is it resilient.
- Do the arithmetic on the board in plain units, because a single estimate (disks, machines, bandwidth) is what turns a box diagram into a design.
- Keep every number traceable to an assumption you stated, so that when the interviewer changes one you can recalculate instead of starting over.
- Learn rough orders of magnitude rather than exact specs, since a confidently wrong figure from memory costs more than an honest round number.
- Practice on prompts nobody has memorized an answer to, because a stock design you can't derive falls apart at the first follow-up.
For SRE candidates this isn't optional. A 2018 SRECon talk abstract by Sebastian Kirsch, published by Google Research, says "All candidates for SRE positions at Google participate in one NALSD interview as part of their recruiting process."
Does every Google candidate get a system design round?
SRE candidates do, according to Google's own engineers, and software engineering candidates often do. Kirsch's abstract, published by Google Research, says every SRE candidate sits one NALSD interview, short for non-abstract large system design. It says candidates show skill in "designing for scalability, reliability and robustness, estimating provisioning needs, and managing change,".
For software engineers the first-party wording is looser. Anton Fedorov, a senior SRE, wrote on the Google Developers corporate blog on Habr in January 2019 that beyond the coding rounds "there is also quite often a system design interview." He describes the SRE version as the software engineering round plus one demand, that you get specific about the hardware.
If you aren't interviewing for SRE, treat these documents as the hard version of your round. They were written about the SRE interview, so they describe a stricter standard than you'll probably face. Practicing to the stricter standard costs you little, because a software engineering interviewer who never asks for disk counts won't mark you down for having them ready. Your recruiter can tell you which rounds your own loop contains, and it's a fair thing to ask before you plan your prep.
What does Google mean by non-abstract design?
It means you can't stop at boxes, because the design has to survive contact with real machines. Chapter 12 of Google's Site Reliability Engineering Workbook, which Google publishes free online, introduces the term and explains that all systems "will eventually have to run on real computers in real datacenters using real networks." A design that never gets as far as a machine count is, in Google's framing, unfinished.
The chapter's worked example is an AdWords dashboard that reports click-through rates. It assumes 500,000 search queries per second and 10,000 ad clicks per second, and it sets a freshness target that the data shown is less than 5 minutes old. From there it builds the design up from one machine to a distributed system, and it checks each version against those numbers.
The chapter's authors write that "examples of sound reasoning and assumption making are more important than any final values." They care more about whether a count follows from the assumptions behind it than about the count, and that's the standard to hold your own answer to.
How should you structure your answer in the round?
Use the workbook's two phases. In the basic design phase you ask "Is it possible?" (could anything satisfy the requirements if resources were free) and then "Can we do better?" (faster, smaller, cheaper). In the scaling phase you ask "Is it feasible?" given real money and hardware, "Is it resilient?" when a component or a whole datacenter fails, and "Can we do better?" again.
Say those questions out loud as you move between them. They give the interviewer a map of where you are, and they stop you from spending most of the round polishing a design that falls over at the feasibility step. The workbook doesn't treat the order as strict. Its authors write that "in practice, we bounce around between the questions and phases," so if a scaling problem occurs to you while you're still sketching, note it and come back to it.
The AdWords chapter also shows the move most candidates skip, which is throwing a design away on purpose. It starts with a single machine, shows why that fails on storage and on single points of failure, and then tries a batch MapReduce design that fails the five-minute freshness target before it reaches a design that works. Each rejected version is part of the answer, because it shows the interviewer you can tell why a reasonable idea doesn't fit.
How do you do the estimation out loud?
Write the assumptions down first, then multiply, and round in the direction that keeps you safe. The SRE Workbook's AdWords example treats each query log entry as 2 KB, rounding up on purpose so it doesn't hit a limit early. At 500,000 queries a second that comes to 86.4 TB of query logs a day, which the authors round up to 100 TB to allow for clicks and indexes.
Then it tests the storage against the hardware. A common hard drive, the chapter assumes, sustains about 200 input/output operations per second, so writing every query at one operation each needs 2,500 disks. Holding 100 TB in memory instead, on machines with 64 GB of RAM, needs 1,563 machines. Neither number's meant to be the answer, but together they show why the design can't stay on one machine.
You don't need exact hardware specs. Fedorov's Habr post says you should know rules of thumb like "HDD is around 100s, SSD around 100s thousands" for operations per second. He admits that in his own NALSD interview he insisted a single hard drive managed 600 operations a second, a figure he'd picked up from a whole RAID array, and the interviewer was slightly surprised.
That's survivable if your math is traceable. Fedorov writes, "During the interview any of your assumptions and guesses could be corrected by the interviewer." Because each number follows from an earlier one, a correction only means recalculating a line or two. He also writes that "If the correction of an assumption requires a full redesign of the system, it’s either a design error, or an incorrect correction, or the new assumption moves us beyond the applicability of the design."
What is the interviewer writing down about you?
Probably a rubric score with notes, though Google hasn't published one for system design. What it has published is a general guide on re:Work, its site about people practices, to how it runs structured interviews across roles. The guide says Google scores answers against standardized rubrics that describe what "outstanding, solid, borderline, and poor" responses look like, and that "Follow-up questions are predetermined" to draw out detail.
That guide's about all of Google's hiring, not this round in particular, so it's context rather than a scoring sheet. Still, one line fits design interviews closely. "Interviewers may not be looking to assess a correct answer, but instead want to judge the analytical thought process used to explore, define, and offer a solution to the problem."
If that holds for your round, the follow-ups may be planned in advance, so a push on failure handling or growth isn't necessarily a sign you slipped. And because notes are written for other people to read later, an answer that states its assumptions in sentences is easier for a reviewer to credit than a diagram with no explanation.
How should you practice before the interview?
Practice on unfamiliar prompts with a timer, and do the arithmetic each time. Fedorov's post is a good model. He designs a public library network for a city, assumes about 1% of possible readers borrow a book each day, and works down to shelf space and delivery trucks. He says the whole thing was written "within around one hour," so it's a fair benchmark for your own pace. His closing exercise makes a good first prompt for you: "design a system of growth and delivery of fresh chicken eggs on subscription."
Physical prompts like that help because nobody's got a memorized answer to them, so you've got to derive every number. Once that feels natural, move to software prompts and read the design papers Google has published. Google Research's page for the 2006 Bigtable paper describes a storage system built for "petabytes of data across thousands of commodity servers," and reading why it made its choices is better practice than reading someone's summary of the final diagram.
Do some of it out loud, since the round is a conversation and the hard part is reasoning while you speak. Four-Leaf's AI mock interviews include a system design stage for software engineering roles, and the feedback checks whether you clarified scope and scale before designing, named a storage layer with a reason, called out trade-offs, and handled the scale you stated. For how to talk about response times specifically, our guide on latency in a system design interview goes further, and our system design interview questions post covers how senior answers get scored. The Google hiring process guide covers the rest of the loop.
Why do memorized designs struggle at Google?
Because the interview is built to test whether you can produce numbers, and a memorized design arrives without the reasoning behind them. Remembered numbers carry the same risk. Fedorov writes that "it’s easy to stick with some number from your memory, without providing a good explanation of it’s reasons," just before telling the story of his own 600-operations mistake. The workbook makes the same point from the other side, calling NALSD "a learned skill" that has to be practiced to stay sharp.
The workbook chapter is from 2018 and Fedorov's post is from January 2019, both written by SREs about the SRE round, and Google's interviewing changes over time. Nothing in them says how far a software engineering interviewer will push on hardware, so you may prepare estimates you never get asked for.
Where this is heading
We expect Google's design rounds to keep rewarding live reasoning over recall, since recall is the part a candidate can now get from a chatbot on a second screen. That favors the habits the SRE documents describe, because an estimate you derive in front of the interviewer is hard to fake. Meanwhile, pick one unfamiliar prompt this week, set a timer for the length of your real round, and say every assumption and every multiplication out loud until the machine count falls out at the end.
About Four-Leaf
Four-Leaf is the all-in-one AI job search assistant covering every stage from application to signed offer: voice mock interviews across 25 roles, resume tailoring, cover letters, salary negotiation, email drafting, AI job search, and LinkedIn optimization. 3-day free trial, no credit card. Pricing: $20/mo or $5 / 5 Day Pass.
- Website: https://four-leaf.ai
- Pricing: https://four-leaf.ai/pricing
- Contact: team@four-leaf.ai
Top comments (0)