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

What does the totalCreated field mean in the output of the db.serverStatus().connections command?

> db.serverStatus().connections

{

" current " : 4,

" available " : 51196,

" totalCreated " : 5,

" active " : 2,

" threaded " : 4,

" exhaustIsMaster " : 1,

" exhaustHello " : 0,

" awaitingTopologyChanges " : 1

}

A.

The number of closed connections in the server ' s history.

B.

The number of connections since the server was set up.

C.

The total number of database connections at the moment.

D.

The number of connections since the server was started.

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

What does the output x of the following MongoDB aggregation query result into; db.posts.aggregate( [ { $group: { _id; " $author " , x: { $sum: $likes } } } ] )

A.

Average of likes on all the posts of an author, grouped by author

B.

Number of posts by an author

C.

Sum of likes on all the posts by all the authors

D.

Sum of likes on all the posts by an author, grouped by author

Which of the tags in a replica set configuration specify the operations to be read from the node with the least network latency?

A.

netLatency

B.

secondaryPreferred

C.

nearest

D.

primaryPreferred

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.

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

C.

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

D.

Skips the first five documents and returns the next five

A collection named scores includes:

[

{ _id: 1, home_score: 6, away_score: [ 5, 7 ] },

{ _id: 2, home_score: [ 8, 6 ], away_score: 9 },

{ _id: 3, home_score: [ 5, 8 ], away_score: [ 9, 6 ] },

{ _id: 4, home_score: 5, away_score: 10 }

]

Given the following index:

db.scores.createIndex( { home_score: 1, away_score: 1 } )

What document will cause the index to fail?

A.

Document with _id: 2

B.

Document with _id: 4

C.

Document with _id: 1

D.

Document with _id: 3

By default, the MongoDB cursor in mongo shell is configured to return how many documents? To get the next set of documents, which command is used?

A.

200, more

B.

No limit, none

C.

20, it

D.

50, it

What stage of the Winning Plan in an Explain Result identifies the Index Key for the query pattern?

A.

FETCH

B.

COLLSCAN

C.

IXSCAN

D.

GROUP

What is a limitation of encryption at rest?

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.

Which is the default mode in which the explain() command runs?

A.

allPlansExecution

B.

customExecutionStats

C.

queryPlanner

D.

executionStats