PrepPilotPractise free

System Design interview questions

Requirements, APIs, data, caching, queues, scaling and trade-offs

17 questions · scale · updated November 2026

Practise these as flashcards. One or two lines each; the ones you miss come back first.

Start free

Core questions

How do you start a system design interview?

I begin by clarifying the requirements with the interviewer to understand the core features, constraints, and any non-functional needs. This ensures we're aligned before diving into the design.

What is a cache, and why is it useful?

A cache is a fast, temporary storage layer that holds frequently accessed data to reduce latency and database load. It's useful because it speeds up responses and improves scalability.

What is horizontal scaling?

Horizontal scaling means adding more servers or instances to handle increased load, rather than upgrading a single machine. This approach improves reliability and allows systems to grow as needed.

What is a dead-letter queue?

A dead-letter queue is a special queue where messages that can't be processed successfully after several attempts are sent. This helps isolate problematic data and prevents it from blocking the main processing flow.

Intermediate questions

How would you estimate the storage needs for a URL shortener service?

I'd estimate the number of URLs stored per day, multiply by the average size per record (including code, original URL, and metadata), and project this over the expected retention period. For example, if we store 1 million URLs/day at 200 bytes each, that's about 200MB/day, or roughly 73GB/year.

Explain the difference between cache-aside and write-through caching.

In cache-aside, the application loads data into the cache on demand and updates the cache after writes. In write-through, all writes go through the cache, which updates both the cache and the database simultaneously, keeping them in sync but potentially increasing write latency.

When would you choose NoSQL over SQL?

I'd choose NoSQL when I need to handle large-scale, unstructured, or rapidly changing data, or when horizontal scaling is a priority. For example, storing user activity logs or social feed events is often a good fit for NoSQL.

What is eventual consistency, and where is it acceptable?

Eventual consistency means that, after a write, all replicas will eventually reflect the change, but not necessarily immediately. It's acceptable in scenarios where slight delays in data propagation are tolerable, like social media feeds or analytics dashboards.

How do you ensure idempotency in async processing?

I design the consumer logic so that processing the same message multiple times has the same effect as processing it once. This often involves using unique request IDs or checking if an operation has already been performed before applying changes.

How does a load balancer improve system reliability?

A load balancer distributes incoming requests across multiple servers, so if one server fails, traffic is redirected to healthy ones. This reduces downtime and helps maintain consistent performance under varying loads.

What is a circuit breaker, and why is it important?

A circuit breaker is a pattern that detects repeated failures in a service and temporarily blocks requests to prevent further strain. It's important because it helps avoid cascading failures and allows the system to recover gracefully.

What is back-pressure, and how does it protect your system?

Back-pressure is a mechanism where overloaded services signal clients or upstream components to slow down or stop sending requests. It helps prevent resource exhaustion and cascading failures by matching the incoming rate to what the system can handle.

Senior questions

Design a rate limiter for an API. What approaches would you consider?

See the answer in the app, free

How would you shard a large SQL database, and what are the trade-offs?

See the answer in the app, free

Describe how you’d design observability for a chat system.

See the answer in the app, free

How would you handle cache invalidation in a news feed system?

See the answer in the app, free

What failure modes would you consider in a URL shortener, and how would you mitigate them?

See the answer in the app, free

More Developer fundamentals topics