Labour Day Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: buysanta

Exact2Pass Menu

Question # 4

You are in a sharded cluster. What will you do prior to initiating backup in sharded cluster?

A.

db.stopBalancer()

B.

db.stopserver()

C.

sh.stopBalancer()

D.

sh.stopserverQ

Full Access
Question # 5

Which of the following is true about aggregation framework?

A.

Each aggregation operator need to return atleast one of more documents as a result

B.

the aggregate command operates on a multiple collection

C.

A single aggregation framework operator can be used more than once in a query

D.

Pipeline expressions are stateless except accumulator expressions used with $group operator

Full Access
Question # 6

Which mongodb tools allow us to work with our data in a human readable format?

A.

mongodump

B.

mongostat

C.

mongoimport

D.

mongoexport

Full Access
Question # 7

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" > );

Full Access
Question # 8

Which of the following command is used to get all the indexes on a collection?

A.

db.collection.showIndexes()

B.

db.collection.findlndexes()

C.

db.showIndexes()

D.

db.collection.getlndexesQ

Full Access
Question # 9

Which of the following is a valid insert statement in mongodb? Select all valid.

A.

db.test.push({x:2,y:"apple"})

B.

db.test.insert«"x":2, "y":"apple"})

C.

db.test.insert({x:2,y:"apple"})

D.

db.test.insert({x:2},{y:"apple"})

Full Access
Question # 10

Which is the correct order (lowest to highest) in which MongoDB compares the BSON types?

A.

Number, Null, String and Object

B.

Null, Number, Object and String

C.

Null, Number, String and Object

D.

String, Null, Number and Object

Full Access
Question # 11

Consider the following document from the products collection:

What does the following query using $elemMatch return? db.products.find( { product_code: "345678" }, { variations: { $elemMatch: { size: ^L^ } } } )

A.

Returns the complete document but retrieves only the size field from the array

B.

Returns the document but with only one element in the variations array (corresponding to size L)

C.

Returns the complete document since MongoDB does not support partial array retrieval

D.

Returns the complete document but retrieves only the size field from the array and also with only one element in the variations array (corresponding to size L)

Full Access
Question # 12

Which of the following needs to be performed prior to initiate backup on a sharded cluster?

A.

db.stopBalancer( )

B.

sh.stopServer( )

C.

db.stopServer( )

D.

sh.stopBalancer( )

Full Access
Question # 13

'mongoimport' command is used for

A.

Batch data insertion

B.

None of the above

C.

Multiple command import

D.

Multiple command insertion

Full Access
Question # 14

Given a replica set with five data-bearing members, suppose the primary goes down with operations in its oplog that have been copied from the primary to only one secondary. Assuming no other problems occur, which of the following describes what is most likely to happen?

A.

missing operations will need to be manually re-performed

B.

the secondary with the most current oplog will be elected primary

C.

reads will be stale until the primary comes back up

D.

the primary may roll back the operations once it recovers

E.

the most current secondary will roll back the operations following the election

Full Access
Question # 15

Which of the following command inside aggregate command is used in MongoDB aggregation to filter the documents to pass only the documents that match the specified condition(s) to the next pipeline stage.

A.

$aggregate

B.

$sum

C.

$match

D.

$group

Full Access
Question # 16

The oplog (operations log) is a special capped collection that keeps a rolling record of all operations that modify the data stored in your databases. All the replica set members contain a copy of the oplog in the following collection:

A.

oplog.rs

B.

..oplog.rs

C.

.oplog.rs

D.

local.oplog.rs

Full Access
Question # 17

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

Full Access
Question # 18

In a collection that contains 100 post documents, what does the following command do? db. posts. find().skip(5).limit(5)

A.

Skip and limit nullify each other. Hence returning the first five documents.

B.

Skips the first five documents and returns the next five

C.

Limits the first five documents and then return them in reverse order

D.

Skips the first five documents and returns the sixth document five times

Full Access
Question # 19

MongoDB is a schema-less design.

A.

False

B.

True

Full Access