54. In a sharded collection, which of the following is true of the primary shard? Check all that apply:
题目选项
- A.Is responsible for handling shard merge operations on all find queries
- B.Holds all chunks metadata of the sharded collections.
- C.Is responsible for routing query requests for the remaining shards
- D.Each sharding enabled database has its own primary shard
- E.Holds all non-sharded collections within a sharding enabled database
答案置信度:高
正确答案:D、E
解析语言:中文
一是每个启用分片的数据库各自拥有一个 primary shard(D);二是该库中未分片的集合都放在 primary shard 上(E)。元数据保存在 config server(B 错),查询路由由 mongos 完成(C 错),A 描述的跨分片结果合并同样是 mongos 的职责。