The problem: System design questions are open on purpose. The interviewer wants to see how you turn a vague prompt into a working architecture, how you make trade-offs out loud, and whether you can steer a 45-minute conversation without getting lost in one detail. Candidates rarely fail because they don't know enough. They fail because they jump straight to databases and caches before agreeing on what the system must do.
- What you'll learn
- This guide gives you a repeatable four-stage structure: requirements, high-level design, deep dive, and scaling. It works for a URL shortener, a chat app, or a system you built at work.
What the interviewer looks for
What they score while you answer.
- Whether you clarify scope and requirements before drawing boxes
- Your ability to produce a coherent high-level design that actually meets those requirements
- Depth on at least one component: data model, APIs, consistency, failure handling
- How you reason about trade-offs instead of naming technologies
- Whether you can identify bottlenecks and scale the design deliberately
- How well you manage time and keep the interviewer oriented
What this question is like
Format, length and what they expect to hear.
- Typical length
- 45 to 60 minutes, usually one open-ended prompt
- Medium
- Whiteboard, shared diagramming tool, or a plain doc on video calls
- Interviewer role
- Acts as a collaborator and product owner; answers clarifying questions and pushes on weak spots
- Who gets it
- Mostly mid-level and senior engineering roles; juniors may get a lighter version
- Variant
- Experience-based: walk through a real system you designed, then defend its decisions
How to prepare, step by step
Do it in this order and you'll arrive with the answer ready.
Step 1: Clarify functional requirements
Ask what the system must do and agree on a short list of core features. For a URL shortener: create a short link, redirect to the long URL, maybe custom aliases and expiry. Say explicitly what you are leaving out, such as analytics dashboards, so the interviewer can redirect you.
Step 2: Pin down non-functional requirements and rough numbers
Ask about scale, latency, availability and consistency. Do quick estimates: requests per second, read-to-write ratio, storage over five years. Keep the math rounded and spoken aloud. These numbers justify every later choice, so write them where you can point to them.
Step 3: Define the API and data model
Write two or three endpoints with inputs and outputs, then the main entities and their key fields. This forces precision before architecture and gives the interviewer something concrete to probe.
Step 4: Sketch the high-level design
Draw the simplest design that meets the requirements: clients, load balancer, application servers, database, and any cache or queue you can justify. Walk one request through it end to end. Resist optimising yet.
Step 5: Deep dive on the hardest component
Pick the part with real difficulty, or ask the interviewer which one they care about. For a URL shortener that is usually short-code generation: hashing versus a counter with base62 encoding, collisions, and coordination across servers. Compare at least two options and choose one with a reason.
Step 6: Scale and harden
Return to your numbers and find the bottleneck. Add caching for hot reads, replicas or sharding for the database, a CDN or edge layer, and rate limiting. Cover failure modes: what happens if a node, the cache, or a region goes down.
Step 7: Summarise and name what you would do next
In the last few minutes, recap the design in three sentences, state the main trade-offs you accepted, and list what you would add with more time, such as monitoring, abuse detection or analytics.
How to structure your answer
The parts of a good answer and how long each one takes. Total: about 38 min.
- Requirements and scope5 min
- Ask clarifying questions, list core features, state what is out of scope, and agree on non-functional goals like latency and availability.
- Estimates3 min
- Rough traffic, read-write ratio and storage numbers, rounded and said aloud, written down for later reference.
- API and data model4 min
- Two or three endpoints and the main tables or documents with key fields and indexes.
- High-level design8 min
- Simplest architecture that meets requirements, with one request traced through every component.
- Deep dive10 min
- The hardest component in detail, with at least two options compared and a clear choice.
- Scaling and wrap-up8 min
- Bottlenecks, caching, partitioning, failure handling, then a short recap of trade-offs and next steps.
An example of a strong answer
This is what an answer that ticks every box sounds like.
You
Requirements and scopeBefore I draw anything, I want to confirm scope. I'm assuming users create a short link and anyone can follow it to the original URL, with optional custom aliases and expiry. I'll leave analytics out unless you want it.
EstimatesFor scale, let's say 100 million new links a month and a 100 to 1 read-to-write ratio. That's about 40 writes a second and 4,000 redirects a second on average, so maybe 20,000 at peak. Storing five years of links at roughly 500 bytes each is around 3 terabytes, which is manageable. Redirects need to be fast, under 50 milliseconds, and availability matters more than strict consistency.
API and data modelThe API is a POST that takes a long URL and returns a short code, and a GET on the code that returns a 301 or 302 redirect. The core table maps code to long URL, owner and expiry, keyed on the code.
High-level designAt a high level: load balancer, stateless app servers, a key-value store for the mappings, and a cache in front for hot links.
Deep diveThe interesting part is generating codes. Hashing the URL risks collisions and needs a check on every write. I'd rather use a counter encoded in base62, where seven characters give us over three trillion codes. To avoid a single counter bottleneck, each app server leases a block of a thousand IDs at a time.
Scaling and wrap-upTo scale, most traffic is reads, so a cache with a high hit rate on popular links takes most of the load, and the store is partitioned by code. When I built something similar for internal links at my last job, adding the cache layer cut database reads by about 80 percent and kept p99 redirect latency under 30 milliseconds. If I had more time, I'd add abuse detection for malicious URLs and a separate pipeline for click analytics.
The skills it puts to the test
What you need to be able to do in this interview. Each skill has its own guide and a short drill.
System design structure
- Clarifying requirements and stating scope before designing
This guidePractiseStating assumptions
- Back-of-the-envelope estimates for traffic and storage
Structuring a problem
- Breaking a vague prompt into components
Trade-offs
- Comparing options such as hashing versus counters, SQL versus key-value
Technical depth
- Going deep on data models, consistency and failure handling
Describing your actions
- Walking through a real system you built, decision by decision
Conclusion first
- Leading with the overall design before details
Then they'll follow up with
Prepare a sentence for each: this is where mastery shows.
- «What happens if your cache cluster goes down during peak traffic?»
- «How would you support custom aliases without collisions?»
- «Why a 301 instead of a 302 redirect, and what does that change for analytics?»
- «How would you shard the database, and what happens when you need to reshard?»
- «In the system you designed at work, what would you change if you built it again?»
- «How would you detect and block malicious or spam links?»
Mistakes that cost you points
What most people do and how to do it better.
Avoid
Jumping into databases and caches in the first minute
Better
Spend the first five minutes on requirements and numbers. Say: before I design, let me confirm what this needs to do and at what scale.
Avoid
Naming technologies instead of explaining reasons
Better
Describe the property you need first, such as fast key lookups with high read volume, then name a tool that fits and say why.
Avoid
Spending half the interview on one component
Better
Get a complete simple design on the board before going deep. Check the time at each stage and move on deliberately.
Avoid
Presenting a design with no trade-offs
Better
For each major choice, say what you gave up. For example: a counter avoids collisions but makes codes guessable, which I accept here.
Avoid
Ignoring failure modes
Better
For each component, ask yourself what happens if it fails, and say it aloud during the scaling stage.
Avoid
Describing a past system as a list of features
Better
Focus on the decisions you made, the alternatives you rejected, and a measurable outcome like latency, cost or uptime.
Review before the interview
Tick what you already have. What's left is today's task.
Common questions
Short answers to the usual doubts.
How much detail do I need on estimates?
Enough to justify decisions. Round aggressively and aim for the right order of magnitude. The interviewer cares that you know whether you need one database or fifty, not the exact number.
Should I mention specific technologies?
Yes, but after explaining what you need. Naming a tool you can defend shows experience. Naming one you can't explain invites follow-ups you will struggle with.
What if I don't know how a component works internally?
Say so, then reason from first principles about what it must do and how you would approach it. Honest reasoning scores better than confident guessing.
How do I answer walk me through a system you designed?
Use the same structure: the problem and constraints, the high-level design, the hardest decision and why, how it scaled, and a measurable result. Be clear about what you personally owned.
What if I run out of time before scaling?
Pace yourself so this rarely happens. If it does, give a one-minute summary of the bottlenecks and how you would address them rather than leaving the stage out entirely.
Now, practise it
A short round with these questions and instant feedback. Pick a question: the interviewer reads it, you answer out loud and see what to improve.