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

MongoDB C100DBA - MongoDB Certified DBA Associate Exam (Based on MongoDB 4.4)

Page: 1 / 4
Total 132 questions

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

A.

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

B.

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

C.

db.collection.relndexQ

D.

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

In a sharded replica set environment, the w Option provides ability for write concern and j Option provides ability for the data to be written on disk journal. Consider that we have a seven member replica set and we want to assure that the writes are committed to journal. What should be the value of j?

A.

1

B.

2

C.

0

D.

7

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

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

A.

mongotop

B.

dbstats

C.

mongostat

D.

constats

Which of the following does MongoDB use to provide High Scalability?

A.

Replication

B.

Write Concern

C.

Indexing

D.

Sharding

You have a replicated cluster with 1 primary, 3 secondary, 1 arbiter. One of the secondary is hidden. What is the replication factor of this replicated cluster?

A.

7

B.

03

C.

04

D.

06

Using an arbiter allows one to easily ensure an odd number of voters in replica sets. Why is this important?

A.

To help in disaster recovery

B.

To protect agains network partitions

C.

To enable certain read preference settings

D.

To add greather redundancy

E.

For more efficient backup operations

Which of the following operator can be used to limit the number of documents in an array field of a document after an update is performed?

A.

$arrayLimit

B.

$push along with $each, $sort and $slice

C.

$removeFromSet

D.

None of the above

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