nerdexam
MongoDB

C100DBA · Question #3

What is the first task that a secondary would perform on being prompted by another secondary for an election?

The correct answer is D. Connect to primary to confirm its availability. When a secondary receives an election prompt from a peer, its first responsibility is to independently verify whether the primary is actually unreachable - this prevents unnecessary elections triggered by network partitions or false alarms that only affect one node. Option D is…

Replication

Question

What is the first task that a secondary would perform on being prompted by another secondary for an election?

Options

  • AStart the election process for primary
  • BVote for the first secondary so that it would become the next primary
  • CVote for itself and then call for election
  • DConnect to primary to confirm its availability

How the community answered

(29 responses)
  • A
    10% (3)
  • B
    3% (1)
  • C
    3% (1)
  • D
    83% (24)

Explanation

When a secondary receives an election prompt from a peer, its first responsibility is to independently verify whether the primary is actually unreachable - this prevents unnecessary elections triggered by network partitions or false alarms that only affect one node. Option D is correct because a secondary should not blindly participate in an election without confirming the primary's unavailability from its own perspective.

Why the distractors are wrong:

  • A is the role of the initiating secondary, not the one being prompted - it already started the process.
  • B skips the verification step entirely; voting without confirming the primary is down could disrupt a healthy cluster.
  • C confuses the prompted secondary with the candidate; only the secondary seeking election votes for itself.

Memory tip: Think of it as a "second opinion" rule - before joining any election, a secondary must personally check if the primary is gone, just like a voter verifying an office is truly vacant before holding a new election.

Topics

#election process#replica set#secondary node#primary availability

Community Discussion

No community discussion yet for this question.

Full C100DBA Practice