MongoDB
C100DBA · Question #96
Which of the following index would be optimum for the query? Select all valid. db.test.find( { a : 5, c : 2 })
Sign in or unlock C100DBA to reveal the answer and full explanation for question #96. The question stem and answer options stay visible for context.
Performance Tuning
Question
Which of the following index would be optimum for the query? Select all valid. db.test.find( { a : 5, c : 2 })
Options
- Adb.test.ensurelndex( { c:l, a: 1})
- Bdb.test.ensurelndex( { a : 1, c: 1, d: 1, b : 1})
- CCH db.test.ensurelndex( { a :1, c:l})
- Ddb.test.ensurelndex( { a: 1, b :1, c:l, d:l})
Unlock C100DBA to see the answer
You've previewed enough free C100DBA questions. Unlock C100DBA for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#index selection#compound index#query optimization#ensureIndex