Interview Q&A: Beginner

The system design interview method, the numbers you need memorised, and the core concepts almost every design question touches — each as a direct question with a real answer.

On the roadmap:Interview Ready · step 1: The interview method

Lesson 1 of 7 · 35 min read · quiz · exercise

How to use this lesson

Start here if you're new to system design interviews, or want to drill the fundamentals before the harder design questions. Every question below has a real, written answer — no diagrams to trace, no study plan to follow first. Read a question, answer it yourself (even just in your head), then compare.

What should I do in the first five minutes of "design X"?

Ask clarifying questions before drawing anything. Agree the functional scope (pick the top three to five features and say what you're leaving out), the scale (how many users, how many requests), and the priorities (is this read-heavy or write-heavy, does it need strong consistency, what latency matters). The problem is deliberately vague — scoping it well is part of what's being graded, and starting to draw before you agree what you're building is one of the most common ways to lose points early.

How much time should I spend estimating scale, and what should I actually calculate?

Spend around five minutes turning the agreed scope into numbers: daily active users, actions per user, requests per second (average, then peak — usually 2 to 3 times average), the read-to-write ratio, and storage per day and over a few years. Use round numbers and say the arithmetic out loud. The point isn't precision — it's finding out whether you're dealing with thousands or millions of requests per second, because that number decides whether you need sharding and a CDN or whether one well-tuned server and a cache is enough.

What should a high-level design actually show?

The main components and the data flow for the core use case: clients, load balancer, services, databases, caches, queues. Define the APIs and the main data entities. Keep it correct and simple first — don't add a message queue or a specific database because it sounds impressive; add it when a number or a requirement actually demands it.

How do I pick what to go deep on?

Go deep on two or three parts that are either central to the problem or that the interviewer points you toward — the data model and why, the hot path (how a request gets served fast), the part of the system that has to scale the hardest, and how failures and consistency are handled. Going shallow everywhere is a common way to run out of time without showing real depth anywhere; staying deep on one obvious part for too long is the opposite mistake.

How should I close out the last five minutes?

Name the bottlenecks and single points of failure, how you'd monitor the system, and briefly touch security, cost, and what you'd do next with more time. Summarise the trade-offs you made along the way. This is also where a strong answer ties back to the numbers from the estimate: "at this scale, the database is the first thing to break, so that's where I'd add read replicas first."

What habits separate a strong answer from a weak one?

Think out loud and check in with the interviewer rather than going silent and drawing alone. Start from a simple, working design and evolve it as the numbers demand, rather than designing for imaginary future scale from the first minute. Justify every choice with a reason tied to a requirement, and say what you didn't choose and why. Use your own estimates to decide things instead of guessing. Be explicit about trade-offs instead of picking one side silently. And always say what happens when something breaks — every box in the diagram can fail, and not mentioning that is one of the fastest ways to look under-prepared.

What's different about a low-level design interview?

The same spirit, at the level of classes instead of servers: clarify the requirements, find the entities, assign responsibilities to each one, work out how they relate, apply a design pattern where it genuinely helps (not for its own sake), code the core flow, and discuss how you'd extend it. The grading criteria are the same — clear reasoning, sensible trade-offs, and the ability to adapt when pushed — just applied to object design instead of distributed systems.

What are the rough latency numbers I should have memorised?

A memory read is nanoseconds to about 100 ns. Reading 1 MB sequentially from memory takes tens of microseconds. An SSD random read is around 100 microseconds. A round trip within one data centre is around 0.5 ms. Reading 1 MB sequentially from SSD is around 1 ms. A hard disk seek is around 10 ms. A round trip within the same continent is tens of milliseconds. A round trip across oceans is 100 ms or more. The take-away to say out loud: memory beats disk, disk beats a cross-region network call, and sequential access beats random — so avoid unnecessary round trips and prefer sequential I/O where you can.

What quick formulas do I need for capacity estimates?

Average requests per second is requests per day divided by 86,400 (seconds in a day); peak is average times a factor of 2 to 5. Storage is records per day times bytes per record times days retained, times your replication factor. Bandwidth is requests per second times average response size. The number of servers you need is peak requests per second divided by what one server can handle, plus headroom. For caching, a common rule of thumb is that a small fraction of your data (often around 20 percent) serves most of your reads, so you don't need to cache everything — just the hot working set.

How do the "nines" of availability translate into actual downtime?

99% availability is about 3.65 days of downtime a year, or roughly 7.2 hours a month. 99.9% is about 8.8 hours a year, or 43 minutes a month. 99.99% is about 53 minutes a year, or about 4.3 minutes a month. 99.999% ("five nines") is about 5.3 minutes a year, or about 26 seconds a month. Components in series multiply their failure probability — two 99.9% components chained together give you about 99.8%, not 99.9% — which is why long dependency chains hurt availability and redundancy across independent zones helps.

What is the standard list of trade-offs I should be ready to name in any design?

Latency versus consistency (stronger agreement between replicas costs coordination time). Consistency versus availability (a network partition forces a choice between them). Read versus write optimisation (indexes, caches, and denormalisation speed up reads at the cost of making writes slower or more complex). Simplicity versus scale (every scaling technique you add is another moving part to operate). Cost versus performance and reliability (more redundancy and more speed both cost more). Naming these unprompted, and saying which side you picked and why, is one of the clearest signals of interview readiness.

What is the CAP theorem, and why does it matter?

A distributed system that replicates data cannot guarantee all three of Consistency (every read sees the latest write), Availability (every request gets a response), and Partition tolerance (the system keeps working when nodes can't talk to each other) at the same time. Since network partitions will happen, the real choice is between consistency and availability during a partition — a system picks CP (refuse requests rather than return stale data) or AP (answer anyway, possibly with stale data, and reconcile later). It matters because it is the first fork in almost every design decision about replication: a bank balance usually wants CP, a social media like-counter usually wants AP.

What is eventual consistency, and when is it acceptable?

A system is eventually consistent if, once writes stop, all replicas converge to the same value — but a read right after a write might see an older value. It's acceptable whenever a brief staleness doesn't cause real harm: view counts, follower counts, search index updates, product catalog browsing. It's usually not acceptable for anything involving money moving, inventory that can be oversold, or safety-critical state, where you need strong consistency or an explicit reconciliation step instead.

What is a load balancer, and how does it decide where to send traffic?

A load balancer sits in front of a pool of servers and spreads incoming requests across them so no single server is overwhelmed and a failed server stops receiving traffic. Common strategies: round robin (simple, ignores server load), least connections (sends to the server handling the fewest active requests), and weighted versions of either (for servers with different capacity). Layer 4 load balancers route by IP/port without looking at the request; Layer 7 load balancers can read the HTTP request and route by path, header, or cookie, which also enables sticky sessions. Health checks remove unhealthy servers from rotation automatically.

How would you decide between SQL and NoSQL for a given system?

Start from the access pattern, not a preference. Reach for a relational database when the data has clear relationships, you need multi-row transactions, or your query patterns aren't fully known upfront (SQL's flexibility to ask new questions later is valuable). Reach for NoSQL when you have one dominant, known access pattern at very high scale (a key-value store for a session cache, a wide-column store for time-series writes), when the schema genuinely varies per record (a document store for user-generated content with optional fields), or when you need to scale writes horizontally more easily than most relational setups allow. Many real systems use both: a relational database for the core transactional data and a specialized store for one hot path.

What is a CDN, and how does it reduce latency?

A Content Delivery Network is a geographically distributed set of caching servers (edge nodes) that store copies of content close to users. Instead of every request crossing the globe to origin, a user's request is served from the nearest edge node if the content is cached there, cutting round-trip time. It's used for static assets (images, video, JS/CSS) and increasingly for cacheable API responses too. The trade-off is cache invalidation: when content changes, you need a way to purge or version it at the edge so users don't see stale data indefinitely.

What does "idempotency" mean, and why does it matter for APIs?

An operation is idempotent if performing it multiple times has the same effect as performing it once. It matters because networks are unreliable: a client might retry a request after a timeout without knowing whether the first attempt actually succeeded server-side. A payment API without idempotency could charge a customer twice on a retried request. The common fix is an idempotency key: the client generates a unique key per logical operation, and the server stores which keys it has already processed, returning the original result for a repeat instead of redoing the side effect.

Design a URL shortener

Scale first: assume a read-heavy system (reads far outnumber writes — most short links get clicked many times). Core flow: a write takes a long URL and returns a short code; a read takes the short code and redirects (HTTP 301/302) to the long URL. Encoding: either hash the long URL and take the first few characters (risk: collisions, needs a retry-on-collision step), or use a counter and encode it in base62 (guarantees uniqueness, needs a coordinated counter — a key-generation service handing out blocks of IDs to app servers works well). Storage: a simple key-value mapping of short code to long URL; a relational or key-value store both work at moderate scale. Caching: since reads dominate, cache the hot short codes in front of the database — this is usually the single highest-leverage addition. Extensions an interviewer might probe: custom aliases, expiring links, click analytics (write to a queue, aggregate asynchronously so it doesn't slow the redirect).

Design a paste-sharing service

Nearly identical to a URL shortener, but the stored value is a block of text instead of a URL, which changes the storage and size considerations. Core flow: a write stores the text and returns a short id; a read fetches and displays it. Storage: large pastes don't belong in the same row-store as a short URL mapping — put the text in object storage (or a blob column) and keep only the id-to-location mapping in the fast lookup store. Expiry: a time-to-live on each paste, cleaned up by a background job rather than checked on every read. Abuse limits: rate-limit creation per IP/account, and scan for abuse patterns (this is a common follow-up question).

Design a public status page

Core requirement: very high read availability for essentially static content, with low write frequency (status updates are infrequent). Design: this is almost entirely a caching and CDN problem rather than a database problem — serve the page from a CDN with a short cache TTL, and have the origin update a simple data store when an incident is posted. Key point to raise: a status page must stay up even when the rest of your infrastructure is down, so it's often deliberately hosted on entirely separate infrastructure from the main product (a different cloud region or even provider) to avoid a shared failure taking both down together.

How do you decide when a system needs caching, and what do you cache?

Add caching when you've identified a specific read-heavy hot path where the same data is requested repeatedly and the underlying fetch (a database query, a slow computation, an external API call) is expensive relative to how often it changes. Cache the result of that specific expensive operation, not everything indiscriminately — caching data that changes on every read adds complexity for no benefit. The real design work is in invalidation: a short TTL for data that can tolerate brief staleness, or explicit cache invalidation on write for data that can't.

How do you decide between synchronous and asynchronous communication between services?

Use synchronous (a direct API call) when the caller genuinely needs the result before it can proceed, and the operation is fast and reliable enough that the caller can afford to wait. Use asynchronous (a queue or event) when the caller doesn't need an immediate answer, when you want to decouple the caller's availability from the callee's (the callee being briefly down shouldn't break the caller), or when one event needs to trigger multiple independent downstream effects. A good signal that something should move from sync to async: the caller is timing out or failing because of a downstream service's slowness, when the caller didn't actually need to wait.

How do you approach estimating the scale of a system you've never seen numbers for?

Start from what you can reasonably guess or ask for — total users, percentage active daily, and a rough action rate per active user — and multiply through to requests per second, then account for a peak multiplier (often 2-3x average) since traffic isn't evenly spread across the day. Round aggressively; the goal is to find out whether you're dealing with thousands or millions of requests per second, which changes the whole design, not to get an exact figure. State the assumption out loud so the interviewer can correct it if it's off from what they had in mind.

What's your framework for discussing trade-offs when there's no clearly right answer?

Name the two or three things actually in tension (for example latency vs. consistency, or cost vs. redundancy), state which one matters more given the stated requirements, and say what you're giving up by choosing it. A strong trade-off answer sounds like "I'm choosing eventual consistency here because the requirement was fast reads at scale, and the cost is that a user might briefly see a stale view count — which the requirements say is acceptable" rather than just naming a side without the reasoning that got there.

Next: the classic design questions

Comfortable with the method and the fundamentals? Move on to the Intermediate lesson, which covers the classic design prompts — one well-known pattern applied to one system — that most interviews actually ask.

Check your understanding

Question 1 of 4

0 correct so far

An interviewer asks a conceptual question like 'what is the CAP theorem' early in the interview. What is the best way to answer?

Go deeper

  • System Design Interview, volumes 1 and 2 by Alex Xu: the same question style at book length, with worked diagrams
  • System design primer by Donne Martin (GitHub): a free, community-maintained study guide covering the same ground
  • systemdesign.io by systemdesign.io: another free resource covering common system design interview questions

© 2026 forcsguy.com. Original lesson text and diagrams. Books and sites linked above belong to their authors.