Pre-Winter Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: pass65

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.

Questions 4

What does the following $slice query return using the following command? db.posts.find( {}, { comments: { $slice: [ -10, 5 ] } } )

Options:

A.

Returns 5 comments, beginning with the last 10 items

B.

Returns 10 comments, beginning with the last

C.

Returns 10 comments, beginning with the first

D.

Returns 5 comments, beginning with the first 10 items

Buy Now
Questions 5

Which operations add new documents to a collection?

Options:

A.

Create

B.

update

C.

insert

D.

delete

Buy Now
Questions 6

What is the maximum size of Index Key Limit and Number of Indexes per collection?

Options:

A.

1024 bytes and 64 indexes

B.

12 mega bytes and 64 indexes

C.

64 bytes and 1024 indexes

D.

1024 bytes and unlimited indexes

Buy Now
Questions 7

Write the command(s) are correct to enable sharding on a database " testdb " and shard a collection " testCollection " with _id as shard key.

C100DBA Question 7

Options:

Buy Now
Questions 8

Which of the following is a valid insert statement in mongodb? Select all valid.

Options:

A.

db.test.push({x:2,y: " apple " })

B.

db.test.insert« " x " :2, " y " : " apple " })

C.

db.test.insert({x:2,y: " apple " })

D.

db.test.insert({x:2},{y: " apple " })

Buy Now
Questions 9

Consider the following posts document:

C100DBA Question 9

Which of the following queries will return the documents but with only the first two tags in the tags array?

Options:

A.

db.posts.find({author: " Tom " ».limit({tags:2})

B.

db.posts.find({author: " Tom " ».limit($slice:{tags:2 > )

C.

Both " db.posts.find({author: " Tom " },{tags:{$slice:2}}) " and " db.posts.find({author: " Tom " }).limit($slice: {tags:2}) " are valid. $slice works both with projection and limit.

D.

db.posts.find({author: " Tom " > ,{tags:{$slice:2»)

Buy Now
Questions 10

Which command is used to determine storage capacity of specific database?

Options:

A.

mongotop

B.

dbstats

C.

mongostat

D.

constats

Buy Now
Questions 11

Which command can be used to rebuild the indexes on a collection in MongoDB?

Options:

A.

db.collection.createlndex({relndex:l})

B.

db.collection.reIndex({author:l})

C.

db.collection.relndexQ

D.

db.collection.createIndex({author:l}).reIndex()

Buy Now
Questions 12

Consider the following example document from the sample collection. All documents in this collection have the same schema.

C100DBA Question 12

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

C100DBA Question 12

Options:

A.

db.sample.update( { " _id " : 3 } , { " $set " : { " _id " : 7 , " c " : 4 > > )

B.

db.sample.update( { " _id " : 3 > , { " _id " : 7 , " c " : 4 > , { " justOne " : true > ) / □ This operation cannot be done with a single query.

C.

db.sample.update( { " _id " : 3 > , { " _id " : 7 , " c " : 4 , { " $unset " : [ " a " , " b " ] } } )

D.

db.sample.update( { " _id " : 3 > , { " _id " : 7 , " c " : 4 > )

Buy Now
Questions 13

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?

Options:

A.

db.population.aggregate( [{ $group: { _id: { state: " $state " , city; " $city " },pop: { $sum: 1 > > > ] )

B.

db.population.aggregate( [{ $group: { _id: { state: Estate " , city: " $city " },pop: { $pop: 1 } } }] )

C.

db.population.aggregate( [{ $group: { _id: { state: Estate " , city: n$city " },pop: { $sum: " $pop " } } }] )

D.

db.population.aggregate( [{ $group: { _id: { city: " $city " },pop: { $sum: " $pop " } } }] )Multi Document Transaction is not supported by MongoDB

Buy Now
Questions 14

Aggregation Pipelines have a limit of:

Options:

A.

No limit on document and 100 MB RAM

B.

2 MB document and no limit on RAM

C.

2 MB document and 100 MB RAM

D.

16 MB document and 100 MB RAM

Buy Now
Questions 15

In what format does mongodump creates backup files?

Options:

A.

BSON

B.

JSON

C.

SOAP

D.

XML

Buy Now
Questions 16

Which option should be used to update all the documents with the specified condition in the MongoDB query?

Options:

A.

specify {all: true} as the third parameter of update command

B.

updateAII instead of update

C.

specify {updateAII: true} as the third parameter of update command

D.

specify {multi : true} as the third parameter of update command

Buy Now
Questions 17

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?

Options:

A.

7

B.

2

C.

1

D.

0

Buy Now
Questions 18

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.

Options:

A.

$aggregate

B.

$sum

C.

$match

D.

$group

Buy Now
Questions 19

Which node in a replica set does accept write operation?

Options:

A.

arbiter

B.

hidden

C.

primary

D.

secondary

Buy Now
Questions 20

Which of the following commands will return all the posts with number of likes greater than 100 and less than 200, both inclusive?

Options:

A.

db.posts.find({ likes : { $gte : 100 , $lte : 200 } } );

B.

db.posts.find({ likes : { $gt : 100 , $lte : 200 } } );

C.

db.posts.find({ likes : { $gte : 100, $lt : 200 } } );

D.

db.posts.find({ likes : { $gt : 100, $lt : 200 > > );

Buy Now
Questions 21

Which is the correct order (lowest to highest) in which MongoDB compares the BSON types?

Options:

A.

Number, Null, String and Object

B.

Null, Number, Object and String

C.

Null, Number, String and Object

D.

String, Null, Number and Object

Buy Now
Questions 22

In a collection that contains 100 post documents, what does the following command do? db. posts. find().skip(5).limit(5)

Options:

A.

Skip and limit nullify each other. Hence returning the first five documents

B.

Limits the first five documents and then return them in reverse order

C.

Skips the first five documents and returns the sixth document five times

D.

Skips the first five documents and returns the next five

Buy Now
Questions 23

What does the output x of the following MongoDB aggregation query result into; db.posts.aggregate( [ { $group: { _id; " $author " , x: { $sum: $likes } } } ] )

Options:

A.

Average of likes on all the posts of an author, grouped by author

B.

Number of posts by an author

C.

Sum of likes on all the posts by all the authors

D.

Sum of likes on all the posts by an author, grouped by author

Buy Now
Questions 24

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?

C100DBA Question 24

Options:

A.

db.posts.createIndex({commerits.$.author " :-l});

B.

db.posts.createIndex({comments.$.author " : {$desc:l > });

C.

db.posts.createIndex({comments.author " :-l});

Buy Now
Questions 25

Which of the following are common uses of the mongo shell? Check all that apply

Options:

A.

Perform queries against MongoDB collections

B.

Perform administrative tasks

C.

Use as a JavaScript framework for your production system

Buy Now
Questions 26

What does the following aggregate query perform?

C100DBA Question 26

Options:

A.

Fetches the posts with likes between 100 and 200 and sets their _id as null

B.

Groups the posts by number of likes (101, 102, 103.) by adding 1 every time

C.

Calculates the number of posts with likes between 100 and 200

D.

Fetches the posts with likes between 100 and 200, sets the _id of the first document as null and then increments it 1 every time

Buy Now
Questions 27

Which of the following aggregation commands in MongoDB does not support sharded collections?

Options:

A.

mapReduce

B.

group

C.

aggregate

D.

All of the above

Buy Now
Questions 28

What is the defau size of a GridFS chunk?

Options:

A.

255 K

B.

1 MB

C.

16 MB

D.

2 MB

Buy Now
Questions 29

Which features of relational database management systems were deliberately omitted in MongoDB and help us to obtain horizontal scalability? Check all that apply.

Options:

A.

Multi-statement transactions

B.

Joins

C.

Authentication

Buy Now
Questions 30

What is the maximum size of a MongoDB document?

Options:

A.

2 MB

B.

12 MB

C.

There is no maximum size. It depends on the RAM.

D.

16 MB

Buy Now
Questions 31

Which of the following command is used to get all the indexes on a collection?

Options:

A.

db.collection.showIndexes()

B.

db.collection.findlndexes()

C.

db.showIndexes()

D.

db.collection.getlndexesQ

Buy Now
Questions 32

In mongodb how do you update a document partially?

Options:

A.

$project

B.

$update

C.

$modify

D.

$set

Buy Now
Questions 33

You perform the following operation in the shell: db.foo.insert( { } ); What gets inserted?

Options:

A.

A document will be inserted with the same _id as the last document inserted

B.

A document that matches the collection ' s existing schema, but with null fields

C.

A document with an _id assigned to be an Objectld

D.

An empty document

E.

No document will be inserted; an error will be raised

Buy Now
Questions 34

What is the equivalent command in MongoDB for the following SQL query?

SELECT * FROM posts WHERE author like " %john% "

Options:

A.

db.posts.find( { author: /John/ } )

B.

db.posts.find( { author: /AjohnA/ > )

C.

db.posts.find( { $like: {author: /John/} } )

D.

db.posts.find( { author: {$like: /John/} } )

Buy Now
Questions 35

Which of the following commands finds all the documents in the posts collection with post timestamp field as null?

Options:

A.

db.posts.find( { post_timestamp: { $fieldtype: null } } )

B.

db.posts.find( { post_timestamp: { $type: null } } )

C.

db.posts.find( { post_timestamp : { $type; 10 > > )

D.

db.posts.find( { post_timestamp: { $fieldtype: 10 } } )

Buy Now
Questions 36

What is the output of following two commands in MongoDB: db. posts. insert({n_id " :l}) db.posts.insert({ " _id " :l})

Options:

A.

Two documents will be inserted with _id as 1

B.

MongoDB will automatically increment the _id of the second document as 2

C.

This will throw a duplicate key error

D.

It will insert two documents and throw a warning to the user

Buy Now
Questions 37

The________operator can be used to identify an element in the array to be updated without explicitly specifying

the position of the element.

Options:

A.

$ elemMatch

B.

$slice

C.

Updating an array field without knowing its index is not possible.

D.

$

Buy Now
Questions 38

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 " } } )

Options:

A.

{ _id : 3, quote : " Nobody will ever catch me. " }

B.

{ _id : 1, quote : " That ' s a fact, Jack. " }

C.

{ _id : 2, quote : " Find out if that fact is correct. " }

Buy Now
Questions 39

Using an arbiter allows one to easily ensure an odd number of voters in replica sets. Why is this important?

Options:

A.

To help in disaster recovery

B.

To protect agains network partitions

C.

To enable certain read preference settings

D.

To add greather redundancy

E.

For more efficient backup operations

Buy Now
Exam Code: C100DBA
Exam Name: MongoDB Certified DBA Associate Exam (Based on MongoDB 4.4)
Last Update: Sep 14, 2026
Questions: 132

PDF + Testing Engine

$64.99   $185.69

Testing Engine

$49.99   $142.83

PDF (Q&A)

$54.99   $157.11