Tradeoff
Sign inGet started

GuidesInterview questions

System design interview questions, from basic to advanced

11 min read · Updated 1 December 2026

Search for system design interview questions and you get lists of 100 titles with no order. You open "Design YouTube", get stuck in the first five minutes, and conclude you are not ready.

The problem is not you. It is the order. A video platform question assumes you can already handle the smaller pieces it is built from: storing files, caching reads, running slow work in the background.

This page sorts 31 common questions into three tiers. For each tier it says what the questions test, gives the key idea for each one, and explains how to practise a question so the practice actually sticks.

Key takeaways

  • Most questions reuse the same eight or so building blocks; learn those first.
  • Basic questions test one core idea each, like caching or unique IDs.
  • Intermediate questions add a second hard part: fan-out, ordering, or coordination between servers.
  • Advanced questions test correctness under failure: money, ordering, replication and migration.
  • Practise a question timed and out loud, then write down what you missed.

Why the order of questions matters

Think of how you learn to cook. You don't start with a seven-course dinner. You learn to boil, fry and roast, then combine them.

System design works the same way. Almost every question is built from a small set of parts: a load balancer (which spreads requests across servers), app servers, a cache, a database, a queue (a waiting line of jobs), background workers, and file storage with a CDN (copies of files kept near users).

A basic question uses a few of these parts and has one tricky idea. An advanced question uses most of them and adds hard rules: never lose a payment, never show messages out of order, never go down during a migration.

So work up the tiers. Each one assumes you are comfortable with the one before.

The diagram below shows the building blocks. Step through it to see how a question grows from three boxes into the full set.

Clientweb or appLoad balancerServicesstatelessDatabasesource of truth

Every question starts here

A client sends a request, the load balancer picks a server, and the server reads or writes the database. A pastebin or a URL shortener can work with just this.

Basic questions: one core idea each

Start here even if you have years of experience. These questions are small enough that you can finish a full design in 40 minutes, which is exactly the habit you need to build.

What they test: can you scope a problem, estimate the load, and get one core idea right? That idea is usually one of: unique IDs, caching a read-heavy path, expiry, storing files outside the database, or a data structure that makes one query fast (a sorted set for rankings, a geographic index for "near me").

A strong answer here is clean and complete, not clever. If you can explain why a cache serves 90% of reads and what happens when it fails, you are doing well.

For a full worked example of the first one, see design a URL shortener.

QuestionWhat it testsKey idea
URL shortenerRead-heavy design, unique codesBase-62 codes from ID ranges, cache the hot links
Pastebin with expiryStoring blobs, deleting old dataText in blob storage, metadata in a database, lazy plus background expiry
Unique ID generatorCoordination-free uniquenessTime plus machine ID plus sequence, so servers never ask each other
Key-value cache serviceEviction and memory limitsA hash map plus LRU eviction, sharded by key
Photo upload serviceLarge uploads, async processingUpload straight to blob storage, resize thumbnails on a queue
Product page read pathCaching layers and stalenessCDN and cache in front of the database, clear entries on change
Leaderboard for a mobile gameFast ranking queriesA sorted set in memory, scores updated on every game
Nearby places searchGeographic lookupsSplit the map into cells (geohash or grid) and search nearby cells

Intermediate questions: a second hard part

These are the questions most mid-level interviews use. The basic building blocks are assumed, and each question adds a second hard part on top.

What they test: handling problems that only appear when many servers work together. The common themes are:

  • Fan-out. One post must reach a million followers. Do you copy it to every feed when it is written, or assemble feeds when they are read?
  • Ordering and delivery. Chat messages must arrive in order, even when a phone goes offline.
  • Shared limits. A rate limit of 100 requests a minute must hold across 20 servers, not 100 per server.
  • Contention. Two people try to book the last seat at the same moment.
  • Streams of data. Counting the top trending items from millions of events without storing every event forever.

A strong answer names which of these is the hard part in the first ten minutes and spends the deep dive on it.

The chat application and rate limiter walkthroughs show how that looks in practice.

QuestionWhat it testsKey idea
Distributed rate limiterShared counters across serversToken bucket or sliding window in a shared fast store
Notification systemRetries, fan-out, provider failuresQueue per channel, idempotent sends, retry with backoff
Order processingMulti-step workflowsOrder state machine, steps driven by events, idempotent handlers
Ticket bookingContention on scarce itemsHold a seat with a short expiry, confirm with a conditional write
News feedFan-out on write vs readPush for most users, pull for accounts with huge followings
Chat applicationReal-time delivery and orderPersistent connections, per-conversation sequence numbers
Search for a social network's postsIndexing at scaleAn inverted index fed from a stream of new posts
TypeaheadVery low latency prefix lookupsPrecomputed top suggestions per prefix, held in memory
Web crawlerPoliteness and deduplicationA URL frontier with per-site queues, seen-URL filter
Top-K trendingCounting over streamsWindowed counts, approximate counting, merge per-shard top lists

Advanced questions: correctness under failure

These turn up in senior and staff interviews. Many are about systems that other systems are built on: queues, key-value stores, object storage, schedulers.

What they test: whether your design stays correct when things fail halfway. A server dies after taking money but before recording it. Two regions accept writes for the same account. A migration runs while orders keep coming in.

Expect the interviewer to push on:

  • Replication and consistency. How many copies, who accepts writes, what a reader sees after a failure. The CAP theorem guide covers the basics.
  • Exactly-once effects. Real networks deliver messages at least once. You make the effect happen once with idempotency keys and deduplication.
  • Partitioning. How data is split across machines and moved when machines join or leave. See consistent hashing.
  • Operations. Rollouts, backfills, monitoring and what you alert on.

A strong answer here is careful more than broad. Pick fewer boxes and be precise about what each one guarantees.

QuestionWhat it testsKey idea
Metrics and alerting platformHigh write volume, time seriesBatch ingest, downsample old data, evaluate rules on windows
File sync and sharingSync and conflictsSplit files into chunks, sync only changed chunks, version metadata
Video upload and streamingHeavy processing and deliveryTranscode into several bitrates on workers, stream segments via CDN
Ride matchingMoving locations, fast matchingIn-memory geo index updated every few seconds, match by cell
Distributed job schedulerTimed work without duplicatesDurable schedule store, leases so one worker owns each run
Payment system with ledgerMoney must never be lost or doubledDouble-entry ledger, idempotency keys, reconcile with providers
Ad click aggregationAccurate counts from huge streamsStream processing with windows, dedupe clicks, reconcile in batch
Distributed key-value storeReplication and partitioningConsistent hashing, replicas with quorum reads and writes
Collaborative document editorConcurrent editsOperational transformation or CRDTs, one session server per document
Distributed message queueDurability and orderingPartitioned append-only log, replicas, consumer offsets
Global payments, active-activeMulti-region writesHome region per account, idempotent cross-region flows
Zero-downtime service migrationChanging a live system safelyDual writes or change capture, backfill, verify, cut over gradually
Object storage serviceDurable storage of huge dataMetadata service plus data nodes, replication or erasure coding

How to practise one question

Reading a model answer feels like learning. It mostly isn't. You recognise the design, but in the interview you have to produce it from nothing, against a clock, while talking. So practise the way you will be tested.

  1. 1.Set a 40-minute timer. Read the prompt once, then close it.
  2. 2.Talk out loud the whole time, even alone. Recording yourself helps; it is uncomfortable for a reason.
  3. 3.Follow the steps: scope, estimate, API, data model, high-level design, deep dive, failures, trade-offs. The interview guide covers each one.
  4. 4.Draw on paper or a whiteboard tool, not in your head.
  5. 5.Stop when the timer ends, even if you are not done. Running out of time is useful information.
  6. 6.Only now compare with a model answer. Write down three things: one requirement you missed, one number you got wrong or skipped, one trade-off you never said.
  7. 7.Redo the same question a week later. The second attempt is where it sticks.

Two or three questions a week, done this way, beats ten questions skimmed.

If you are short on time, do one question from each tier first. It shows you which tier you are really at.

Which questions to pick for your level

You don't need all 31. Pick by the role you are interviewing for.

  • Junior or new grad: most of the basic tier, plus two intermediate questions (a rate limiter and a notification system are good choices). Aim for clean, complete designs.
  • Mid-level: two or three basic questions to warm up, then most of the intermediate tier. Your deep dives should be confident.
  • Senior and above: a quick pass on basics, the full intermediate tier, and at least four advanced questions. Practise bringing up failures and operations before you are asked.

Whatever your level, keep your estimates sharp. Every tier starts with numbers, and the back-of-the-envelope estimation guide covers the handful you need.

Questions people ask

What are the most common system design interview questions?

URL shortener, rate limiter, news feed, chat application, notification system and a key-value store come up very often. They are popular because each one tests a clear core idea in a problem everyone already understands.

Which system design question should I practise first?

A URL shortener. It is small enough to finish in 40 minutes and still covers scoping, estimation, unique IDs, caching and failures. Once that feels comfortable, move to a pastebin or a leaderboard.

How many system design questions should I practise before an interview?

Around 10 to 15, done properly with a timer and a review, is enough for most people. Doing fewer questions well beats skimming many, because the skill is producing a design, not recognising one.

Are system design questions different for senior engineers?

The questions often overlap, but the bar is different. Seniors are expected to find the hard part quickly, go deep on it, and discuss failures, consistency and operating the system without being prompted.