Last Minute Notes

Interview Playbook

System design interview strategy: level-by-level rubric, 45-minute timelines for HLD and LLD, communication phrases, common mistakes, a 60-question bank from beginner to advanced with pointers, a design prompt index, and 4-week and 7-day study plans.

📘 System Design Interview Playbook

The other pages teach the material. This page is about performing under interview conditions: what is graded at each level, how to spend 45 minutes, what to say, which questions to practice, and how to schedule your preparation.

Table of Contents

  1. What Is Graded at Each Level
  2. The 45-Minute HLD Timeline
  3. The LLD and Machine Coding Timeline
  4. What to Say
  5. Common Mistakes
  6. Question Bank
  7. Design Prompt Index
  8. Study Plans
  9. Final Checklist

1. What Is Graded at Each Level

The same prompt is used across levels, and the bar rises.

LevelExpected behavior
JuniorUnderstand the problem, propose a workable design with basic components (LB, app tier, DB, cache), explain choices when asked, accept guidance
Mid (SDE 2)Drive the conversation, gather requirements, estimate scale, choose data stores with reasons, identify bottlenecks and fix them, discuss basic failure cases
SeniorOwn the whole design. Present alternatives and pick one with trade-offs. Deep dive two components at implementation level. Cover failure modes, consistency, observability, deployment, cost.
Staff and aboveHandle ambiguity and organizational constraints, define the problem before solving it, phase the roadmap (build now, evolve later), migration and rollout, cross-team impact, build vs buy, long-term operability, risk

Signals that raise your rating at any level:

  • You ask sharp clarifying questions and the answers change your design.
  • Numbers drive decisions (you say "so we need sharding" because of an estimate).
  • You name what you give up with each choice.
  • You spot failure modes before the interviewer does.
  • You can go deeper on any box on request.

2. The 45-Minute HLD Timeline

PhaseDoAvoid
Requirements3 to 5 functional, 3 to 5 non-functional with numbers, list what you excludeStarting to draw immediately
EstimatesQPS, storage, bandwidth, peak factor, one design decision from themTen minutes of arithmetic
API and dataEndpoints, main entities, keys, indexes, read and write pathsVague "a database" boxes
High levelOne diagram, trace one write and one read end to endTwenty components with no flow
Deep diveThe interviewer's choice, or your riskiest component: alternatives, algorithms, failure behaviorSkimming everything equally
Failures and scaleSPOFs, hot spots, what if 10x traffic, what if a region fails, monitoringEnding without discussing failure
Wrap upRecap, what you would build next, what you would monitorTrailing off

Use the seven-step framework as the backbone.


3. The LLD and Machine Coding Timeline

For a 60 to 90 minute coding round, see the detailed plan in LLD Fundamentals.

Minutes (of 60)Activity
0 to 8Clarify, write scope, list entities and use cases
8 to 15Class diagram, entry-point API, extension points
15 to 45Code the core flow end to end, then the rest
45 to 55Demo main, edge cases, fix bugs
55 to 60Discuss extensions and concurrency

Priorities: working and clean beats clever and unfinished. Say aloud where you would add a pattern, even if you do not have time to code it.


4. What to Say

4.1 Useful Phrases

SituationSay
Starting"Before I design, I want to confirm scope and scale."
Making an assumption"I will assume 100M DAU and a 100 to 1 read to write ratio, tell me if that is off."
Choosing a technology"I need X property, so I will use Y. The trade-off is Z."
Comparing options"There are two approaches, A and B. I would pick A because..., B wins if..."
Handling a bottleneck"The database write rate is the first thing to break, so..."
Admitting uncertainty"I have not run this at that scale. My reasoning is..., and I would validate it with a load test."
Interviewer pushes back"Good point, that changes X. If we need Y, I would switch to..."
Running low on time"I will go deep on the write path and sketch the rest."

4.2 Trade-off Vocabulary

Make trade-offs explicit with these pairs:

PairTypical sentence
Consistency and availability"For the feed I choose availability, a slightly stale view is fine. For payments I choose consistency."
Latency and cost"A cache tier costs money, and it takes p99 from 80 ms to 10 ms."
Read cost and write cost"Precomputing the feed makes writes heavy and reads cheap."
Simplicity and scalability"One Postgres primary is enough until roughly this size, so I start there."
Sync and async"Emailing does not need to block the request, so it goes through a queue."
Build and buy"Auth is commodity, I would use a managed identity provider."
Accuracy and speed"Approximate counts with HyperLogLog are fine for analytics."

4.3 Structure Every Deep Dive

  1. State the problem the component solves.
  2. Give two or three options.
  3. Pick one with reasons tied to requirements.
  4. Say how it fails and what you do about it.
  5. Say how you would observe it.

5. Common Mistakes

MistakeWhy it hurtsFix
No clarificationYou solve the wrong problemSpend 5 minutes on scope and numbers
Buzzword architecture (Kafka, Redis, Kubernetes everywhere)No reasons, no fitJustify each component by a requirement
Over-engineeringMulti-region microservices for 1,000 usersRight-size and state the growth path
Ignoring numbersNo basis for decisionsTwo or three key estimates
Silent thinkingInterviewer cannot help or gradeThink aloud, structure as you go
One happy pathNo failure handlingWalk each component: slow, down, wrong
Single point of failure left inImmediate red flagName and remove SPOFs
Hand-waving the data modelData is the designTables or documents, keys, indexes, access patterns
Not listening to hintsInterviewer is steering youTreat hints as instructions
Defensive on feedbackSignals poor collaborationAdjust the design and explain the effect
Skipping security and observability at senior levelMissing half the jobAdd auth, rate limits, metrics, alerts, rollout
LLD: coding before modelingTangled classesEntities and interfaces first
LLD: patterns for showExtra indirectionOnly at stated variation points

6. Question Bank

Sixty questions grouped by level. The "Strong answer includes" column is a checklist, not a script.

6.1 Beginner (15)

#QuestionStrong answer includesRead
1Vertical or horizontal scaling?Vertical first for simplicity, horizontal for redundancy and limits, stateless tierFundamentals
2What is a load balancer, and which algorithms exist?L4 vs L7, round robin, least connections, consistent hash, health checksBuilding Blocks
3Cache-aside vs write-through?Read and write paths, staleness, write cost, delete on writeBuilding Blocks
4SQL or NoSQL?Access patterns, transactions, scale, schema flexibility, start with SQLBuilding Blocks
5What is an index and what does it cost?B-tree, faster reads, slower writes, space, leftmost prefixBuilding Blocks
6What does a CDN do?Edge caching, latency, offload, cache keys, invalidation by versioned URLsBuilding Blocks
7Replication vs sharding?Copies for availability and reads, partitions for write and size scaleBuilding Blocks
8Explain CAP.Partition forces C or A, PACELC else latency vs consistency, examplesFundamentals
9Latency vs throughput?Definitions, batching trade-off, percentilesFundamentals
10What is idempotency and why does it matter?Safe retries, idempotency keys, PUT vs POSTBuilding Blocks
11REST, GraphQL or gRPC?Public vs client-driven vs internal, trade-offsBuilding Blocks
12Why use a message queue?Decoupling, spikes, retries, async work, at-least-onceBuilding Blocks
13Stateless vs stateful services?Any instance serves any request, sessions in shared store, state moves to data tierFundamentals
14What does DNS TTL control?Caching duration, failover speed vs loadBuilding Blocks
15Estimate QPS for 10M DAU with 20 requests each.200M per day, about 2,300 per second average, peak 3xFundamentals

6.2 Intermediate (15)

#QuestionStrong answer includesRead
16How do you invalidate and evict a cache?TTL, delete on write, LRU or LFU, CDC-driven invalidationBuilding Blocks
17How do you handle a hot key?Local cache, replicate, key splitting, shard-aware limitsBuilding Blocks
18Why consistent hashing?Minimal remapping on resize, virtual nodes, examplesBuilding Blocks
19Fan-out on write vs read for a feed?Write amplification, celebrities, hybridLarge-Scale Designs
20Can you get exactly-once delivery?At-least-once plus idempotent consumers, Kafka transactionsBuilding Blocks
21How do you pick a shard key?Cardinality, even load, query alignment, hot spotsBuilding Blocks
22How do you provide read-your-writes with replicas?Route to primary after write, log position, sticky replicaFundamentals
23WebSocket, SSE or polling?Direction, cost, reconnect, fit by use caseBuilding Blocks
24Compare rate limiting algorithms.Token bucket, fixed window edge burst, sliding window, Redis atomicityClassic Designs
25How do Kafka partitions, groups and ordering work?Ordering per partition, parallelism bounded by partitions, offsetsBuilding Blocks
26Offset or cursor pagination?Depth cost, shifting data, keyset, stabilityBuilding Blocks
27What is a cache stampede and how do you stop it?Single-flight, jittered TTL, stale-while-revalidate, locksBuilding Blocks
28Design an idempotent payment API.Idempotency key stored atomically, state machine, unknown outcome, reconciliationLarge-Scale Designs
29Keep a search index in sync with the DB.CDC or outbox, idempotent updates, rebuild pathBuilding Blocks
30Blue-green or canary?Cost, rollback speed, metric-gated rollout, DB compatibilityReliability and Operations

6.3 Advanced (15)

#QuestionStrong answer includesRead
31Explain Raft leader election and commit.Terms, majority votes, log replication, up-to-date log ruleDistributed Systems
322PC or saga?Blocking coordinator, compensations, isolation loss, idempotencyDistributed Systems
33What is split brain and how do you prevent it?Epochs, majority, fencing tokens, STONITHDistributed Systems
34Isolation levels and write skew?Anomaly table, snapshot isolation, serializable, fixesDistributed Systems
35Does W + R > N guarantee linearizability?No: sloppy quorums, concurrent writes, clocks, read repairDistributed Systems
36How do you order events across machines?Not wall clocks, Lamport and vector clocks, HLC, per-partition sequenceDistributed Systems
37Design multi-region active-active data.Home region, multi-leader conflicts, CRDTs, global consensus cost, RPO and RTODistributed Systems
38Design for 99.99% availability.Error budget math, redundancy, no shared fate, deploy safety, tested failoverReliability and Operations
39Why do retries cause outages?Amplification, metastable state, budgets, backoff with jitter, sheddingDistributed Systems
40What is a cell-based architecture?Independent cells, router, blast radius, shuffle shardingDistributed Systems
41Explain the transactional outbox.Same-transaction event row, relay, at-least-once, inbox dedupeDistributed Systems
42When would you use CRDTs?Convergent merge, offline, collaboration, counters and sets, limitsDistributed Systems
43Exactly-once in stream processing?Checkpoints, idempotent sinks, event time, watermarks, dedupeLarge-Scale Designs
44Zero-downtime schema migration?Expand, dual write, backfill, switch, contractReliability and Operations
45What did the October 2025 AWS outage teach?DNS race condition, hidden dependency, recovery collapse, guardrailsReliability and Operations

6.4 AI and Frontend (8)

#QuestionStrong answer includesRead
46How do LLM serving engines get throughput?Continuous batching, PagedAttention, prefix caching, chunked prefill, quantizationAI System Design
47A RAG bot gives wrong answers. Debug it.Eval set, retrieval first, chunking, hybrid, rerank, groundingAI System Design
48Enforce document permissions in RAG.ACL metadata, filter inside retrieval, propagate deletesAI System Design
49Defend an agent against prompt injection.Untrusted content, least privilege, confirmations, isolation, monitoringAI System Design
50Halve an LLM bill.Measure tokens, trim prompts, prefix cache, route to smaller models, batchAI System Design
51SSR, CSR, SSG or ISR?Chooser flow, SEO, personalization, hydration costFrontend System Design
52Improve LCP and INP.Image priority and CDN, split bundles, break long tasks, transitionsFrontend System Design
53Design a real-time dashboard UI.Batching, bounded buffers, downsampling, worker, backpressureFrontend System Design

6.5 LLD (7)

#QuestionStrong answer includesRead
54Make a parking lot extensible for new pricing and allocation.Strategy interfaces at the variation points, injected clockMachine Coding 1
55Strategy or State?Who chooses, lifecycle, transitions, examplesDesign Patterns
56Make an LRU cache thread safe.Lock, striping, atomic compute, library alternativesMachine Coding 1
57Prevent double booking under concurrency.Atomic check and act, lock per show, hold with expiry, DB CASMachine Coding 2
58Refactor a class full of type switches.Polymorphism, Open/Closed, injected policiesLLD Fundamentals
59How do you avoid deadlock?Lock ordering, tryLock timeout, fewer locks, confinementConcurrency in LLD
60Design elevator scheduling.SCAN with sorted stops, cost-based dispatch strategy, state machineMachine Coding 1

7. Design Prompt Index

Practice by saying the design out loud with a timer.

7.1 HLD Prompts

PromptLevelWhere
URL shortenerBeginnerClassic Designs
Rate limiterBeginnerClassic Designs
Unique ID generatorBeginnerClassic Designs
Distributed key-value storeMidClassic Designs
Notification systemMidClassic Designs
Web crawlerMidClassic Designs
TypeaheadMidClassic Designs
Distributed cacheMidClassic Designs
News feedMid to seniorLarge-Scale Designs
Chat systemMid to seniorLarge-Scale Designs
Video streamingMid to seniorLarge-Scale Designs
Ride hailingSeniorLarge-Scale Designs
File sync (Dropbox)SeniorLarge-Scale Designs
Ticket bookingSeniorLarge-Scale Designs
Payment systemSeniorLarge-Scale Designs
Ad click aggregationSeniorLarge-Scale Designs
Job schedulerSeniorLarge-Scale Designs
LeaderboardMidLarge-Scale Designs
Collaborative editingSeniorLarge-Scale Designs
Monitoring systemSeniorLarge-Scale Designs
ChatGPT-style assistant, RAG, agentsMid to seniorAI System Design
News feed UI, typeahead component, chat UIMid to seniorFrontend System Design

7.2 LLD Prompts

PromptWhere
Parking lot, LRU cache, elevator, vending machine, tic-tac-toe, loggerMachine Coding 1
Movie ticket booking, Splitwise, pub/sub, rate limiter, ATM, file systemMachine Coding 2
Extra practice with the same patternsLibrary management (Strategy fines, Observer reservations), chess (Strategy per piece, Command undo), snake and ladder (Strategy dice), ride booking (State, Strategy), food delivery (Observer, State), Twitter-lite (Observer, Facade), hotel booking (like movie booking with date ranges)

8. Study Plans

8.1 Four Weeks

WeekLearnPractice (out loud, timed)
1: FoundationsFundamentals, Building Blocks, LLD Fundamentals, Design PatternsEstimation drills (5 a day), URL shortener, rate limiter, LRU cache, parking lot
2: Classic designsClassic Designs, Machine Coding 1Key-value store, notification system, typeahead, code elevator and vending machine
3: DepthDistributed Systems, Large-Scale Designs, Machine Coding 2, Concurrency in LLDNews feed, chat, payments, ticket booking, movie booking with concurrency, Splitwise
4: Modern and mocksAI System Design, Frontend System Design, Reliability and OperationsTwo full mock interviews per week (HLD and LLD), question bank review, record and critique yourself

Daily rhythm: 45 minutes reading, 45 minutes practicing a design out loud or coding an LLD problem, 15 minutes reviewing gaps.

8.2 Seven-Day Crash Plan

DayFocus
1Fundamentals sections 2, 4, 8 and the Building Blocks tables. Estimate drills.
2URL shortener, rate limiter, ID generator, key-value store. Say each in 30 minutes.
3News feed, chat, notification system. Focus on fan-out, ordering, delivery.
4Payments, ticket booking, distributed transactions and idempotency from Distributed Systems.
5LLD Fundamentals, then code parking lot and LRU. Review the pattern chooser.
6One more LLD (movie booking or Splitwise) plus Concurrency in LLD answers. Skim the AI and reliability pages.
7Mock: one HLD and one LLD with a friend. Review the question bank rows you missed. Sleep.

9. Final Checklist

Before the interview:

  • I can do QPS, storage and bandwidth math in two minutes.
  • I can draw the request path and name each component's failure mode.
  • I know when to choose SQL, key-value, wide-column, search, and object storage, with reasons.
  • I can explain replication, sharding, consistent hashing, quorums, and CAP without notes.
  • I can design idempotent writes and explain at-least-once plus dedupe.
  • I have a standard opening (requirements, numbers, API, data, diagram) and closing (failures, scale, monitoring).
  • For LLD I follow model, interface, code, demo, extend, and I inject time and dependencies.
  • I can say what I would monitor and how I would roll it out.

Senior summary in one line: clarify, size it, design the simplest thing that meets the numbers, then find where it breaks and say what you would do about it.

On this page