All Questions
Cap Theorem hard

In a CP system, if a leader is partitioned from the majority but still visible to clients, it must stop accepting writes. How does it know to stop?

  1. A The leader utilizes an internal heartbeat signal to ping the Witness node and confirm that the primary network link is still active.
  2. B It fails to receive heartbeats from a majority of followers; without a Quorum, it cannot commit new writes and must step down.
  3. C The database process identifies the network failure and automatically enters a strictly Read-Only maintenance mode at the OS level.
  4. D The client application identifies that the node is no longer part of the majority cluster and sends a 'Halt' command to the leader.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions