1.

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 mentionedI got this question during an online exam.The origin of the question is Cluster Deployment in portion Sharding Concepts, Mechanics and Sharded Cluster of MongoDB

Answer»

Correct answer is (b) shardCollection()

EASY EXPLANATION: MongoDB provides no method to deactivate sharding for a COLLECTION after calling shardCollection.



Discussion

No Comment Found

Related InterviewSolutions