Free C100DBA Exam Braindumps
MongoDB Associate Database Administrator Questions 56–60 (page: 13)

Updated On: 9-Feb-2026

You are comparing values of different BSON types in mongodb. You want to compare from lowest to highest. Which comparison order is used?

  1. MinKey, Null, Numbers,Symbol, String,Object,Array,BinData
  2. MinKey, Null, Numbers,Object,Array,BinData,Symbol, String
  3. Object/Array^inData/Symbol,MinKey, Null, Numbers,String
  4. Objec^Array^inData,Symbol, String,MinKey, Null, Numbers

Answer(s): A



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.

  1. db.test.find( { a: 5, b: 3 } ).sort( { c: 1, d : 1 } )
  2. db.test.find( { a: 5, b: 3 } ).sort( { a: 1} )
  3. db.test.find( { a: 5, b: 3 } ).sort( { a: 1, b: 1, c: 1 > )
  4. db.test.find( { a: 5, b: 3 } ).sort( {c: 1 } )

Answer(s): A,D



Which of the following is incorrect statement about find and findOne operations in MongoDB?

  1. findQ returns all the documents in a collection while findOne() retrieves only the first one.
  2. find.limit(l) is not the same query as findOne()
  3. findOneQ returns the actual first document retrieved from a collection
  4. findQ and findOneQ returns cursors to the collection documents

Answer(s): D



Which of the following aggregate commands in MongoDB uses a pipeline approach with the goals of improving the aggregation performance?

  1. mapReduce
  2. group
  3. aggregate
  4. All of the above

Answer(s): C



`$set' sets the value of

  1. Code block
  2. Name/value pair
  3. Key
  4. None of the above

Answer(s): C



Viewing page 13 of 28
Viewing questions 61 - 65 out of 161 questions


Post your Comments and Discuss MongoDB C100DBA exam prep with other Community members:

AI Tutor AI Tutor 👋 I’m here to help!