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

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

Page: 1 / 6
Total 172 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.

$

Which TWO indicators should an administrator keep an eye on to determine if the storage capacity is nearing its limit?

A.

The execution time of the same query increases over time.

B.

Disk space utilization on the server is consistently above 90%.

C.

The number of documents in the database is increasing.

D.

Message errno:28 No space left on device is present in the log file.

E.

The number of available read or write tickets is consistently low.

Which type of indexes does MongoDB support?

A.

All of the above

B.

Compound Indexes

C.

Multikey Indexes

D.

Geospatial Indexes

Which option should be used to update all the documents with the specified condition in the MongoDB query?

A.

specify {all: true} as the third parameter of update command

B.

updateAII instead of update

C.

specify {updateAII: true} as the third parameter of update command

D.

specify {multi : true} as the third parameter of update command

Write the command(s) are correct to enable sharding on a database " testdb " and shard a collection " testCollection " with _id as shard key.

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

What command will successfully start the mongod daemon with all default settings as a background task?

A.

mongod --fork --port 27017

B.

mongod --fork --dbpath default

C.

mongod --fork --logpath /var/log/mongodb/mongod.log

D.

mongod --default

Which command can be used to rebuild the indexes on a collection in MongoDB?

A.

db.collection.createlndex({relndex:l})

B.

db.collection.reIndex({author:l})

C.

db.collection.relndexQ

D.

db.collection.createIndex({author:l}).reIndex()

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

Given a collection posts as shown below having a document array comments, which of the following command will create an index on the comment author descending?

A.

db.posts.createIndex({^comments.$.author " :-l});

B.

db. posts.createIndex({^comments.author " :1});

C.

db.posts.createIndex({^commerits.author " ;-!});