System Design interview questions: architecture practice quiz

Reviewed by Mark Dickie · Last updated

10 questions on this page you can answer and see marked on the spot. Go to the first one

System design is the work of deciding how a software system's services, data stores, and network paths fit together to meet targets for load, latency, and reliability. In a system design interview, you start from a vague prompt such as "design a URL shortener", turn it into requirements and rough capacity numbers, sketch an architecture, and then go deep on one or two bottlenecks. Interviewers grade the trade-offs you name, such as SQL versus NoSQL storage, synchronous calls versus queues, and strong versus eventual consistency, more than whether you recall one correct design. The quiz below covers those trade-offs in the order you will meet them.

Which building blocks do interviewers expect you to name?

Building blockWhat the interviewer checksConcrete options to name
Load balancerHow traffic is routed and how failover worksL4 vs L7, round robin vs least connections, active health checks
CacheInvalidation strategy and what happens on a missCache-aside vs write-through, TTL values, LRU eviction
Database shardingChoice of partition key and hot spotsHash-based vs range sharding, consistent hashing with virtual nodes
Message queueDelivery guarantees and decouplingKafka partitions and consumer groups, SQS visibility timeout, at-least-once delivery with idempotent consumers
Rate limiterAlgorithm and where it runsToken bucket vs sliding window log, Redis INCR with key expiry

How do you order a system design answer?

  1. Clarify requirements: which features are in scope, the read-to-write ratio, and the latency target.
  2. Estimate scale: requests per second, storage per year, and bandwidth, so the numbers justify the design.
  3. Define the API and data model, including the key you would partition on.
  4. Draw the high-level path: client, load balancer, service, cache, and database.
  5. Deep-dive the bottleneck you picked, naming one concrete option and what it costs.
  6. Walk through failure cases such as a node crash, a network partition, or a retry storm.

Key facts

  • Tarmac has 49 System Design interview questions on this topic, 10 of them on this page, at difficulty 1–5 of 5.
  • Tarmac tracked 2,173 job postings asking for System Design in November 2026.
  • Roles asking for System Design advertise a median base salary of £86,000, across 642 job postings as of November 2026.
  • Tarmac last reviewed these System Design interview questions on 3 November 2026.

At a glance

Questions10 shown · 49 in the bank
Difficulty1–5 of 5
FormatsTrue / false, Multiple answer, Ordering, Multiple choice

What you'll review

  1. sd architecture

Practice questions

Try one before you open the answer. Pick an option and press Check; it's marked on the spot.

A monolithic architecture packages all application components (UI, business logic, and data access) into a single deployable unit, which means the entire application must be redeployed whenever any component changes.#

Options

Show answer

True. In a monolithic architecture, all components—UI, business logic, and data access—are packaged into one deployable unit. A change to any component requires rebuilding and redeploying the entire application. This coupling is a primary reason teams adopt microservices, which allow individual services to be deployed independently.

Why:

By definition, a monolith is a single deployable artifact. All components are tightly coupled and compiled/packaged together. Any code change—regardless of which layer it affects—requires rebuilding and redeploying the whole unit. This is one of the key motivations for moving toward microservices, which allow individual components to be deployed independently.

In a stateless web architecture, any server in the pool can handle any incoming request without needing access to session data stored on a specific server.#

Options

Show answer

True — in a stateless web architecture, no application server stores session data locally. State is kept in a shared external store (like Redis or a database) or carried in the request (e.g., a JWT). This means any server can handle any request, enabling simple horizontal scaling and eliminating 'sticky session' requirements.

Why:

Stateless architecture means no session or user state is persisted on individual application servers. Session data is either stored in a shared external store (e.g., Redis, a database) or encoded in the request itself (e.g., a signed JWT). Because no server holds unique local state, any server can serve any request, making horizontal scaling and failover straightforward. This is a foundational principle behind scalable, cloud-native architectures.

A team is designing a caching layer (e.g., Redis) in front of a relational database. Identify all correct statements about common cache-writing strategies:#

Options

Pick every one that applies.

Show answer

The correct statements are 1, 2, and 4. Write-through synchronously writes to both cache and DB; write-behind writes to cache first and flushes to the DB asynchronously; and write-behind risks data loss if the cache crashes before flushing. Statement 3 is false because write-through has higher write latency (it waits for a synchronous DB write). Statement 5 is false because read-through is a reactive/lazy strategy triggered by cache misses, not a proactive pre-population technique.

Why:

Statements 1, 2, and 4 are correct. Write-through (Statement 1) synchronously writes to both the cache and the database on every write, keeping them consistent for written keys at the cost of higher write latency. Write-behind / write-back (Statement 2) writes to the cache first and flushes to the database asynchronously, improving write throughput. Write-behind (Statement 4) does risk data loss: if the cache node crashes before the asynchronous flush completes, those pending writes are lost.

Statement 3 is false. Write-through has higher write latency than write-behind because it must wait for both the cache write and the synchronous database write to complete before acknowledging success; write-behind returns as soon as the cache write is done.

Statement 5 is false. Read-through is a reactive (lazy) strategy: the cache intercepts a read, detects a miss, fetches the data from the database on behalf of the caller, populates the cache, and then returns the result. Proactive pre-population before any miss occurs describes cache warming (or cache priming), not read-through.

Arrange the following components in the order that an incoming HTTPS API request from an end user traverses in a common globally distributed microservices architecture (first = closest to the user, last = furthest from the user). Assume the CDN does not serve this request from cache and forwards it to the origin, and that the API Gateway is deployed regionally behind the CDN (as in AWS CloudFront → API Gateway, or Cloudflare → regional API Gateway):#

Put these in order

Show answer

The correct traversal order is: CDN/Edge Cache → API Gateway → Service-Level Load Balancer → Microservice Instance. In a typical CDN-fronted architecture (e.g., CloudFront or Cloudflare in front of a regional API Gateway), the CDN handles edge caching and TLS termination, the API Gateway enforces auth and routing, an internal service-level load balancer spreads load across microservice replicas, and finally the microservice executes the business logic.

Why:

In the widely adopted CDN → API Gateway → service-level load balancer → microservice pattern (exemplified by AWS CloudFront + API Gateway, Cloudflare + regional API Gateway, and GCP Apigee deployments), the flow for a cache-miss API request is: (1) The CDN/edge layer receives the request, terminates TLS, applies edge rules, and, on a cache miss, forwards it to the origin. (2) The API Gateway is the origin entry point — it authenticates the request, enforces rate limits, and routes it to the correct internal service. Global routing (to the nearest region) is handled either by the CDN itself or by the API Gateway platform (e.g., Apigee, Kong Konnect), so a separate 'global load balancer' is not a distinct hop in this reference architecture. (3) The service-level load balancer (e.g., an internal ALB or Envoy sidecar) distributes the request across healthy instances of the target microservice. (4) The microservice instance processes the business logic and returns a response. Mixing up these layers — for example, placing the service-level load balancer before the API Gateway — would bypass authentication and rate-limiting, which is genuinely insecure.

You are designing a multi-region active-active key-value store for shopping carts. Each region accepts reads and writes and replicates asynchronously to the others. A user updates their cart from two regions nearly simultaneously, before either update has replicated. Which mechanism lets the system detect that the two updates were concurrent (neither causally preceded the other) without relying on wall-clock ordering and without silently discarding either update?#

Options

Show answer

Version vectors detect concurrent writes in active-active replication. Each write carries per-replica counters, and if neither version's vector dominates the other, the writes are flagged as concurrent siblings instead of one silently overwriting the other. Last-Write-Wins drops data, and two-phase commit or a single global sequencer needs cross-region coordination that undermines availability.

Why:

The requirement has three parts: detect concurrency, avoid wall-clock ordering, and keep both updates. Version vectors (vector clocks) record per-replica counters on each write; if neither vector dominates the other, the writes are concurrent and the system keeps both as siblings for a later merge. Last-Write-Wins orders writes by wall-clock time and drops the losing update, so it fails the no-discard requirement and cannot detect concurrency at all. Two-phase commit and a single global sequencer both require cross-region coordination before acknowledging writes, which conflicts with active-active availability and does not model concurrent writes. Vector clocks detect the conflict; the merge itself is a separate application step.

A Raft-based key-value store (such as etcd) is split by a network partition that leaves the old leader stranded in a minority group while the other nodes form a majority. The partition lasts long enough for the majority to elect a new leader, then heals. Arrange these events in the order they occur.#

Put these in order

Show answer

In Raft, the order is: the partition isolates the old leader, the majority elects a new leader with a higher term, the partition heals and the higher-term message reaches the old leader, the old leader steps down to follower, and finally log repair removes its divergent uncommitted entries. Each step depends on the previous one, and a leader only yields when it sees a higher term.

Why:

Each step causally depends on the one before it. The partition stops heartbeats from reaching the majority side, which makes those followers' election timeouts fire; a candidate then wins a majority vote and becomes the new leader with a higher term. The old leader has no reason to step down until it hears a higher term, so the heal must come before that message can be delivered, and Raft's rule that a leader seeing a higher term reverts to follower makes the old leader step down to follower. Only after it is a follower does the new leader's AppendEntries consistency check (matching previous index and term) fail against the old leader's divergent entries. The leader resolves this by decrementing its replication index, and the follower then deletes the conflicting uncommitted entries it appended during the split and adopts the leader's log.

A senior engineer is reviewing a system design document for a high-traffic e-commerce platform. Which of the following architectural statements are correct? Select all that apply.#

Options

Pick every one that applies.

Show answer

The correct architectural statements are: a message queue absorbs write bursts, stateful services scaled by adding instances risk inconsistency without externalised state, and read replicas offload read-heavy queries from the primary. A CDN does not cache arbitrary database query results, since CDNs cache HTTP responses at the edge.

Why:

The keyed correct statements are: a message queue placed between the order and inventory services buffers bursts of writes so downstream inventory is not overwhelmed; scaling out a stateful service by adding instances without externalising state risks inconsistency, because each instance holds its own divergent view of the data; and read replicas offload read-heavy queries from the primary node, reducing its load. The statement claiming a CDN can cache arbitrary database query results is false: CDNs cache HTTP responses at the edge, and caching query results is the role of an application-level cache such as Redis. Exactly three statements are correct and one is false.

You operate a multi-tenant SaaS platform backed by a horizontally sharded database. One shard is a persistent write hot spot because a single mega-tenant produces 60% of all writes to that shard. Assume you can make infrastructure and schema changes. Which strategy does NOT reduce the write pressure on the overloaded primary node in steady state?#

Options

Show answer

Adding read replicas does not reduce write pressure on a hot primary, because every write must still be applied to the primary. Replicas only offload read queries. Strategies that spread the tenant's keys across nodes, batch writes, or split the shard do reduce per-node write load.

Why:

The question asks for the strategy that does not reduce write pressure on the overloaded primary in steady state. Adding read replicas and routing reads to them only removes SELECT traffic from the primary; every INSERT, UPDATE and DELETE for the mega-tenant still has to be executed on that same primary, so its write load is unchanged. The other three each lower write load on the hot node: re-keying by (tenant_id, record_id) with consistent hashing spreads the tenant's writes across many nodes, a write-behind buffer coalesces many small writes into fewer flushes, and sub-partitioning by record_id splits the tenant's write stream across child shards on different nodes.

You are designing a globally distributed database that must satisfy:#

Options

Show answer

The false statement is that a five-voter Raft group placed 2-2-1 across three regions cannot commit writes while one region is unreachable. Raft commits on a majority of voters, so losing any one region (at most two voters) leaves three of five and writes still commit. Quorum-based synchronous replication, asynchronous replication, and CRDTs each behave as their trade-offs describe.

Why:

Raft and Paxos commit an entry once a majority of voters persist it, not once every voter does. In a 2-2-1 placement of five voters, losing any single region removes at most two voters, leaving at least three of five, which is a majority, so the group keeps committing writes and the strong-consistency and availability requirements can both hold (at the cost of cross-region write latency). The other three statements are true: a majority-quorum synchronous write survives a single-region loss with RPO=0 and the majority side of a partition stays writable; asynchronous replication acknowledges writes before they reach other regions, so RPO=0 cannot be guaranteed; and CRDTs converge but do not give linearizable results for conflicting concurrent writes. Since the question asks for the FALSE statement, the answer is the Raft 2-2-1 claim that every voter must acknowledge.

A team is splitting a single order-management monolith into separately deployed services. Arrange these three milestones from earliest to latest, where each milestone is the problem that forces the next one to appear.#

Put these in order

Show answer

The correct order is a single deployable service on one shared database, then separate services each owning its own database, then a saga to coordinate order placement. Each stage creates the next problem: once data is split across databases, no single local ACID transaction can span them, so compensating steps become necessary.

Why:

The order is forced by a dependency chain rather than by a named industry sequence. A monolith on one shared relational database can make order placement atomic with one local ACID transaction, so no coordination mechanism is needed. Splitting into services that each own a database means a single order write now spans several stores, and no local transaction can commit across them, which creates the need for a coordination mechanism. A saga is the standard way to keep those cross-database steps consistent through local transactions and compensations, so it only becomes necessary after the split. Each adjacent pair is a strict precedence: the saga has nothing to coordinate until the data is split, and the split only causes a transaction problem once data lives in separate stores.

Related interview questions

Job market

See system-design salaries and hiring demand from live job postings.

The other 39 questions

This page shows 10 and marks what you pick. That's as far as a page can go. A free account opens the other 39 and keeps every answer. What you miss comes back until it's right: after a day, then at longer gaps.

Start with this topic

Free · the whole bank · 100 answers per 30 days, each marked with written feedback

Interview booked? Practise the job ad instead

What moved, monthly

One email a month when the bulletin comes out: what moved in the markets we track, and the new question topics we published. Confirm your address to join. Unsubscribe any time.