MongoDB DEV · Question 93 · Multiple choice

In MongoDB, Multikey Indexes are used to index a field that holds an array value. Which of the following is true about Multikey Indexes? Check all that apply:

Answer options

  1. A.
    They contain one index key value per element in the array indexed.
  2. B.
    They cannot be created using the createIndex operation.
  3. C.
    They can be used for sorting.

Answer confidence: Medium

Correct answer: A, C

Explanation language: Chinese

A 是 multikey 索引的定义:数组字段的每个元素都会生成一个索引键(同一文档因此可能出现多条索引记录)。B 错:multikey 索引不需要特殊语法,用 createIndex 对数组字段建普通索引就会自动成为 multikey。C 成立:multikey 索引虽然不能覆盖(cover)查询、对数组字段本身的排序也有额外限制,但它在受支持的排序模式下仍可用来提供顺序,所以本题 A、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 ↗