MongoDB MCQ Quiz Hub

MongoDB Mcq Question Set 18

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

The _______ collection holds documents for each tagged shard key range in the cluster.





✅ Correct Answer: 1

Split empty chunks in your collection by manually performing the ______ command on chunks.





✅ Correct Answer: 2

Point out the correct statement.





✅ Correct Answer: 1

MongoDB provides the _________ command to combine contiguous chunk ranges into a single chunk.





✅ Correct Answer: 3

Use ________ to determine the current chunk ranges across the cluster.





✅ Correct Answer: 2

Point out the wrong statement.





✅ Correct Answer: 4

______ splits the chunk that contains the shard key value specified by the query at the chunk’s median point.





✅ Correct Answer: 2

_____ splits a chunk at the shard key value specified by the query.





✅ Correct Answer: 4

sh.splitFind () Splits the chunk that contains the shard key value specified by the query at the chunk’s ______ point.





✅ Correct Answer: 3

The mergeChunks command requires at least _______ empty input chunk.





✅ Correct Answer: 1

The chunkSize and ________ options, passed at startup to the mongos, do not affect the chunk size after you have initialized the cluster.





✅ Correct Answer: 2

The preferred way to clear the _________ flag from a chunk is to attempt to split the chunk.





✅ Correct Answer: 2

Point out the correct statement.





✅ Correct Answer: 1

____ is used to remove tags from a particular shard.





✅ Correct Answer: 3

_____ associates a shard with a tag or identifier.





✅ Correct Answer: 2

Point out the wrong statement.





✅ Correct Answer: 2

To assign a tag to a range of shard keys use the _________ method when connected to a mongos instance.





✅ Correct Answer: 1

Each document in the tags holds the ________ of the sharded collection and a minimum shard key value.





✅ Correct Answer: 3

Which of the following parameter represents minimum value of the shard key range to include in the tag?





✅ Correct Answer: 4

Use ________ to ensure that the balancer migrates documents that exist within the specified range to a specific shard.





✅ Correct Answer: 1

Which of the following parameter denotes name of the shard from which to remove a tag?





✅ Correct Answer: 1

____ runs a database command against the admin database of a mongos instance.





✅ Correct Answer: 2

Point out the correct statement.





✅ Correct Answer: 1

____ tests to see if the mongo shell is connected to a mongos instance.





✅ Correct Answer: 1

____ reports on the active balancer lock, if it exists.





✅ Correct Answer: 3

Point out the wrong statement.





✅ Correct Answer: 4

_____ reports on the last chunk migration.





✅ Correct Answer: 3

_____ removes an association between a range shard keys and a shard tag.





✅ Correct Answer: 1

______ disable balancing on a single collection in a sharded database.





✅ Correct Answer: 3

_____ activates the sharded collection balancer process if previously disabled using sh.disableBalancing().





✅ Correct Answer: 1

_____ returns a boolean to report if the balancer is currently enabled.





✅ Correct Answer: 3

____ enables the balancer and waits for balancing to start.





✅ Correct Answer: 2

Point out the correct statement.





✅ Correct Answer: 1

____ waits for a change in ping state from one of the mongos in the sharded cluster.





✅ Correct Answer: 3

____ forces an update to the cluster metadata cached by a mongos.





✅ Correct Answer: 3

Point out the wrong statement.





✅ Correct Answer: 4

Which of the following command that validates index on shard key?





✅ Correct Answer: 1

Which of the following command is used to determine split points?





✅ Correct Answer: 1

You can only issue listShards against the ________ database.





✅ Correct Answer: 2

______ is an internal command that supports the sharding functionality.





✅ Correct Answer: 2

_____ command verifies that a process is a mongos.





✅ Correct Answer: 2

Which of the following is not a feature for NoSQL databases?





✅ Correct Answer: 2

Which of the following statement is correct with respect to mongoDB?





✅ Correct Answer: 1

Which of the following is/are feature of mongoDB?





✅ Correct Answer: 3

Which of the following represent column in mongoDB?





✅ Correct Answer: 4

The system generated _id field is?





✅ Correct Answer: 1

Which of the following true about mongoDB?





✅ Correct Answer: 4

Collection is a group of MongoDB ______?





✅ Correct Answer: 2

A developer want to develop a database for LFC system where the data stored is mostly in similar manner. Which database should use?





✅ Correct Answer: 2

Documents in the same collection do not need to have the same set of fields or structure, and common fields in a collection's documents may hold different types of data is known as ?





✅ Correct Answer: 1