Explained step by step
A system design interview evaluates your ability to build technical solutions for abstract problems, so there's no 1 single right answer. What's special is that it's a 2-way conversation between you and the interviewer. Also, what's expected changes by level: someone with 10 years of experience is asked for more than someone just starting. It's like cooking with a chef watching: there's no 1 exact recipe, what matters is how you think and what you ask.
Design questions are vague on purpose, so the first thing is to ask the exact scope and clarify the requirements. Functional requirements are what the user asks for as basic features: what the system must do. For example, for a URL shortener: «given a URL, generate 1 short version» and «redirect to the original link». Useful questions: «which features do we need to design?» and «which edge cases should we consider?». It's like ordering a cake: first you clarify the flavor, for how many people and for when.
Non-functional requirements are the quality constraints the system must meet: they don't say what it does, but how well. For example portability, maintainability, reliability, scalability and security. Concrete examples: «each request is processed with minimum latency» or «the system must be highly available», like 99.9%. How much each one weighs changes from project to project. It's like asking for the cake to also be gluten-free and arrive within 1 hour: it doesn't change what it is, it changes how.
Extended requirements are the «nice to haves»: things that may be out of the system's scope. For example, «record metrics and analytics» or «monitor the service's health and performance». It's worth naming them, but leaving them for the end if there's time left. It's like asking for a sign with your name on the cake: it adds something, but if there's no time, the cake still works.
Next, estimate the system's scale. Key questions: «what scale must it handle?», «what's the ratio between reads and writes?», «how many requests per second?» and «how much storage is needed?». For example, 100 million requests per day are about 1,160 per second, because a day has 86,400 seconds. These numbers guide how to scale the design later. It's like counting how many guests are coming before renting the venue.
The read/write ratio says how much more is read than written. In a URL shortener you can assume 100 to 1: each link is created 1 time and visited 100 times. A system that reads much more than it writes benefits from cache and read replicas; one that writes a lot needs another strategy, like sharding. It's like a library: books are lent thousands of times, but bought just 1 time.