Free C100DBA Exam Braindumps (page: 15)

Page 15 of 34

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



Page 15 of 34



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

Arun commented on July 10, 2024
very usefull
INDIA
upvote

Dowain commented on July 06, 2024
Passing the exam is really made easy with this study package.
Anonymous
upvote

Abby commented on July 06, 2024
You guys are wonderful. The IT guides helped me so much in preparing for my exam. Save a ton of time. I can watch the football games now. Go France Go!
France
upvote