MongoDB DBA · Question 169 · Multiple choice

54. In a sharded collection, which of the following is true of the primary shard? Check all that apply:

Answer options

  1. A.
    Is responsible for handling shard merge operations on all find queries
  2. B.
    Holds all chunks metadata of the sharded collections.
  3. C.
    Is responsible for routing query requests for the remaining shards
  4. D.
    Each sharding enabled database has its own primary shard
  5. E.
    Holds all non-sharded collections within a sharding enabled database

Answer confidence: High

Correct answer: D, E

Explanation language: Chinese

一是每个启用分片的数据库各自拥有一个 primary shard(D);二是该库中未分片的集合都放在 primary shard 上(E)。元数据保存在 config server(B 错),查询路由由 mongos 完成(C 错),A 描述的跨分片结果合并同样是 mongos 的职责。

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 ↗