1.

Hashed shard keys use a ________ index of a single field as the shard key to partition data across your sharded cluster.(a) hashed(b) unique(c) multkikey(d) all of the mentionedI had been asked this question in an online interview.My question is based upon Sharded Cluster Behavior in chapter Sharding Concepts, Mechanics and Sharded Cluster of MongoDB

Answer»

Correct option is (a) HASHED

Explanation: The field you choose as your hashed shard KEY should have a good cardinality, or large NUMBER of different VALUES.



Discussion

No Comment Found

Related InterviewSolutions