C100DBA MongoDB Certified DBA Associate Exam (Based on MongoDB 4.4)

Loading demo links...

Showing 1–3 of 10 questions

Question 1

You perform the following query on the sayings collection, which has the index

{ quote : "text" }:

Assuming the documents below are in the collection, which ones will the following query return? Check all that

apply.

db.sayings.find( { $text : { $search : "fact find" } } )

Select all that apply, then click Submit answer.

  • { _id : 3, quote : "Nobody will ever catch me." }

  • { _id : 1, quote : "That's a fact, Jack." }

  • { _id : 2, quote : "Find out if that fact is correct." }


Question 2

You have the following index on the toys collection:

{

"manufacturer" : 1,

"name" : 1,

"date" : -1

}

Which of the following is able to use the index for the query? Check all that apply.

Select all that apply, then click Submit answer.

  • db.toys.find( { name : "Big Rig Truck", date : "2013-02-01", manufacturer : "Tanko"

  • db.toys.find( { manufacturer : "Matteo", name : "Barbara", date : "2014-07-02" } )

  • db.toys.find( { date : "2015-03-01", manufacturer : "Loggo", name : "Brick Set" } )


Question 3

Which of the following are common uses of the mongo shell? Check all that apply

Select all that apply, then click Submit answer.

  • Perform queries against MongoDB collections

  • Perform administrative tasks

  • Use as a JavaScript framework for your production system