MongoDB DBA Quiz Questions and Answers

Which features of relational database management systems were deliberately omitted in MongoDB and help us to obtain horizontal scalability? Check all that apply.

Answer :
  • Multi-statement transactions
  • Joins

The following aggregation option is used to specify the specific fields that needs to be passed to the next stage of the aggregation pipeline:

Answer :
  • $project

In a collection that contains 100 post documents, what does the following command do? db. posts. find().skip(5).limit(5)

Answer :
  • Skips the first five documents and returns the next five

Which of the following is supported by MongoDB?

Answer :
  • Journaling

Aggregation Pipelines have a limit of:

Answer :
  • 16 MB document and 100 MB RAM

If the value of totalKeysExamined is 30000 and the value of totalDocsExamined is 0, which of the following option is correct?

Answer :
  • The query used an index to fetch the results

Which option should be used to update all the documents with the specified condition in the MongoDB query?

Answer :
  • specify {multi: true} as the third parameter of update command

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

Answer :
  • Replication

What is the first task that a secondary would perform on being prompted by another secondary for an election?

Answer :
  • Connect to primary to confirm its availability

In a replicated cluster, which of the following node would only be used during an election?

Answer :
  • arbiter