Match a job Paths Subjects Questions Quizzes Pricing
Overview Read Practice

Practice — Database Replication & Sharding (6 questions)

Pro content

Sign up free, then start a 14-day Pro trial — no card needed.

Intermediate Open Free

Quorum Reads and Writes Permalink →

A leaderless key-value store keeps every key on N = 5 replicas. The operations team is choosing default write (W) and read (R) quorum sizes. They are considering W = 3, R = 3, W = 1, R = 5, and W = 2, R = 2.

  1. For each configuration, state whether a read is guaranteed to observe the most recent acknowledged write, and explain the rule you used.
  2. Walk through a concrete example with W = 2, R = 2: replicas A–E, a write acknowledged by two of them, and a read that misses it.
  3. The system enables sloppy quorums with hinted handoff during outages. Which of your answers to part 1 changes, and why?

Share this question

Intermediate Open Pro

Replication Lag Anomalies in a Social App

Unlock this question →
Advanced Open Pro

Failover, Lost Writes and Split-Brain

Unlock this question →
Intermediate Open Pro

Choosing a Shard Key for a Messaging Table

Unlock this question →
Advanced Open Pro

Resharding From 8 to 12 Nodes Online

Unlock this question →
Intermediate Open Pro

Uniqueness, Secondary Lookups and Joins Across Shards

Unlock this question →

We use cookies for product analytics to improve OmniAtlas. See our Privacy Policy.