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: 3 / 6
Total 172 questions

Which of the following about Capped Collections is correct?

A.

Fixed Size

B.

Only " Fixed Size " and " High-throughput operations that insert and retrieve documents based on insertion order "

C.

High-throughput operations that insert and retrieve documents based on insertion order

D.

If the allocated space for a capped collection exceeds, it stops inserting new documents

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

Consider that our posts collection contains an array field called tags that contains tags that the user enters. {

Which of the following commands will find all the posts that have been tagged as tutorial.

A.

db.posts.find( { tags : [ " tutorial " ] } );

B.

db.posts.find( { $array : {tags: " tutorial " ) > );

C.

db.posts.find( { tags : " tutorial " } );

D.

db.posts.findInArray( { tags : " tutorial " > );

Consider the following posts document:

Which of the following queries will return the documents but with only the first two tags in the tags array?

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

As per the aggregation pipeline optimization concepts, if you have a $sort followed by a $match:

A.

Providing these parameters in any order does not impact the performance

B.

$sort moves before $match

C.

MongoDB does not do any movements by default and will use the order provided

D.

$match moves before $sort

What command should a MongoDB database administrator use to find the disk utilization of the order collection?

A.

db.stats()

B.

db.order.stats()

C.

db.hostInfo()

D.

db.serverStatus()

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

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

Consider the following example document from the sample collection. All documents in this collection have the same schema.

Which of the following queries will replace this with the document.

A.

db.sample.update( { " _id " : 3 } , { " $set " : { " _id " : 7 , " c " : 4 > > )

B.

db.sample.update( { " _id " : 3 > , { " _id " : 7 , " c " : 4 > , { " justOne " : true > ) / â–¡ This operation cannot be done with a single query.

C.

db.sample.update( { " _id " : 3 > , { " _id " : 7 , " c " : 4 , { " $unset " : [ " a " , " b " ] } } )

D.

db.sample.update( { " _id " : 3 > , { " _id " : 7 , " c " : 4 > )

Which of the following statements are true about the $match pipeline operator? Check all that apply.

A.

You should use it early as possible in the pipeline

B.

It can be used as many time as needed.

C.

It has a sintax similar to findQ commands.

Which TWO mongosh commands can be used to shutdown the mongod daemon?

A.

db.adminCommand({ " shutdown " : 1 })

B.

use admindb.adminCommand({ " killOp " : 1, " op " : 27017 })

C.

use admindb.runCommand({ killAllSessions: [ { user: " * " , db: " * " } ] })

D.

use admindb.shutdownServer()