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 of the following setting defines what constitutes a "slow" operation?

fastOpThresholdMs
slowOpThresholdZs
slowOpThresholdMs
slowOpThresholdGs

2. What will be mongodb output when we use "use mydb" command?

created db mydb
new db mydb
switched to db mydb
None of the above

3. Point out the correct statement.

For read-heavy applications, deploy sharding and add one or more shards to a sharded cluster to distribute load among mongod instances
Spikes in the number of available connections can also be the result of application or driver errors
For read-heavy applications, increase the size of your replica set and distribute read operations to secondary members
All of the above

4. The limit on the number of namespaces depend on the ?

<database>.ns size
<document>.ns size
<field>.ns size
<row>.ns size

5. Each index in MongoDB requires at least _________ of data space.

8KB
16KB
32KB
64KB

6. Which of th following expression is used to calculates the average of all given values from all documents in the collection?

$sum
$avg
$min
$max

7. MongoDB ______ is used to create database.

create database_name
use database_name
insert database_name
show database_name

8. Type of parameter Name is?

String
Integer
Boolean
Array

9. Which of th following expression is used to Inserts the value to an array in the resulting document?

$addToSet
$first
$push
$last

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

Yes
No
Can be yes or no
Can not say

Results