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

Exact2Pass Menu

MongoDB Associate Database Administrator(Based on MongoDB 6.0 and 7.0+)

Last Update 3 hours ago Total Questions : 172

The MongoDB Associate Database Administrator(Based on MongoDB 6.0 and 7.0+) content is now fully updated, with all current exam questions added 3 hours ago. Deciding to include C100DBA practice exam questions in your study plan goes far beyond basic test preparation.

You'll find that our C100DBA exam questions frequently feature detailed scenarios and practical problem-solving exercises that directly mirror industry challenges. Engaging with these C100DBA sample sets allows you to effectively manage your time and pace yourself, giving you the ability to finish any MongoDB Associate Database Administrator(Based on MongoDB 6.0 and 7.0+) practice test comfortably within the allotted time.

Question # 31

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

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

Question # 32

Which TWO commands can be used to check for all active operations on the current node?

A.

db.currentOp({ op : " command " })

B.

db.adminCommand({ " all " : currentOp})

C.

db.currentOp(true)

D.

db.adminCommand({ currentOp : true })

E.

db.currentOp({ " all " : true })

Question # 33

The difference between $push and $addToSet is:

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.

Question # 34

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

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

Question # 35

What command lists all indexes for a collection?

A.

db.collection.info()

B.

db.collection.indexStats()

C.

db.collection.findIndexes()

D.

db.collection.getIndexes()

Question # 36

A MongoDB administrator is currently managing a single node MongoDB Enterprise deployment. The administrator is considering setting up replication with a secondary node and a delayed member.

Which TWO reasons align to the objectives of the administrator?

A.

Minimizing data loss when there are human errors.

B.

Allowing longer term data retention.

C.

Distributing data.

D.

Providing higher availability.

E.

Enabling encryption at rest.

Question # 37

What attribute of the oplog ensures consistency in a replicated dataset?

A.

Natural Ordering

B.

Concurrency Control

C.

Flow Control

D.

Idempotent

Question # 38

Below is a sample document in a given collection test.

{ a : 5, b : 3, c: 2, d : 1 >

Given a compound index { a: 1, b:l, c:l, d:l}, Which of the below query will not use in-memory sorting? Select

all valid.

A.

db.test.find( { a: 5, b: 3 } ).sort( { c: 1, d : 1 } )

B.

db.test.find( { a: 5, b: 3 } ).sort( { a: 1} )

C.

db.test.find( { a: 5, b: 3 } ).sort( { a: 1, b: 1, c: 1 > )

D.

db.test.find( { a: 5, b: 3 } ).sort( {c: 1 } )

Question # 39

Which of the following operator can be used to control the number of items of an array that a query returns?

A.

$ elemMatch

B.

$slice

C.

$

D.

MongoDB does not support partial retrieval of items from an array

Question # 40

Which of the following operators is used to updated a document partially?

A.

$set

B.

$update

C.

$project

D.

$modify

Go to page: