Answers are AI-generated. Review them carefully with the confidence label.
MongoDB DBA · Question 55 · Single choice
55. When querying a sharded cluster, which component of the cluster routes the query to the shard that contains the document that the query is looking for?
Choose the best answer:
Answer options
A.
mongo client
B.
mongod
C.
mongos
D.
config server
E.
primary node
Answer confidence: High
Correct answer: C
Explanation language: Chinese
mongos 是分片集群的路由层:它根据 config server 上的 chunk 元数据把查询转发到持有目标文档的分片(无法定位时广播),并在需要时归并结果返回给客户端。mongod 只处理本分片范围内的数据,config server 只提供元数据、不参与业务查询的路由。
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.