Questions: Replication Strategies and Trade-offs

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

A leaderless replication system has N = 5 nodes. An engineer sets a write quorum of W = 2 and a read quorum of R = 2. What is the fundamental problem with this configuration?

AWrite quorums must always be a strict majority; W = 2 out of 5 is too small and writes will be rejected
BW + R = 4 < N = 5, so it is possible for a read to contact only nodes that missed a recent write, returning stale data without detecting it
CThis configuration is optimal — W + R < N minimizes latency by reducing coordination overhead
DN = 5 requires odd quorum values; even values cause split-brain scenarios during network partitions
Question 2 Multiple Choice

A company uses multi-leader replication so users in the US and Europe can write to their nearest datacenter without cross-continental round trips. A US user and a European user simultaneously update the same product's inventory count. What problem must this system handle that primary-backup replication avoids?

AA network partition — multi-leader systems are uniquely vulnerable to split-brain failures not present in primary-backup
BA write conflict — both leaders accepted a valid concurrent write to the same record and the system must decide which value wins
CA Byzantine failure — one datacenter may send corrupted acknowledgments to the other
DA deadlock — both leaders will block indefinitely waiting for the other to release a record lock
Question 3 True / False

In a leaderless replication system, setting W + R > N guarantees that at least one node participating in any successful read has seen the most recent successful write.

TTrue
FFalse
Question 4 True / False

Primary-backup replication offers higher availability than leaderless replication because a single authoritative primary eliminates conflicting writes and ensures correct behavior during node failures.

TTrue
FFalse
Question 5 Short Answer

Why does stronger consistency in a replicated system typically require giving up some availability or accepting higher write latency? Explain the underlying coordination cost.

Think about your answer, then reveal below.