Weekend Sale 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: sale65best

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

Questions 21

What does the following query do when performed on the posts collection? db.posts.update({_id:l},{Title:This is post with ID 1"})

Options:
A.

Syntax error

B.

Replaces the complete document with _id as 1 with the document specified in second parameter

C.

Updates the Title of the post

D.

Updating a document is possible only with $set

MongoDB C100DBA Premium Access
Questions 22

The oplog (operations log) is a special capped collection that keeps a rolling record of all operations that modify the data stored in your databases. All the replica set members contain a copy of the oplog in the following collection:

Options:
A.

.oplog.rs

B.

oplog.rs

C.

..oplog.rs

D.

local.oplog.rs

Questions 23

Consider the following documents:

C100DBA Question 23

You perform the following query;

C100DBA Question 23

How many documents will be updated by the query?

Options:
A.

0

B.

1

C.

2

D.

3

E.

5

Questions 24

Which of the following index would be optimum for the query?

Select all valid. db.test.find( { a : 5, c : 2 })

Options:
A.

db.test.ensurelndex( { c:l, a: 1})

B.

db.test.ensurelndex( { a : 1, c: 1, d: 1, b : 1})

C.

CH db.test.ensurelndex( { a :1, c:l})

D.

db.test.ensurelndex( { a: 1, b :1, c:l, d:l})

Questions 25

Which mongodb tool is used to report details on number of database operations in MongoDB?

Options:
A.

mongorestore

B.

mongostat

C.

mongodump

D.

mongotop

Questions 26

What read preference should your application use if you want to read from the primary under normal circumstances but allow reads from secondaries when a primary is unavailable?

Options:
A.

secondaryPreferred

B.

Secondary

C.

nearest

D.

primary

E.

primaryPreferred

Questions 27

You are comparing values of different BSON types in mongodb. You want to compare from lowest to highest. Which comparison order is used?

Options:
A.

MinKey, Null, Numbers,Symbol, String,Object,Array,BinData

B.

MinKey, Null, Numbers,Object,Array,BinData,Symbol, String

C.

Object/Array^inData/Symbol,MinKey, Null, Numbers,String

D.

Objec^Array^inData,Symbol, String,MinKey, Null, Numbers

Questions 28

In a sharded cluster, from which node does one stop the balancer process before initiating backup?

Options:
A.

Any node

B.

replicaset primary node

C.

config server node

D.

mongos node

Questions 29

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

Questions 30

Which mongodb tool is used to report details on number of database operations in MongoDB?

Options:
A.

mongostat

B.

mongotop

C.

mongorestore

D.

mongodump

Exam Code: C100DBA
Certification Provider: MongoDB
Exam Name: MongoDB Certified DBA Associate Exam (Based on MongoDB 4.4)
Last Update: Jul 20, 2025
Questions: 132

MongoDB Free Exams

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