1.

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 mentionedThis question was addressed to me during an interview.This interesting question is from Troubleshooting Sharded Cluster topic in section Sharding Concepts, Mechanics and Sharded Cluster of MongoDB

Answer»

The CORRECT choice is (a) sh.addShardTag()

EXPLANATION: Only ISSUE sh.addTagRange() when connected to a mongos instance.



Discussion

No Comment Found

Related InterviewSolutions