MongoDB DBA · Question 235 · Multiple choice

13. What would be good reasons for creating an index on a secondary node of a replica set? Check all that apply:

Answer options

  1. A.
    improve efficiency of queries on the whole replica set
  2. B.
    running reporting queries
  3. C.
    running analytics queries

Answer confidence: High

Correct answer: B, C

Explanation language: Chinese

在从节点上建索引,目的就是让该节点承担报表类和分析类查询,把这类重读负载以及它专属的索引需求从主节点上剥离出来。A 不成立:只在一台从节点上建索引只会影响被路由到该节点的查询,不会“提升整个副本集”的查询效率。

Papers containing this question

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.

AUTHOR · PROJECTS · OPEN SOURCE

Author & MongoDB projects

Building data platforms, MongoDB migration and sync tools, and cloud operations products.

Contact the author for any MongoDB needs.

Contact the author ↗mlhp123@outlook.com

Support the author

If this question bank helps you, optional donations are welcome.

Scan with Alipay to support the authorOpen full-size donation image ↗