MongoDB DBA · Question 171 · Multiple choice

56. Which of the following are factors for fields that should influence a shard key value? Check all that apply:

Answer options

  1. A.
    High cardinality, lots of unique possible values.
  2. B.
    Low cardinality, few unique possible values.
  3. C.
    High frequency, lots of repetition of the possible values.
  4. D.
    Low frequency, only a few or no repetition of the possible values.

Answer confidence: High

Correct answer: A, D

Explanation language: Chinese

理想的分片键要高基数(A:取值足够多,chunk 才能继续切分)且低频(D:同一取值重复少,不会形成热点)。低基数会导致无法再分裂的巨型 chunk(B 错),高频次会造成读写热点、负载不均(C 错)。

Papers containing this question

This question appears in 3 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 ↗