MongoDB Quiz


Play this quiz that will help you to excel in MongoDB certification exams, placements etc. This MongoDB quiz consist of 10 questions that you need to solve in 10 minutes. We’ve specially designed this quiz so that you can quickly acquaint to the pattern of questions you can be asked in placement drives, certification exams etc. This test enables you to assess your knowledge of MongoDB.

Take the Free Practice Test



MongoDB MCQs

Practice MongoDB MCQ Questions, which will help you to understand database related concepts.

MongoDB Quiz

Try Free MongoDB Quiz, to start a quiz you need to login first, after login you will get start quiz button and then by clicking on that you can start quiz. You will get 10 Minutes to answer all questions.

MongoDB Quiz

1. Which stages in aggregation framework is a filtering operation and thus this can reduce the amount of documents that are given as input to the next stage?

$limit
$match
Both A and B can be used
None of the above

2. The default value of default_language Parameter is :

Mongo
DB
Mongod
English

3. In MongoDB client, how to initiate a new replica set?

rs.initiate() 
rs.conf()
rs.status()
None of the above

4. Which of the following is correct syntax to Add Members to Replica Set?

db.add(HOST_NAME:PORT)
rs.add(HOST_NAME:PORT)
rs.isMaster(HOST_NAME:PORT)
db.isMaster(HOST_NAME:PORT)

5. Which method deletes multiple (specified) indexes on a collection?

dropIndexes()
dropIndex()
Both A and B can be used
getIndexes()

6. What is true about $group stages in aggregation framework ?

This is a filtering operation and thus this can reduce the amount of documents that are given as input to the next stage.
This does the actual aggregation
Sorts the documents
None of the above

7. What is the type of weights parameter in createIndex()?

Boolean
string
integer
document

8. How many does collections GridFS use to store files?

1
4
3
2

9. Which of the following checks and repairs errors and inconsistencies in data storage?

repairDatabase
repairedDatabase
recoverDatabase
None of the above

10. Which of the following represent column in mongoDB?

document
database
collection
field

Results