1.

A shard key that increases monotonically will not hinder performance if most of your write operations are ____ operations.(a) insert()(b) update()(c) delete()(d) all of the mentionedI got this question in a national level competition.This question is from Sharded Cluster Behavior topic in section Sharding Concepts, Mechanics and Sharded Cluster of MongoDB

Answer»

Correct choice is (B) update()

Best explanation: Generally, choose shard KEYS that have both HIGH CARDINALITY and will distribute write operations across the entire CLUSTER.



Discussion

No Comment Found

Related InterviewSolutions