The questions to ask first, how to set the scope, and how to turn a vague prompt into a short list you can design for.
Requirements gathering is the first five minutes of a design: you ask questions until the vague prompt turns into a short, agreed list of what to build, how big it is and what is left out.
Real projects start with unclear wishes, not a full specification. A good engineer does not draw boxes straight away. They first find out what problem is being solved, for whom, and how big it will get. A design for 1,000 users and a design for 100 million users look nothing alike, so the numbers decide the design.
The earlier page on Functional vs Non-Functional Requirements explains what the two kinds of requirement are. This page is about the conversation: which questions to ask, in what order, how many, and how to turn the answers into a sheet you can design from.
The interviewer is not hiding the answer. They want to see how you handle missing information, because that is what real work looks like. People who start drawing at once often solve the wrong problem. People who ask 30 questions never get to the design. The skill is to ask a few sharp questions, then commit.
| What you say | What it shows | |
|---|---|---|
| Weak | “OK. I will use a load balancer, a database and a cache...” | You started drawing before you know the problem. |
| Weak | “What about the programming language? Which cloud? Which colour?” | Low-value questions that do not change the design. |
| Good | “Core features: create a short link, and redirect. Is analytics in scope?” | You pin down the scope in one sentence. |
| Good | “How many new links and redirects a day? Is it read-heavy?” | You ask for the numbers that drive the design. |
| Good | “I will assume redirects must be very fast and highly available. Creation can lag a little. Does that sound right?” | You state an assumption and invite a correction. |
| Area | Typical question | What the answer changes |
|---|---|---|
| Features | What are the 2 or 3 core actions? What is out of scope? | The API and the data model |
| Scale | How many users, how many requests, what read:write ratio? | Caching, replicas, sharding |
| Speed | How fast must the main action feel? | Cache, CDN, precomputing |
| Availability | How bad is an outage? What may degrade? | Replication, failover, regions |
| Consistency | Must everyone see the same data at once? | Strong or eventual consistency, the database type |
| Data | How big is each record? How long is it kept? | Storage type, tiers, retention |
| Security | Who can see what? Any legal rules? | Authentication, encryption, audit |
| If the requirement says... | Then you probably... |
|---|---|
| Read-heavy (100 reads per write) | Add a cache and read replicas |
| Write-heavy, large volume | Partition the data, and buffer writes with a queue |
| Must never show stale data (money) | Pick strong consistency, accept more latency |
| Always available, stale is fine | Pick eventual consistency, replicate widely |
| Users around the world | Use a CDN and several regions |
| Data kept forever | Plan storage tiers and archiving |
| Strict privacy rules | Plan encryption, access control and data residency early |
The answers are fixed so the page stays the same every time. A real interviewer may answer differently, or say “you decide, and tell me your assumption”. Both are fine.
| Term | Meaning in easy words |
|---|---|
| Requirement | Something the system must do or must be |
| Functional requirement | A feature: what the system does |
| Non-functional requirement | A quality: how fast, safe, big or available it must be |
| Scope | The list of things that are in the project |
| Out of scope | Things you decide not to build now, and say so |
| MVP | Minimum viable product: the smallest version that is useful |
| Assumption | A guess you state out loud, so it can be corrected |
| Clarifying question | A question that changes the design if the answer changes |
| Read:write ratio | How many reads happen for each write |
| DAU | Daily active users: people who use it in a day |
| Goal and non-goal | What you aim for, and what you are choosing not to do |
| Choice | We gain | We lose |
|---|---|---|
| Ask many questions | Fewer wrong guesses | Less time to design |
| Ask few questions | More time to design | More assumptions to defend |
| Wide scope | A fuller product | A shallow design |
| Narrow scope (MVP) | A deep, clear design | Some features left for later |
| State assumptions | Speed, and a chance to be corrected | A wrong one can cost you if it is not caught |