MongoDB DBA · 题目 132 · 单选

16. Your replica set is regularly under heavy load and your business analysis team would like to perform analytic queries to track goals. The fields they plan to query on are currently not indexed. What is the best resolution to help them in their job function? Choose the best answer:

题目选项

  1. A.
    Create views that they can query in lieu of running their own aggregations
  2. B.
    Create a separate cluster that syncs from the original cluster every night for analytic queries
  3. C.
    Redesign the schema so the data they plan to query is indexed
  4. D.
    Create specialized indexes for them on a dedicated secondary
  5. E.
    Help them set up an automatic job that runs at 3 AM every Friday

答案置信度:中

正确答案:D

解析语言:中文

分析型查询应在不影响线上主节点读写的前提下运行,最合适的做法是把它们导到专门的从节点(专用/hidden secondary)上并为其建好所需索引(D)。A 建视图不会让未索引字段的聚合变快;B 每天同步一个新集群成本高、数据还滞后一天,不是“帮助他们完成工作”的最优解;C 为分析查询重做线上 schema 代价过大;E 定时跑批只是把问题挪到凌晨,负载依然存在。

所在套题

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

作者 · 作品 · 开源

作者与 MongoDB 作品

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

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

联系作者 ↗mlhp123@outlook.com

支持作者

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

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