MongoDB MCQ Quiz Hub

MongoDB Mcq Question Set 16

Choose a topic to test your knowledge and improve your MongoDB skills

____ sets the member that this replica set member will sync from, overriding the default sync target selection logic.





✅ Correct Answer: 4

rs.reconfig() provides a wrapper around the ___________ command.





✅ Correct Answer: 2

_____ sets the slaveOk property for the current connection.





✅ Correct Answer: 2

Before mongod creates an oplog, you can specify its size with the __________ option.





✅ Correct Answer: 1

Before mongod creates an oplog, you can specify its size with the __________ option.





✅ Correct Answer: 1

Point out the wrong statement.





✅ Correct Answer: 3

The oplog must translate multi-updates into individual operations in order to maintain ______





✅ Correct Answer: 2

Use _________ from a secondary member and the replication status output to assess the current state of replication.





✅ Correct Answer: 2

Point out the correct statement.





✅ Correct Answer: 2

For a member to sync from another, both members must have the same value for the _________ setting.





✅ Correct Answer: 1

Secondaries apply operations from the primary asynchronously to provide __________ consistency





✅ Correct Answer: 3

When ______________ is true, the mongod instance saves all documents migrated from the shard to the moveChunk directory of the storage.dbPath.





✅ Correct Answer: 2

Replication _______ is a delay between operation on the primary and the application of that operation from the oplog to the secondary.





✅ Correct Answer: 1

A delayed member may show as 0 seconds behind the primary when the inactivity period on the primary is greater than the ________ value.





✅ Correct Answer: 2

______ shut down the mongod instance for one of the non-primary members of your replica set.





✅ Correct Answer: 2

Point out the wrong statement.





✅ Correct Answer: 4

To finish the rolling maintenance operation, step down the primary with the _________ method.





✅ Correct Answer: 2

You also can force a member never to become primary by setting its priority value to ______





✅ Correct Answer: 4

Point out the correct statement.





✅ Correct Answer: 4

A replica set member becomes _________ when its replication process falls so far behind that the primary overwrites oplog entries the member has not yet replicated.





✅ Correct Answer: 1

During initial sync, mongod will remove the content of the _______





✅ Correct Answer: 3

You cannot use a _________backup for the data files, only a snapshot backup.





✅ Correct Answer: 2

You can use the ________ setting in Replica Set Configuration to disable chained replication for situations where chained replication is causing lag.





✅ Correct Answer: 1

For most replica sets, the hostnames in the _________ field never change.





✅ Correct Answer: 2

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





✅ Correct Answer: 1

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





✅ Correct Answer: 2

Point out the correct statement.





✅ Correct Answer: 2

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





✅ Correct Answer: 2

_____ applies a new configuration to an existing replica set.





✅ Correct Answer: 1

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





✅ Correct Answer: 2

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





✅ Correct Answer: 3

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





✅ Correct Answer: 1

The ________ settings of replica set members affect the outcomes of elections for primary.





✅ Correct Answer: 1

Point out the correct statement.





✅ Correct Answer: 1

To modify priorities, you update the members _________ in the replica configuration object.





✅ Correct Answer: 1

The _________ shell method can force the current primary to step down, which causes an election.





✅ Correct Answer: 3

Point out the wrong statement.





✅ Correct Answer: 1

If the oplog is shorter than the slaveDelay window, the _______ member cannot successfully replicate operations.





✅ Correct Answer: 2

_______ members allow you to add additional members for read distribution beyond the maximum seven voting members.





✅ Correct Answer: 2

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





✅ Correct Answer: 2

____ returns basic help text for replica set functions.





✅ Correct Answer: 3

_______ prints a report of the status of the replica set from the perspective of the secondaries.





✅ Correct Answer: 1

MongoDB uses _________ to support deployments with very large data sets and high throughput operations.





✅ Correct Answer: 1

Point out the correct statement.





✅ Correct Answer: 1

How many types of sharding exist in MongoDB?





✅ Correct Answer: 2

____ scaling adds more CPU and storage resources to increase capacity.





✅ Correct Answer: 2

Point out the wrong statement.





✅ Correct Answer: 1

____ divides the data set and distributes the data over multiple servers, or shards.





✅ Correct Answer: 2

MongoDB supports sharding through the configuration of a sharded ______





✅ Correct Answer: 2

How many components are present in sharded cluster?





✅ Correct Answer: 2