Skip to content

Chapter 6: Defend Your System

System design interviews test judgment under questioning. Most candidates prepare for them by rehearsing designs they have never built, which means that the first hard follow-up (“what breaks first at ten times the load?”) pushes them from recall into improvisation. This chapter takes a different route. If you have built and operated a system end to end, the trade-offs in it are ones you made, measured, and lived with through drills and migrations, and defending that system turns the interview from rehearsal into recall.

Concepts from other sections (6)

This section uses these ideas. Each has a short definition and a link to the section that explains it in full. Tap a dotted term in the text to preview it.

  • Architecture decision record (ADR): a short, numbered, append-only file recording one hard-to-reverse decision with its context, consequences, and rejected alternatives. Read more: 12.1 Architecture decision records in Software Engineering
  • Review note: a “no” or “partly” on a rubric line, recorded with an owner and a next step rather than hidden. Read more: 6.1 Defend your system
  • Design document: a description of a system or change, before or while it is built, holding many decisions and the arithmetic that ties them together. Read more: 1.1 Design review: the tracer and the serving platform in Systems Engineering
  • Design review: a reader who did not write the document checking it against a rubric and returning comments and a decision. Read more: 1.1 Design review: the tracer and the serving platform in Systems Engineering
  • Exactly-once: the guarantee that each record affects state exactly once. Read more: Chapter 3: Batch and Streaming Processing in Data Engineering
  • Design-review rubric: the eight questions, from problem statement to open questions, that a design must answer in order. Read more: 6.1 Defend your system

The strongest interview answer is about a system you built: you know where it breaks, why each choice was made, and what you would change. The second principle is that you answer with evidence, such as a load report, a benchmark, a drill postmortem, or an architecture decision record (ADR) with the rejected options written down. The third is that every choice has a cost, so a good answer names the alternative you rejected and what it would have bought you.

The chapter has a single section. It defines what a defense is, fixes a rubric that every defense answers, and then walks through a model defense of the reference system line by line, with the evidence each answer cites and why that evidence is the right kind.

Learning objectives

  • Answer a design question by tying each claim to a contract file, a config value, or a measured number.
  • Structure a defense in rubric order, from problem and constraints through rollout and open questions.
  • Recognise when an answer is only partly supported and turn the gap into a review note with an owner and a next step.
  • Explain the trade-offs behind the system’s major boundaries well enough to survive follow-up questions.

This chapter assumes you have a system to defend: either the whole reference system built through the other books, or a system of your own that you designed and operate. The defense draws on your own design documents, especially your Architecture decision records and C4 diagrams in D2 from Software Engineering, your Threat modeling with STRIDE from Software Engineering, and the three design reviews in Systems Engineering, starting with Design review: the tracer and the serving platform. For question styles at particular companies, see the company chapters in this book and the shared concepts chapter.

A good way to use the chapter is to answer the question bank below out loud against your own design, then write each answer down alongside the artifact that backs it. The questions fall into three groups. On architecture: why a C ABI and HTTP between the languages, why the gateway owns keys and limits, and why a durable engine instead of cron. On scale and failure: what breaks first at 10x load, what happens when a decode pod dies mid-stream, and how resume stays exactly-once. On models and data: why this tokenizer and vocabulary size, and how you know the eval numbers are not contaminated.

  • Martin Kleppmann, Designing Data-Intensive Applications, for the vocabulary of replication, consistency, and failure that most defenses lean on.
  • Design review: the whole system in Systems Engineering, the review this defense is checked against.