Skip to main content
Systems & Concurrency

System Design & Distributed Systems Senior Architecture Quiz (2026)

15 Questions15 MinsPass: 80%

Demonstrate your distributed systems engineering knowledge across CAP/PACELC trade-offs, consistent hashing, database sharding, caching.

Question 1 of 150% Completed
Single Choice

What does the PACELC theorem state about distributed systems that extends the traditional CAP theorem?

Select an option above

System Design: Assessment Scope & Sample Focus Areas

15 questions • 80% pass target

This interactive technical assessment checks your practical understanding of System Design (Systems & Concurrency) across syntax behavior, edge cases, and architectural decisions.

Topic 1 of 15

What does the PACELC theorem state about distributed systems that extends the traditional CAP theorem?

Topic 2 of 15

Why does Consistent Hashing utilize 'virtual nodes' (vnodes) when distributing keys across a cluster of physical storage nodes?

Topic 3 of 15

In the Cache-Aside (Lazy Loading) caching pattern, what is the sequence of operations when reading data?

Topic 4 of 15

What rate limiting algorithm uses a counter bucket that continuously leaks requests at a constant, steady outflow rate, smoothing out bursty traffic into a predictable stream?

Topic 5 of 15

In Apache Kafka, what happens during a Consumer Group Rebalance?

Topic 6 of 15

Why is the Saga Pattern preferred over Two-Phase Commit (2PC) for transactions spanning multiple independent microservices?

Frequently Asked Questions

System Design Assessment: Key Technical Questions & Answers

5 Questions Answered
1How does Consistent Hashing minimize data movement during distributed cache rebalancing?
Traditional modulo hashing (`hash(key) % N`) forces almost 100% of keys to remap to new nodes whenever a cache node is added or removed ($N \pm 1$), causing massive cache stampedes. Consistent Hashing maps both keys and nodes to a circular hash ring ($0$ to $2^{32}-1$). Adding or removing a node only impacts keys between the target node and its immediate neighbor ($k/N$ keys on average). Virtual nodes (vnodes) distribute keys uniformly across uneven hardware.
2What is the CAP Theorem and how does PACELC expand upon it in distributed databases?
CAP states that during a Network Partition ($P$), a distributed system must choose between Consistency ($C$, returning errors rather than stale data) or Availability ($A$, returning available data even if stale). PACELC extends this: If Partition ($P$), choose Availability ($A$) or Consistency ($C$); Else ($E$), choose Latency ($L$) or Consistency ($C$). For example, DynamoDB and Cassandra choose $PA/EL$, while MongoDB and Spanner choose $PC/EC$.
3What is the difference between Write-Through, Write-Behind (Write-Back), and Cache-Aside caching strategies?
In Cache-Aside, the application reads from cache; on miss, it loads from DB and writes to cache. Writes update the DB directly and invalidate the cache. In Write-Through, the application writes to the cache, which synchronously updates the database before returning, ensuring high read consistency. In Write-Behind, the application writes to the cache immediately, and the cache asynchronously writes to the DB in background batches, offering maximum write throughput at the risk of data loss on cache crashes.
4How does the Two-Phase Commit (2PC) protocol achieve distributed atomic transactions and what are its failure modes?
2PC uses a Coordinator and Participants across two phases: 1. Prepare Phase: The coordinator asks all participants if they can commit; participants execute work, write undo/redo logs, and vote YES or NO. 2. Commit Phase: If all vote YES, the coordinator issues a global COMMIT command; otherwise, it issues ROLLBACK. The primary failure mode is coordinator failure after participants vote YES: participants remain blocked holding locks, making 2PC impractical for high-throughput distributed microservices (favoring the Saga Pattern).
5What is the difference between WebSockets, Server-Sent Events (SSE), and Long Polling for real-time systems?
Long Polling sends repetitive HTTP requests that hold open until data is ready, incurring high HTTP header overhead and latency. Server-Sent Events (SSE) provide a lightweight, unidirectional persistent HTTP connection streaming server-to-client events with built-in reconnection, ideal for live score updates and LLM streaming tokens. WebSockets provide full-duplex, bidirectional persistent TCP connections with minimal 2-byte framing overhead, ideal for multiplayer gaming and collaborative editors.

Next Steps for Mastery

Reinforce your knowledge with cheatsheets, interactive sandboxes, and interview prep.