Explore topic-wise MCQs in Testing Subject.

This section includes 657 Mcqs, each offering curated multiple-choice questions to sharpen your Testing Subject knowledge and support exam preparation. Choose a topic below to get started.

1.

Remove the secondary from the replica set by calling ___________ method.

A. rs.removeRepli()
B. rs.remove()
C. rs.removeset()
D. isMaster
Answer» C. rs.removeset()
2.

______ returns basic help text for replica set functions.

A. rs.printSlaveReplicationInfo()
B. rs.printReplication()
C. rs.help()
D. all of the mentioned
Answer» D. all of the mentioned
3.

When a replica set has one and only one primary, reads from that primary provide ______ consistency.

A. strict
B. partial
C. weak
D. all of the mentioned
Answer» B. partial
4.

When a primary does not communicate with the other members of the set for more than ____ seconds, the replica set will attempt to select another member to become the new primary.

A. 10
B. 20
C. 30
D. None of the mentioned
Answer» B. 20
5.

A _______ set is a group of mongod instances that host the same data set.

A. copy
B. sorted
C. radii
D. replica
Answer» E.
6.

An arbiter will always be an arbiter whereas a primary may step down and become a secondary and a _________ may become the primary during an election.

A. center
B. secondary
C. primary
D. none of the mentioned
Answer» C. primary
7.

You may add an extra mongod instance to a replica set as an __________

A. arbiter
B. replicator
C. additor
D. all of the mentioned
Answer» B. replicator
8.

To support replication, the primary records all changes to its data sets in its _______

A. oplog
B. adlog
C. log
D. none of the mentioned
Answer» B. adlog