Free C100DBA Exam Braindumps
MongoDB Associate Database Administrator Questions 31–35 (page: 8)

Updated On: 9-Feb-2026

Given a replica set with five data-bearing members, suppose the primary goes down with operations in its oplog that have been copied from the primary to only one secondary. Assuming no other problems occur, which of the following describes what is most likely to happen?

  1. missing operations will need to be manually re-performed
  2. the secondary with the most current oplog will be elected primary
  3. reads will be stale until the primary comes back up
  4. the primary may roll back the operations once it recovers
  5. the most current secondary will roll back the operations following the election

Answer(s): B



Which command can be used to rebuild the indexes on a collection in MongoDB?

  1. db.collection.createlndex({relndex:l})
  2. db.collection.reIndex({author:l})
  3. db.collection.relndexQ
  4. db.collection.createIndex({author:l}).reIndex()

Answer(s): C



What does the totalKeysExamined field returned by the explain method indicate?

  1. Number of documents that match the query condition
  2. Number of index entries scanned
  3. Details the completed execution of the winning plan as a tree of stages
  4. Number of documents scanned

Answer(s): B



In order to ensure that you can maintain high availability in the face of server failure, you should implement which of the following?

  1. Sharding
  2. Properly defined user roles
  3. Replication
  4. Put indexes on all of your documents
  5. The proper storage engine

Answer(s): C



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. {update: true, insert: true} as the third parameter of update command
  3. This has to be handled in application code (Node.js, PHP, JAVA, C#, etc.) and cannot be handled in mongo shell query
  4. Specify {upsert : true } as the third parameter of update command

Answer(s): D



Viewing page 8 of 28
Viewing questions 36 - 40 out of 161 questions


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

AI Tutor AI Tutor 👋 I’m here to help!