MongoDB card reviewhard

What is a shard key in MongoDB?

A shard key determines how MongoDB distributes documents across shards. A good shard key provides even data distribution and supports efficient queries. Choosing a poor shard key can create performance bottlenecks.

JB

Jeevan Bhargav

Audited by Creator

This answer is calibrated for technical interviews. Verify benchmarks in local sandboxes before deploying.