Exclusive Black Friday Deal: 70% Off All Exam Bundles! Use coupon code below to unlock your savings! - Ends in 0d 00h 00m 00s - Coupon code: Friday70

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

Question # 31

Which are the ONLY ways to project portions of an array?

Options:

A.  

$slice

B.  

$

C.  

All of the above

D.  

$ elemMatch

Discussion 0
Question # 32

What is the purpose of elections in a replica set?

Options:

A.  

A mechanism for replicating data across all replica set members asynchronously.

B.  

A mechanism to choose a new primary when the current primary is no longer available.

C.  

A mechanism to add new indexes to a running replica set.

D.  

A mechanism to add additional secondaries when the current secondaries are unavailable.

Discussion 0
Question # 33

Which of the following aggregate commands in MongoDB uses a pipeline approach with the goals of improving the aggregation performance?

Options:

A.  

mapReduce

B.  

group

C.  

aggregate

D.  

All of the above

Discussion 0
Question # 34

Which of the documents below will be retrieved by the following query? Assume the documents are stored in a collection called " sample " . Check all that apply.

db.sample.find( { " $or " : [ { " a " : { " $in " : [ 3, 10] > }, { " b " : { " $lt " : 2 > > ] > )

Options:

A.  

{ ' ' __id " :3, " a " : 4, " c " :0, " b " :14}

B.  

{ ' ' _Jd " :7, " a " : 8, " c " :1, " b " :7}

C.  

{ " .Jd " :6, " a " : 1, " c " :1, " b " :5}

D.  

{ ' ' \Jd " :9, " a " : 17, " c " : 1, " b " : 1}

E.  

{ \Jd " :10, " a " : 3, " c " : 1, " b " : 1}

F.  

{ " .Jd " :: 2, " a " : 2, " c " :: 0, " b " : 1}

G.  

{ " .Jd " :: 4, " a " : 5, " c " :: 0, " b " : 17}

Discussion 0
Question # 35

Consider the following posts document:

Question # 35

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

Discussion 0
Question # 36

MongoDB is

Options:

A.  

None of the above

B.  

Object-oriented DBMS

C.  

Relational DBMS

D.  

Document-oriented DBMS

Discussion 0
Question # 37

What is the purpose of enabling TLS?

Options:

A.  

To automate backup and restore operations.

B.  

To ensure high availability of the database.

C.  

To improve query performance.

D.  

To provide encryption of data in transit.

Discussion 0
Question # 38

What tool would you use if you want to save a gif file in mongo?

Options:

Discussion 0
Question # 39

A MongoDB administrator is managing a database for a hospital system.

The patients collection contains:

- Carlos Martinez, diagnosis Hypertension, room 203

- Maria Lopez, diagnosis Hypertension, room 207

- Juan Perez, diagnosis Arrhythmia, room 207

The administrator runs:

db.patients.updateMany(

{ diagnosis: " Hypertension " },

{ $set: { room: 207 } }

)

What output should the administrator expect?

Options:

A.  

acknowledged: true, matchedCount: 1, modifiedCount: 1

B.  

acknowledged: true, matchedCount: 3, modifiedCount: 1

C.  

acknowledged: true, matchedCount: 1, modifiedCount: 2

D.  

acknowledged: true, matchedCount: 2, modifiedCount: 1

Discussion 0
Question # 40

JSON stands for

Options:

A.  

JavaScript Object Notation

B.  

JavaScript Object Naming

C.  

JavaScript Object Notice

D.  

None of the above

Discussion 0

C100DBA PDF

C100DBA PDF (Printable)
$46.5
$154.99

C100DBA Testing Engine

C100DBA PDF (Printable)
$51
$169.99

C100DBA PDF + Testing Engine

C100DBA PDF (Printable)
$63.9
$212.99

Free Exams Sample Questions