1.

_________ re-configures a replica set by applying a new replica set configuration object.(a) rs.reconfig()(b) rs.remove()(c) rs.stepDown()(d) none of the mentionedI had been asked this question in a job interview.Question is taken from Replication Processes topic in portion Replication Concepts, Processes and Replication Set of MongoDB

Answer» CORRECT option is (a) rs.reconfig()

EXPLANATION: To reconfigure an existing replica set, first retrieve the CURRENT configuration with rs.conf(), modify the configuration DOCUMENT as NEEDED, and then pass the modified document to rs.reconfig().


Discussion

No Comment Found

Related InterviewSolutions