1.

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 mentionedThe question was posed to me during an online interview.I would like to ask this question from Troubleshooting Sharded Cluster topic in chapter Sharding Concepts, Mechanics and Sharded Cluster of MongoDB

Answer» CORRECT choice is (a) sh.addTagRange()

To explain I WOULD say: You may delete tag assignment from a shard KEY range by removing the CORRESPONDING DOCUMENT from the tags collection of the config database.


Discussion

No Comment Found

Related InterviewSolutions