Free C100DBA Exam Braindumps (page: 7)

Page 6 of 34

What is the replication factor for a replicated cluster with 1 primary, 3 secondaries with one of them hidden. The set also has an arbiter?

  1. None of the above
  2. 5
  3. 3
  4. 4

Answer(s): D



Which operations add new documents to a collection?

  1. Create
  2. update
  3. insert
  4. delete

Answer(s): A,C



Consider that you have a collection called population which has fields state and city. Which of the following query will calculate the population grouped by state and city?

  1. db.population.aggregate( [{ $group: { _id: { state: "$state", city; "$city" },pop: { $sum: 1 > > >] )
  2. db.population.aggregate( [{ $group: { _id: { state: Estate", city: "$city" },pop: { $pop: 1 } } }] )
  3. db.population.aggregate( [{ $group: { _id: { state: Estate", city: n$city" },pop: { $sum:
    "$pop" } } }] )
  4. db.population.aggregate( [{ $group: { _id: { city: "$city" },pop: { $sum: "$pop" } } }] )Multi Document Transaction is not supported by MongoDB

Answer(s): C



Which of the following is true about sharding?

  1. Creating a sharded key automatically creates an index on the collection using that key
  2. We cannot change a shard key directly/automatically once it is set up
  3. A sharded environment does not support sorting functionality since the documents lie on various mongod instances
  4. Sharding is enabled at the database level

Answer(s): B






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

C100DBA Discussions & Posts