MongoDB DBA · Question 52 · Single choice

52. In order to route requests to the correct shards, mongos must know where each of the chunks reside in the sharded cluster. mongos gets this chunk metadata from: Choose the best answer:

Answer options

  1. A.
    the config servers
  2. B.
    the mongod.log file
  3. C.
    the journal
  4. D.
    the shards
  5. E.
    another mongos process

Answer confidence: High

Correct answer: A

Explanation language: Chinese

每个 chunk 的范围及其所在分片记录在 config server 的 config 数据库中,mongos 启动与运行期间从 config server 读取并缓存这些元数据来完成路由。日志、journal 不参与路由,分片自身也不知道其它分片的数据分布,另一个 mongos 也只是同样从 config server 获取信息。

Papers containing this question

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