Replication Questions with Answers

15 practice questions on Replication (System Design) with answers and step-by-step solutions. Try 10 samples below, then practise all 15 free in the AptiNest app.

Sample questions

Question 1Easy

In leader-follower (primary-replica) replication, writes go to:

  1. All nodes in parallel, with the client responsible for retrying
  2. The leader, which ships changes to followers
  3. Any follower
  4. Only the newest follower

Answer: B. The leader, which ships changes to followers

Explanation

The single leader orders writes and replicates them; followers usually serve reads.

Step-by-step solution

  1. In leader-follower replication there is one leader.
  2. The leader orders the writes and ships the changes to followers.
  3. Followers copy those changes and usually serve reads.
  4. So writes go to the leader (option B).

Why the other options are wrong

  • A. Writing to all nodes in parallel is not leader-follower replication.
  • C. Followers are read copies and do not take writes in this model.
  • D. The newest follower is not special; writes go to the leader.

Tip: In leader-follower replication, writes go to the leader and reads can go to followers.

Question 2Easy

Replication vs backup: which is true?

  1. Replication copies mistakes too, so backups are still needed
  2. Replication replaces the need for backups
  3. Backups prevent split brain by keeping an offline copy of the leader's data
  4. Backups improve read throughput

Answer: A. Replication copies mistakes too, so backups are still needed

Explanation

An accidental DELETE replicates instantly; backups let you restore to before the error.

Step-by-step solution

  1. Replication copies every change to the replicas.
  2. An accidental DELETE is copied to the replicas too.
  3. A backup holds an older copy, so you can restore to before the mistake.
  4. So replication copies mistakes too, and backups are still needed (option A).

Why the other options are wrong

  • B. Replication does not replace backups, because it copies mistakes.
  • C. Backups do not prevent split brain; that is about leader election.
  • D. Backups do not improve read throughput.

Tip: Replication protects against machine failure; backups protect against bad data.

Question 3Easy

Adding read replicas helps most when the workload is:

  1. Mostly schema changes
  2. Read-heavy
  3. Mostly deletes
  4. Write-heavy

Answer: B. Read-heavy

Explanation

Replicas multiply read capacity; every write must still be applied on every replica.

Step-by-step solution

  1. Each read replica can serve reads.
  2. Adding replicas adds read capacity.
  3. But every write must still be applied to every replica.
  4. So replicas help most when the workload is read-heavy (option B).

Why the other options are wrong

  • A. Schema changes do not gain from read replicas.
  • C. Deletes are writes, so they do not benefit from read replicas.
  • D. Write-heavy load still hits every replica, so replicas do not help writes.

Tip: Read replicas scale reads, not writes.

Question 4Easy

Multi-leader replication is most useful for:

  1. Making replicas read-only
  2. Systems with a single data centre and one writer
  3. Accepting writes in several data centres locally
  4. Avoiding any possibility of write conflicts between regions

Answer: C. Accepting writes in several data centres locally

Explanation

Each region has a leader for local writes, but concurrent updates to the same data must be resolved.

Step-by-step solution

  1. Multi-leader allows writes at more than one node.
  2. Each data centre has a local leader.
  3. So users write locally with low latency.

Why the other options are wrong

  • A. It does the opposite of read-only.
  • B. It is for multiple sites, not one.
  • D. It actually introduces cross-region write conflicts.

Question 5Medium

A user updates their profile and immediately refreshes, but sees the old data. Reads go to an async replica. This is:

  1. A deadlock between two transactions on the primary
  2. Replication lag breaking read-your-writes
  3. Split brain
  4. A cache stampede

Answer: B. Replication lag breaking read-your-writes

Explanation

Asynchronous replicas trail the leader; routing that user's reads to the leader for a short time fixes it.

Step-by-step solution

  1. Write goes to the primary.
  2. The read goes to an async replica that hasn't received it yet.
  3. This is replication lag violating read-your-writes.

Why the other options are wrong

  • A. No deadlock is described.
  • C. Split brain means two leaders.
  • D. A stampede is many requests hitting DB after cache expiry.

Question 6Medium

Why not just add many synchronous replicas for maximum safety?

  1. Synchronous replicas cannot serve reads
  2. They make the data inconsistent
  3. Replicas cannot be synchronous by design because the network is unreliable
  4. Each write waits for the slowest replica

Answer: D. Each write waits for the slowest replica

Explanation

Synchronous writes are only as fast as the slowest acknowledger, and a stuck replica can block writes.

Step-by-step solution

  1. A synchronous write waits for the replicas to acknowledge.
  2. The write can finish only when the slowest acknowledger replies.
  3. A stuck replica can therefore block writes.
  4. So each write waits for the slowest replica (option D).

Why the other options are wrong

  • A. Synchronous replicas can serve reads; the drawback is write waiting.
  • B. Synchronous replication does not make data inconsistent; it makes writes slower.
  • C. Synchronous replication is possible; the issue is waiting, not design impossibility.

Tip: Many sync replicas raise write latency and make the slowest one a bottleneck.

Question 7Medium

Synchronous vs asynchronous replication:

  1. Sync waits for replica acks before confirming; async does not
  2. Async waits for all replicas; sync waits for none
  3. Sync replication is always faster
  4. Both confirm only after every replica has written the change to disk

Answer: A. Sync waits for replica acks before confirming; async does not

Explanation

Sync gives stronger durability but higher write latency and can block if a replica is slow; async is faster but may lose recent writes on failover.

Step-by-step solution

  1. Synchronous replication waits for replica acknowledgements before confirming a write.
  2. Asynchronous replication confirms the write without waiting.
  3. Sync gives stronger durability and async is faster.
  4. So option A is correct (option A).

Why the other options are wrong

  • B. This is reversed: sync waits for replicas and async does not.
  • C. Sync is usually slower because each write waits for acknowledgements.
  • D. Async confirms without waiting for every replica, so the statement is false.

Tip: Sync = safer but slower; async = faster but may lose recent writes on failover.

Question 8Medium

N = 5 replicas and writes use W = 3. What is the smallest R that guarantees quorum overlap?

  1. 1
  2. 2
  3. 5
  4. 3

Answer: D. 3

Explanation

Need R + W > N, so R > 2, i.e. R = 3.

Step-by-step solution

  1. The overlap condition is R + W > N.
  2. Here N = 5 and W = 3, so R + 3 > 5.
  3. That means R > 2, so the smallest whole number is R = 3.
  4. So the smallest R is 3 (option D).

Why the other options are wrong

  • A. R = 1 gives R + W = 4, which is not greater than 5.
  • B. R = 2 gives R + W = 5, which equals N and does not guarantee overlap.
  • C. R = 5 works but is not the smallest value.

Tip: Find the smallest R from R > N minus W.

Question 9Hard

Monotonic reads guarantee that:

  1. Writes are applied in a single global order across all replicas and regions
  2. All users see the same data at the same moment
  3. A user never sees data go back in time
  4. Reads never hit replicas

Answer: C. A user never sees data go back in time

Explanation

Pinning a user to one replica (or tracking versions) prevents seeing a newer value then an older one.

Step-by-step solution

  1. Monotonic reads means a user's view moves forward only.
  2. Once a user has seen a value, they should not see an older one.
  3. Pinning a user to one replica or tracking versions prevents going back in time.
  4. So monotonic reads means a user never sees data go back in time (option C).

Why the other options are wrong

  • A. A single global write order is a different guarantee.
  • B. Seeing the same data at the same moment is not monotonic reads.
  • D. Monotonic reads say nothing about avoiding replicas.

Tip: Monotonic reads stop a user seeing a newer value and then an older one.

Question 10Hard

Last-write-wins (LWW) conflict resolution has which drawback?

  1. Concurrent writes can be silently discarded
  2. It requires every write to go through one node
  3. It always merges both values into a list that the application must later resolve
  4. It cannot work with timestamps

Answer: A. Concurrent writes can be silently discarded

Explanation

LWW keeps the write with the highest timestamp and drops the rest, so data can be lost without error.

Step-by-step solution

  1. Last-write-wins keeps the write with the highest timestamp.
  2. Concurrent writes are ordered only by timestamp.
  3. The other concurrent writes are dropped with no error.
  4. So the drawback is that concurrent writes can be silently discarded (option A).

Why the other options are wrong

  • B. LWW does not require one node; that is leader-based replication.
  • C. LWW keeps one value and drops the others; it does not merge them into a list.
  • D. LWW uses timestamps, so it does work with them.

Tip: LWW is simple but can silently lose concurrent updates.

Practise all 15 questions free

The full question bank with timed practice, progress tracking and Vidya, your AI tutor. Free, no ads.

Open this topic in the app →

Related topics

See all System Design topics · All topics