Free C100DBA Exam Braindumps (page: 12)

Page 11 of 34

You have designed a web application with mongoDB. You have configured replication. The replica set is in place and function properly. What happens in case of failure?

  1. Switchover needs to be done manually
  2. Failover happens automatically
  3. Switchover happens automatically
  4. Failover needs to be done manually

Answer(s): B



You have a replicated cluster with 1 primary, 3 secondary, 1 arbiter. One of the secondary is hidden. What is the replication factor of this replicated cluster?

  1. 7
  2. 03
  3. 04
  4. 06

Answer(s): C



In a replica set, a_________number of members ensures that the replica set is always able to select a primary.

  1. Even
  2. Odd
  3. 2
  4. Depends on the application architecture

Answer(s): B



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: { $pop: 1 } } }] )
  2. db.population.aggregate( [{ $group: { _id: { city: "$city" },pop: { $sum: "$pop" } } }] )Multi Document Transaction is not supported by MongoDB
  3. db.population.aggregate( [{ $group: { _id: { state: Estate", city: "$city" },pop: { $sum:
    "$pop" } } }] )
  4. db.population.aggregate( [{ $group: { _id: { state: Estate", city: "$city" },pop: { $sum: 1 > > >] )

Answer(s): C






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

C100DBA Discussions & Posts