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. How to create index in mongoDB?

index()
createIndex()
putIndex()
getIndex()

2. Point out the correct statement

High query rates can exhaust the CPU capacity of the server
Database systems with small data sets and high throughput applications can challenge the capacity of a single server
Smaller data sets exceed the storage capacity of a single machine
None of the above

3. What is true about $unwind stages in aggregation framework ?

It is used to unwind document that are using arrays.
When using an array, the data is kind of pre-joined and this operation will be undone with this to have individual documents again. 
This stage we will increase the amount of documents for the next stage.
All of the above

4. If you didn't create any database, then collections will be stored in _______ database.

local
mydb
temp
test

5. 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

6. The system generated _id field is?

A 12 byte hexadecimal value
A 16 byte octal value
A 12 byte decimal value
A 10 bytes binary value

7. MongoDB ___________ command is used to drop a existing database.

db.drop()
db.dropDatabase()
db.deleteDatabase()
db.delete()

8. Single replica set has limitation of?

10 Nodes
12 Nodes
8 Nodes
Infinite Nodes

9. To create index in descending order, the value of key is?

1
0
-1
infinite

10. Size specifies a maximum size in bytes for a capped collection.

Yes
No
Can be yes or no
Can not say

Results