1.

_________ returns the replica set configuration document.(a) rs.freeze()(b) rs.conf()(c) rs.printReplicationInfo()(d) none of the mentionedI have been asked this question during an interview.This interesting question is from Replication Processes in division Replication Concepts, Processes and Replication Set of MongoDB

Answer»

The CORRECT answer is (b) rs.conf()

Easiest explanation: rs.conf() RETURNS a document that contains the current replica SET CONFIGURATION.



Discussion

No Comment Found

Related InterviewSolutions