MongoDB DBA · 题目 174 · 多选

59. Consider a sharded collection that uses a hashed shard key. Which of the following is true regarding queries and new document inserts on this collection? Check all that apply:

题目选项

  1. A.
    New document inserts are more likely to be evenly distributed among shards.
  2. B.
    Queries using the shard key must use at least one additional key-value pair.
  3. C.
    Range queries on the shard key are more likely to be Broadcast Operations.

答案置信度:高

正确答案:A、C

解析语言:中文

哈希分片键把字段值哈希后再分布,新插入的文档更容易均匀落到各分片(A);但哈希破坏了值的顺序性,对分片键做范围查询无法定位 chunk,只能作为广播操作(C)。B 错误:哈希分片键上单字段的等值查询仍可定向路由,不需要再附加其它字段。

所在套题

此题在题库中有 3 条记录。公开详情合并相同题干和选项;完整公开题展示置信度最高的一条记录,其他题目仅展示摘要。按套学习保留每条记录原有的答案、解析和置信度。

作者 · 作品 · 开源

作者与 MongoDB 作品

专注数据平台、MongoDB 迁移同步与云运维产品研发。

有任何 MongoDB 需求,均可联系作者。

联系作者 ↗mlhp123@outlook.com

支持作者

如果题库对您有帮助,欢迎自愿扫码打赏。

支付宝扫码打赏作者打开打赏原图 ↗