Free C100DBA Exam Braindumps (page: 13)

Page 12 of 34

Which of the following operator can be used to limit the number of documents in an array field of a document after an update is performed?

  1. $arrayLimit
  2. $push along with $each, $sort and $slice
  3. $removeFromSet
  4. None of the above

Answer(s): B



Which mongodb tools allow us to work with our data in a human readable format?

  1. mongoexport
  2. mongostat
  3. mongoimport
  4. mongodump

Answer(s): A,C



Write the command(s) are correct to enable sharding on a database "testdb" and shard a collection "testCollection" with _id as shard key.

  1. sh.enableSharding("testdb") & sh.shardCollection("testdb.testCollection", {_id : 1 }, true )

Answer(s): A



Which of the following is true about aggregation framework?

  1. Each aggregation operator need to return atleast one of more documents as a result
  2. the aggregate command operates on a multiple collection
  3. A single aggregation framework operator can be used more than once in a query
  4. Pipeline expressions are stateless except accumulator expressions used with $group operator

Answer(s): A,C,D






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

C100DBA Discussions & Posts