Weekend Sale - Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: sntaclus

Which of the following aggregate commands in MongoDB uses a pipeline approach with the goals of improving the aggregation performance?

A.

mapReduce

B.

group

C.

aggregate

D.

All of the above

In a replicated cluster, which of the following node would only be used during an election?

A.

arbiter

B.

primary

C.

hidden

D.

secondary

Which command is used to determine storage capacity of specific database?

A.

mongotop

B.

dbstats

C.

mongostat

D.

constats

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

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

Which of the following commands can cause the database to be locked?

A.

All of the above

B.

Inserting data

C.

Map-reduce

D.

Issuing a query

Which of the following is incorrect statement about find and findOne operations in MongoDB?

A.

findQ returns all the documents in a collection while findOne() retrieves only the first one.

B.

find.limit(l) is not the same query as findOne()

C.

findOneQ returns the actual first document retrieved from a collection

D.

findQ and findOneQ returns cursors to the collection documents

Which of the following is true of the mechanics of replication in MongoDB? Check all that apply.

A.

Members of a replica set may replicate data from any other data-bearing member of the set by default

B.

Clients read from the nearest member of a replica ser by default

C.

Operations on the primary are recorded in a capped collection called the oplog

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