Free C100DBA Exam Braindumps (page: 17)

Page 16 of 34

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" } } )

  1. { _id : 3, quote : "Nobody will ever catch me." }
  2. { _id : 1, quote : "That's a fact, Jack." }
  3. { _id : 2, quote : "Find out if that fact is correct." }

Answer(s): B,C



What tool would you use if you want to save a gif file in mongo?

  1. mongofile
  2. Mongoperf

Answer(s): A



Which option can be used with update command so that a new document gets created if no matching document is found based on the query condition?

  1. upsert command instead of update command
  2. This has to be handled in application code (Node.js, PHP, JAVA, C#, etc.) and cannot be handled in mongo shell query
  3. {update: true, insert: true} as the third parameter of update command
  4. Specify {upsert : true } as the third parameter of update command

Answer(s): D



What is the maximum size of a MongoDB document

  1. 16 MB
  2. 12 MB
  3. 2 MB
  4. There is no maximum size. It depends on the RAM.

Answer(s): A






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

C100DBA Discussions & Posts