Free Practice Questions for the MongoDB Certified DBA Associate C100DBA Exam (2026 Updated)
At Marks4sure, we are dedicated to providing IT professionals with the most accurate and reliable preparation materials for the MongoDB C100DBA exam. To support your certification journey, we have made a selection of our premium 2026 MongoDB Certified DBA Associate practice questions and answers available completely free. You can take this practice test as many times as you need. Every question includes a detailed, expertly verified explanation to ensure you fully grasp the core security concepts before test day.
What does the following $slice query return using the following command? db.posts.find( {}, { comments: { $slice: [ -10, 5 ] } } )
What is the maximum size of Index Key Limit and Number of Indexes per collection?
Write the command(s) are correct to enable sharding on a database " testdb " and shard a collection " testCollection " with _id as shard key.

Which of the following is a valid insert statement in mongodb? Select all valid.
Consider the following posts document:

Which of the following queries will return the documents but with only the first two tags in the tags array?
Consider the following example document from the sample collection. All documents in this collection have the same schema.

Which of the following queries will replace this with the document.

Consider that you have a collection called population which has fields state and city. Which of the following query will calculate the population grouped by state and city?
Which option should be used to update all the documents with the specified condition in the MongoDB query?
In a sharded replica set environment, the w Option provides ability for write concern and j Option provides ability for the data to be written on disk journal. Consider that we have a seven member replica set and we want to assure that the writes are committed to journal. What should be the value of j?
Which of the following command inside aggregate command is used in MongoDB aggregation to filter the documents to pass only the documents that match the specified condition(s) to the next pipeline stage.
Which of the following commands will return all the posts with number of likes greater than 100 and less than 200, both inclusive?
Which is the correct order (lowest to highest) in which MongoDB compares the BSON types?
In a collection that contains 100 post documents, what does the following command do? db. posts. find().skip(5).limit(5)
What does the output x of the following MongoDB aggregation query result into; db.posts.aggregate( [ { $group: { _id; " $author " , x: { $sum: $likes } } } ] )
Given a collection posts as shown below having a document array comments, which of the following command will create an index on the comment author descending?

Which of the following are common uses of the mongo shell? Check all that apply
Which of the following aggregation commands in MongoDB does not support sharded collections?
Which features of relational database management systems were deliberately omitted in MongoDB and help us to obtain horizontal scalability? Check all that apply.
You perform the following operation in the shell: db.foo.insert( { } ); What gets inserted?
What is the equivalent command in MongoDB for the following SQL query?
SELECT * FROM posts WHERE author like " %john% "
Which of the following commands finds all the documents in the posts collection with post timestamp field as null?
What is the output of following two commands in MongoDB: db. posts. insert({n_id " :l}) db.posts.insert({ " _id " :l})
The________operator can be used to identify an element in the array to be updated without explicitly specifying
the position of the element.
You perform the following query on the sayings collection, which has the index
{ quote : " text " }:
Assuming the documents below are in the collection, which ones will the following query return? Check all that
apply.
db.sayings.find( { $text : { $search : " fact find " } } )
Using an arbiter allows one to easily ensure an odd number of voters in replica sets. Why is this important?

