nerdexam
MongoDB

C100DBA · Question #107

Below is a sample document in a given collection test. { a : 5, b : 3, c: 2, d : 1 > Given a compound index { a: 1, b:l, c:l, d:l}, Which of the below query will not use in-memory sorting? Select all

Sign in or unlock C100DBA to reveal the answer and full explanation for question #107. The question stem and answer options stay visible for context.

Performance Tuning

Question

Below is a sample document in a given collection test. { a : 5, b : 3, c: 2, d : 1 > Given a compound index { a: 1, b:l, c:l, d:l}, Which of the below query will not use in-memory sorting? Select all valid.

Options

  • Adb.test.find( { a: 5, b: 3 } ).sort( { c: 1, d : 1 } )
  • Bdb.test.find( { a: 5, b: 3 } ).sort( { a: 1} )
  • Cdb.test.find( { a: 5, b: 3 } ).sort( { a: 1, b: 1, c: 1 > )
  • Ddb.test.find( { a: 5, b: 3 } ).sort( {c: 1 } )

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

#compound index#in-memory sort#index prefix#query optimization
Full C100DBA Practice