Explore topic-wise MCQs in Mongodb.

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

1.

__________ explicitly override the default logic for selecting a member to replicate from.

A. replSetSyncFrom
B. resync
C. applyOps
D. isMaster
Answer» B. resync
2.

_______ is an internal command that applies oplog entries to the current data set.

A. replSetSyncFrom
B. resync
C. applyOps
D. isMaster
Answer» D. isMaster
3.

Which of the command is for master-slave replication only?

A. replSetSyncFrom
B. resync
C. applyOps
D. isMaster
Answer» C. applyOps
4.

________IS_AN_INTERNAL_COMMAND_THAT_APPLIES_OPLOG_ENTRIES_TO_THE_CURRENT_DATA_SET.?$

A. replSetSyncFrom
B. resync
C. applyOps
D. isMaster
Answer» D. isMaster
5.

___________explicitly_override_the_default_logic_for_selecting_a_member_to_replicate_from.$

A. replSetSyncFrom
B. resync
C. applyOps
D. isMaster
Answer» B. resync
6.

Which of the command is for master-slave replication only ?

A. replSetSyncFrom
B. resync
C. applyOps
D. isMaster
Answer» C. applyOps
7.

________ applies a new configuration to an existing replica set.

A. replSetReconfig
B. replSetMaintenance
C. replSetStepDown
D. all of the mentioned
Answer» B. replSetMaintenance
8.

When enabled replSetMaintenance: true, the member enters the ________ state.

A. REPLICATING
B. RECOVERING
C. STALE
D. All of the mentioned
Answer» C. STALE
9.

__________ enables or disables a maintenance mode, which puts a secondary node in a RECOVERING state.

A. replSetReconfig
B. replSetMaintenance
C. replSetStepDown
D. all of the mentioned
Answer» C. replSetStepDown
10.

________ returns a document that reports on the status of the replica set.

A. replSetGetStatus
B. replSetFreeze
C. replSetInitiate
D. all of the mentioned
Answer» B. replSetFreeze
11.

_________ prevents the current member from seeking election as primary for a period of time.

A. replSetGetStatus
B. replSetFreeze
C. replSetInitiate
D. all of the mentioned
Answer» C. replSetInitiate