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 th following expression is used to gets the first document from the source documents according to the grouping?

$addToSet
$first
$push
$last

2. Type of parameter Name is?

String
Integer
Boolean
Array

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

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

4. Regular expression datatype is used to store regular expression.

TRUE
FALSE
Can be true or false
Can not say

5. _________ returns the queryPlanner and executionStats information for the evaluated method.

cursor.explain()
tablescan.explain()
server.explain()
client.explain()

6. _________provide the number of times the lock acquisitions encountered deadlocks.

locks.deadlock
lock.deadlockCount
lock.deadlock
locks.deadlockCount

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

8. MongoDB ____________ is used to create collection.

db.insertCollection(name, options)
db.createCollection(name, options)
db.useCollection(name, options)
db.Collection(name, options)

9. If you created database (mydb) is not present in list. To display database, you need to insert at least one document into it.

Yes
No
Can be yes or no
Can not say

10. A developer want to develop a database for LFC system where the data stored is mostly in similar manner. Which database should use?

Relational
NoSQL
Both A and B can be used
None of the above

Results