1.

The _________ shell method can force the current primary to step down, which causes an election.(a) rs.repliconfig()(b) rs.config()(c) rs.reconfig()(d) all of the mentionedThis question was posed to me in an interview.My query is from Member Configuration topic in chapter Replication Concepts, Processes and Replication Set of MongoDB

Answer»

Right option is (c) rs.reconfig()

The BEST explanation: When the PRIMARY steps down, the mongod closes all CLIENT CONNECTIONS.



Discussion

No Comment Found

Related InterviewSolutions