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.

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

A. shard
B. tag
C. chunk
D. none of the mentioned
Answer» B. tag
2.

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

A. sh.addShardTag()
B. sh.addTag()
C. sh.aShardTag()
D. all of the mentioned
Answer» B. sh.addTag()
3.

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

A. min
B. max
C. maximum
D. minimum
Answer» E.
4.

USE__________TO_ENSURE_THAT_THE_BALANCER_MIGRATES_DOCUMENTS_THAT_EXIST_WITHIN_THE_SPECIFIED_RANGE_TO_A_SPECIFIC_SHARD_.?$

A. sh.addShardTag()
B. sh.addTag()
C. sh.aShardTag()
D. all of the mentioned
Answer» B. sh.addTag()
5.

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

A. shard
B. tag
C. chunk
D. none of the mentioned
Answer» B. tag
6.

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

A. min
B. max
C. maximum
D. minimum
Answer» E.
7.

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

A. tag
B. chunk
C. namespace
D. size
Answer» D. size
8.

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

A. sh.addTagRange()
B. sh.splitFind()
C. sh.Range()
D. all of the mentioned
Answer» B. sh.splitFind()
9.

________ associates a shard with a tag or identifier.

A. sh.collects()
B. sh.addShardTag
C. sh.results()
D. all of the mentioned
Answer» C. sh.results()
10.

_________ is used to remove tags from a particular shard.

A. sh.removeTag()
B. sh.removeShard()
C. sh.removeShardTag()
D. all of the mentioned
Answer» D. all of the mentioned
11.

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

A. boolean
B. jumbo
C. change
D. all of the mentioned
Answer» C. change