What happens to the replica set if a majority of voting members are permanently lost?
Without a majority, the remaining nodes cannot achieve consensus for write operations. To prevent split-brain and maintain consistent data, the replica set stops accepting writes. This ensures that no data is committed until the cluster can confirm that a quorum of nodes has successfully processed the operation.
Why this answer
A replica set requires a majority of its voting members to be online to elect a new primary and perform write operations with majority concern. If the majority is lost, the remaining nodes enter a read-only state, as they cannot reach consensus. This is a critical failure scenario that requires immediate administrative intervention, such as reconfiguring the set or restoring the failed nodes.
Exam trap
Candidates incorrectly assume the replica set remains fully functional as long as one node is alive, ignoring the requirement for a majority to maintain cluster consistency.