MongoDB DBA · Question 535 · Multiple choice

55. Which of the following is/are true when refining an existing shard key? Check all that apply:

Answer options

  1. A.
    immediately triggers a distribution of chunks across shards or zones to match the new shard key ranges.
  2. B.
    can add a suffix field or fields to an existing key.
  3. C.
    allows for more granular data distribution where the existing key has insufficient cardinality.
  4. D.
    requires the documents have the field or all of the fields being used to refine the shard key.

Answer confidence: High

Correct answer: B, C, D

Explanation language: Chinese

细化分片键(refineCollectionShardKey)只能给已有分片键追加后缀字段,并要求文档都含有这些字段,目的是提升基数、让数据分布更细,故 A、B、D 对。C 错:细化不会立即触发 chunk 重分布,还需要后续 balancer(或手工)按新键范围搬移数据。

Papers containing this question

This question appears in 1 bank records. Public pages combine identical prompts and options. Selected questions display the highest-confidence record; the others show a short preview. Paper-based learning preserves each record's answer, explanation, and confidence.

AUTHOR · PROJECTS · OPEN SOURCE

Author & MongoDB projects

Building data platforms, MongoDB migration and sync tools, and cloud operations products.

Contact the author for any MongoDB needs.

Contact the author ↗mlhp123@outlook.com

Support the author

If this question bank helps you, optional donations are welcome.

Scan with Alipay to support the authorOpen full-size donation image ↗