adplus-dvertising
frame-decoration

Question

If the collection is empty then MongoDB will create the index as part of the ________

a.

shardCollectionkey()

b.

shardCollection()

c.

keyCollection()

d.

all of the mentioned

Answer: (b).shardCollection()

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. If the collection is empty then MongoDB will create the index as part of the ________

Similar Questions

Discover Related MCQs

Q. Changing the _______ option will change the port that mongod listens for incoming connections on.

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

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

Q. Point out the correct statement.

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

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

Q. Point out the wrong statement.

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

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

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

Q. The mergeChunks command requires at least _______ empty input chunk.

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

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

Q. Point out the correct statement.

Q. _________ is used to remove tags from a particular shard.

Q. ________ associates a shard with a tag or identifier.

Q. Point out the wrong statement.

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

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

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