Chapter 2: Replication - Failover and elections quiz

Hello people

I’m after some advice here, in relation to the Chapter 2: Replication - Failover and elections quiz, one of the statements is as follows:
Elections can take place anytime while the primary is available.

I chose this statement as correct, and my reasoning is as follows:
The lecture talks about a replica set with 3 nodes, with one of the secondary nodes going offline - This will result in two nodes, one being the primary, and the other the remaining secondary. The lecture goes on to explain that under this scenario, elections continue to happen. In the case where we lose the other secondary node, there is only one node left, which becomes a secondary. Hence there will be no primary in the case where there is only one node. I realise that the “primary” database might still be available, however, in this scenario it would have been changed to a secondary.

Maybe the statement needs rewording?

Thanks for your time.

Hi @Tom_49435,

Thanks for your feedback. I will sync with the team and see if we can rephrase it to make it more clear.

Please let me know if you have any other query/concern.

Shubham Rajan
Curriculum Support Engineer

1 Like