nerdexam
MongoDB

C100DBA · Question #33

Which type of indexes does MongoDB support?

The correct answer is A. All of the above. Option A ("All of the above") is correct because MongoDB natively supports all three index types listed: Compound Indexes, Multikey Indexes, and Geospatial Indexes, along with several others (text, hashed, wildcard, etc.). Options B, C, and D are not wrong on their own - each…

Performance Tuning

Question

Which type of indexes does MongoDB support?

Options

  • AAll of the above
  • BCompound Indexes
  • CMultikey Indexes
  • DGeospatial Indexes

How the community answered

(33 responses)
  • A
    88% (29)
  • B
    6% (2)
  • C
    3% (1)
  • D
    3% (1)

Explanation

Option A ("All of the above") is correct because MongoDB natively supports all three index types listed: Compound Indexes, Multikey Indexes, and Geospatial Indexes, along with several others (text, hashed, wildcard, etc.). Options B, C, and D are not wrong on their own - each correctly names a real MongoDB index type - but they are "distractors" because choosing any single one ignores the others, making them incomplete answers. The trick in this question is recognizing that since B, C, and D are all valid, "All of the above" is the most accurate and complete choice.

Memory tip: Think of MongoDB as an index buffet - it supports many index types to handle diverse query patterns (multi-field, array fields, location data). Whenever you see a "which indexes does MongoDB support?" question and multiple correct options are listed, default to "All of the above" unless you can identify one that MongoDB doesn't support.

Topics

#indexes#compound index#multikey index#geospatial index

Community Discussion

No community discussion yet for this question.

Full C100DBA Practice