1.

Point out the correct statement.(a) rs.printinfo() prints a formatted report of the replica set member’s oplog(b) The output of rs.printReplicationInfo() is identical to that of db.printReplicationInfo()(c) rs.printReplicationInfo() formats and prints the data returned by db.allReplicationInfo()(d) none of the mentionedI got this question in homework.My question is based upon Replication Processes in section Replication Concepts, Processes and Replication Set of MongoDB

Answer»

Right choice is (B) The output of rs.printReplicationInfo() is IDENTICAL to that of db.printReplicationInfo()

Explanation: The rs.printReplicationInfo() in the MONGO shell does not RETURN JSON.



Discussion

No Comment Found

Related InterviewSolutions