MongoDB Test

Exam Type: MongoDB MCQ Skill Test
Questions Type: Multiple Choice Questions
Total Questions: 32
Time Limit: 30 Minutes
Last Update June, 2025

Pass MongoDB Exam

75%
Total time

1 minute 2 seconds

Total time

1 correct answers

Total time

6 incorrect answers

Total time

6 not attempted

Start

MongoDB Quiz

Question 1 of 32
30:00

Which MongoDB shell command should you use to back up a database?

Which shell query displays all citizens with an age greater than or equal to 21?

What does a MongoDB collection consist of?

Given an ObjectId in _id, how do you get the time it was created?

Given a cursor named myCursor, which command returns a boolean value?

Which command returns a specific document in the user's collection?

To import a JSON array into Mongo, what flags are needed with MongoDBimport?

Choose the shell command that connects to a MongoDB database.?

In the MongoDB shell, how can you tell if an index was used with a query?

Suppose your aggregation pipeline terminated with an exception referring to exceeded memory limit. What is the best way to resolve the issue?

What is the recommended way to delete a user?

When the primary database in a replica set fails, when does failover begin?

What is the correct option to set up Kerberos when starting MongoDB?

What is the purpose of an arbiter in a replica set?

You would like to know how many types of items you have in each category. Which query does this?

To restrict the number of records coming back from a query, which command should you use?

We have a collection named restaurants with the geographical information stored in the location property, how do we create a geospatial index on it?

How do you find documents with a matching item in an embedded array?

Which query bypasses the first 5 customers and return the next 10?

How do you create a text index?

One of the documents in your collection has an _id based upon an older database design and you want to change it. You write an update command to find the document and replace the _id, but the _id isn't changed. How should you fix the issue?

Why are ad-hoc queries useful?

How often do the members of a replica set send heartbeats to each other?

Which command returns all of the documents in the customers collection?

Given a cursor named myCursor, pointing to the customers collection, how to you get basic info about it?

What is true about indexes?

What is the preferred format to store geospatial data in MongoDB?

Which programming language is used to write MongoDB queries?

You have two text fields in your document, and you'd like both to be quickly searchable. What should you do?

To import a CSV file into MongoDB, which command should you issue?

In an MongoDB mapReduce command, the reduce function should _____.?

On a newly created collection, which field will have an index?

MongoDB Test Explained

© 2025 Skill Test Answer. All Rights Reserved