New Year Sale Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: xmas50

MongoDB C100DBA - MongoDB Certified DBA Associate Exam (Based on MongoDB 4.4)

Page: 2 / 4
Total 132 questions

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

the position of the element.

A.

$ elemMatch

B.

$slice

C.

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

D.

$

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

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

In order to ensure that you can maintain high availability in the face of server failure, you should implement which of the following?

A.

Sharding

B.

Properly defined user roles

C.

Replication

D.

Put indexes on all of your documents

E.

The proper storage engine

Which of the following does MongoDB use to provide High Availability and fault tolerance?

A.

Sharding

B.

Indexing

C.

Replication

D.

Write Concern

'mongoimport' command is used for

A.

Batch data insertion

B.

None of the above

C.

Multiple command import

D.

Multiple command insertion

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

A.

mongostat

B.

mongotop

C.

mongorestore

D.

mongodump

Which option can be used with update command so that a new document gets created if no matching document is found based on the query condition?

A.

upsert command instead of update command

B.

This has to be handled in application code (Node.js, PHP, JAVA, C#, etc.) and cannot be handled in mongo shell query

C.

{update: true, insert: true} as the third parameter of update command

D.

Specify {upsert : true } as the third parameter of update command

The following aggregation option is used to specify the specific fields that needs to be passed to the next stage of the aggregation pipeline:

A.

$project

B.

$aggregate

C.

$match

D.

$group

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

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

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

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?

A.

7

B.

2

C.

1

D.

0