Which TWO of the following conditions must be met for a replica set member to be eligible to become a primary?
Trap 1: The member must be the node with the highest amount of storage…
Storage allocation is unrelated to election eligibility. MongoDB elections are based on data freshness and the voting protocol. A node with significantly more data but a lagging oplog synchronization status would still be ineligible, as the protocol prioritizes nodes that possess the most recent, consistent state of the database.
Trap 2: The member must have at least 50% of the total disk space available.
Disk capacity requirements are not part of the election protocol. While sufficient disk space is necessary for the node to function correctly and receive replication updates, the election algorithm evaluates oplog position and network visibility, not the underlying hardware resource availability or remaining capacity of the storage volumes.
Trap 3: The member must be running a different OS than the current primary.
Heterogeneous operating system environments are supported in MongoDB, but they have no bearing on election eligibility. Consistency is maintained through the replication protocol, which operates at the application level. Whether nodes run on Linux, Windows, or macOS, the election logic remains identical across all supported platforms within the set.
- A
The member must have a priority value greater than zero.
A member with priority 0 is a passive member and is explicitly barred from participating in elections or becoming a primary. While priority 0 nodes can serve read requests or act as disaster recovery targets, they lack the administrative privilege required to orchestrate write operations within the replica set.
- B
The member must be the node with the highest amount of storage allocated.
Why it fails: Storage allocation is unrelated to election eligibility. MongoDB elections are based on data freshness and the voting protocol. A node with significantly more data but a lagging oplog synchronization status would still be ineligible, as the protocol prioritizes nodes that possess the most recent, consistent state of the database.
- C
The member must be able to communicate with a majority of the replica set nodes.
To prevent split-brain scenarios, a candidate must receive votes from a majority of the replica set. If a node cannot communicate with the majority, it cannot achieve the necessary quorum to win an election, even if it is otherwise perfectly healthy and up to date with the oplog data.
- D
The member must have at least 50% of the total disk space available.
Why it fails: Disk capacity requirements are not part of the election protocol. While sufficient disk space is necessary for the node to function correctly and receive replication updates, the election algorithm evaluates oplog position and network visibility, not the underlying hardware resource availability or remaining capacity of the storage volumes.
- E
The member must be running a different OS than the current primary.
Why it fails: Heterogeneous operating system environments are supported in MongoDB, but they have no bearing on election eligibility. Consistency is maintained through the replication protocol, which operates at the application level. Whether nodes run on Linux, Windows, or macOS, the election logic remains identical across all supported platforms within the set.