Halloween Special Sale 75% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: sale75best

Free MongoDB C100DBA Practice Exam with Questions & Answers | Set: 4

Questions 31

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()

MongoDB C100DBA Premium Access
Questions 32

If you have created a compound index on (A,B, C) which of the following access pattern will not be able to utilize the index?

Options:
A.

A, B, C

B.

A

C.

B, C

D.

A, B

Questions 33

What does the following aggregate query perform?

C100DBA Question 33

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

Questions 34

Which type of indexes does MongoDB support?

Options:
A.

All of the above

B.

Compound Indexes

C.

Multikey Indexes

D.

Geospatial Indexes

Questions 35

A MongoDB database administrator needs to improve the performance of the following query:

db.employees.find(

{},

{ name: 1, department: 0, salary: 1 }

).sort({ department: 1, salary: -1 });

What index should the administrator use to achieve this goal?

Options:
A.

db.employees.createIndex({ department: 1, salary: 1, name: 1 });

B.

db.employees.createIndex({ department: 1, salary: -1 });

C.

db.employees.createIndex({ salary: 1, name: 1, department: 0 });

D.

db.employees.createIndex({ name: 1, department: 1, salary: -1 });

Questions 36

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

Options:
A.

mongotop

B.

dbstats

C.

mongostat

D.

constats

Questions 37

The difference between $push and $addToSet is:

Options:
A.

$addToSet needs the fields to be already present while $push will work even if the field is not present

B.

$addToSet adds the item to the field only if it does not exist already; while $push pushes the item to the field irrespective of whether it was present or not

C.

$addToSet adds the item to the field only if the new item is of the same datatype

D.

There is no major difference between them. $addToSet is a deprecated version of $push.

Questions 38

What command should a MongoDB database administrator use to find the disk utilization of the order collection?

Options:
A.

db.stats()

B.

db.order.stats()

C.

db.hostInfo()

D.

db.serverStatus()

Questions 39

What is the on-premise solution having functionality equivalent to cloud manager?

Options:
A.

Service Manager

B.

Replica Manager

C.

Ops Manager

D.

Journaling

Questions 40

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

Exam Code: C100DBA
Certification Provider: MongoDB
Exam Name: MongoDB Associate Database Administrator(Based on MongoDB 6.0 and 7.0+)
Last Update: Oct 31, 2026
Questions: 172

MongoDB Free Exams

MongoDB Free Exams
Prepare effectively for MongoDB certification exams with free study resources and practice tests from Examstrack.