MongoDB DBA · Question 12 · Multiple choice

12. Compared with a single-field index, a compound index: Check all that apply:

Answer options

  1. A.
    can be more selective, examining fewer documents in order to fulfill search criteria.
  2. B.
    allows for covered queries more often than a single-field index.
  3. C.
    can be used just like a single-field index on the first field of the index.

Answer confidence: High

Correct answer: A, B, C

Explanation language: Chinese

复合索引字段更多,通常选择性更强、能用索引边界筛掉更多文档(A);索引中包含的字段越多,越容易满足"查询过滤与投影字段全在索引里"的覆盖查询(B);按最左前缀原则,它也能当首字段的单字段索引来用(C)。所以三项都成立。

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 ↗