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:
题目选项
- A.mongo client
- B.mongod
- C.mongos
- D.config server
- E.primary node
答案置信度:高
正确答案:C
解析语言:中文
mongos 是分片集群的路由层:它根据 config server 上的 chunk 元数据把查询转发到持有目标文档的分片(无法定位时广播),并在需要时归并结果返回给客户端。mongod 只处理本分片范围内的数据,config server 只提供元数据、不参与业务查询的路由。