1.

________ associates a shard with a tag or identifier.(a) sh.collects()(b) sh.addShardTag(c) sh.results()(d) all of the mentionedThis question was addressed to me in unit test.The origin of the question is Troubleshooting Sharded Cluster topic in division Sharding Concepts, Mechanics and Sharded Cluster of MongoDB

Answer»

Correct answer is (b) sh.addShardTag

For explanation I would say: MongoDB uses these identifiers to direct CHUNKS that fall within a tagged RANGE to specific shards.



Discussion

No Comment Found

Related InterviewSolutions