Black Friday Reward - Upto 75% off - Ends in 0d 00h 00m 00s - Coupon code: CFsave75

Pass the MongoDB MongoDB Certified DBA Associate C100DBA Questions and answers with CertsForce

Viewing page 3 out of 6 pages
Viewing questions 21-30 out of questions
Questions # 21:

In a sharded replicas set environment with multiple mongos servers, which of the following would decide the mongos failover?

Options:

A.

mongos


B.

mongo shell


C.

individual language drivers


D.

mongod


Expert Solution
Questions # 22:

A collection and a document in MongoDB is equivalent to which of the SQL concepts respectively?

Options:

A.

Column and Row


B.

Table and Row


C.

Database and Table


D.

Table and Column


Expert Solution
Questions # 23:

What command returns all documents in an orders collection where quantity is less than or equal to 1000 and salesRep is not equal to " Anne " ?

Options:

A.

db.orders.find({ " quantity " : { $lte: 1000 }, salesRep: { $neq: " Anne " } })


B.

db.orders.find({ " quantity " : { $lt: 1000 }, salesRep: { $ne: " Anne " } })


C.

db.orders.find({ " quantity " : { $lte: 1000 }, salesRep: { $ne: " Anne " } })


D.

db.orders.find({ " quantity " : { $lt: 1000 }, salesRep: { $neq: " Anne " } })


Expert Solution
Questions # 24:

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

Options:

A.

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


B.

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


C.

db.collection.relndexQ


D.

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


Expert Solution
Questions # 25:

What does the totalKeysExamined field returned by the explain method indicate?

Options:

A.

Number of documents that match the query condition


B.

Number of index entries scanned


C.

Details the completed execution of the winning plan as a tree of stages


D.

Number of documents scanned


Expert Solution
Questions # 26:

What method should be used to configure dynamically runtime parameters for the mongod process in MongoDB?

Options:

A.

Use the --setParameter flag with the mongod command.


B.

Use the --config flag to specify a configuration file at startup of mongod.


C.

Configure the parameters in the MongoDB URI string.


D.

Configure in the MongoDB client shell mongosh before starting the server.


Expert Solution
Questions # 27:

Consider a clothing collection that contains these documents:

{ " _id " : 1, " item " : " sweater " , " sizes " : [ " XS " , " S " ] }

{ " _id " : 2, " item " : " t-shirt " , " sizes " : [ " S " , " M " , " XL " ] }

{ " _id " : 3, " item " : " vest " , " sizes " : [ " M " , " L " , " XL " , " XXL " ] }

What does the following query return?

db.clothing.find({ " sizes " : " M " })

Options:

A.

Only document _id: 3.


B.

All three documents.


C.

Only document _id: 2.


D.

Documents _id: 2 and _id: 3.


Expert Solution
Questions # 28:

What is a limitation of encryption at rest?

Options:

A.

It requires a lot of additional configuration.


B.

It protects against insecure network connections.


C.

It does not protect against data breaches.


D.

It can impact performance greatly.


Expert Solution
Questions # 29:

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

Options:

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


Expert Solution
Questions # 30:

You perform the following operation in the shell: db.foo.insert( { } ); What gets inserted?

Options:

A.

A document will be inserted with the same _id as the last document inserted


B.

A document that matches the collection ' s existing schema, but with null fields


C.

A document with an _id assigned to be an Objectld


D.

An empty document


E.

No document will be inserted; an error will be raised


Expert Solution
Viewing page 3 out of 6 pages
Viewing questions 21-30 out of questions