Pre-Winter Sale Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: force70

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

Viewing page 1 out of 6 pages
Viewing questions 1-10 out of questions
Questions # 1:

Which of the following aggregation commands in MongoDB does not support sharded collections?

Options:

A.

mapReduce


B.

group


C.

aggregate


D.

All of the above


Expert Solution
Questions # 2:

Consider a collection posts which has fields: Jd, post_text, post_author, post_timestamp, post_tags etc. Which of the following query retrieves ONLY the key named post_text from the first document retrieved?

Options:

A.

db.posts.finOne({},{_id:0, post_text:1})


B.

db.posts.findOne({post_text: 1})


C.

db.posts.find({},{_id:Of post_text:1})


D.

db.posts.finOne«},{post_text:l})


Expert Solution
Questions # 3:

Which of the following are common uses of the mongo shell? Check all that apply

Options:

A.

Perform queries against MongoDB collections


B.

Perform administrative tasks


C.

Use as a JavaScript framework for your production system


Expert Solution
Questions # 4:

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?

Options:

A.

Document with _id: 2


B.

Document with _id: 4


C.

Document with _id: 1


D.

Document with _id: 3


Expert Solution
Questions # 5:

Which node in a replica set does accept write operation?

Options:

A.

arbiter


B.

hidden


C.

primary


D.

secondary


Expert Solution
Questions # 6:

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

Options:

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


Expert Solution
Questions # 7:

Suposse tou have the following collection with only 2 documents:

Question # 7

If you run an aggregation query and use { $unwind: " $traits " } as the first stage, how many documents will be passed to the next stage of the aggregation pipeline?

Options:

A.

3


B.

5


C.

4


D.

2


E.

1


Expert Solution
Questions # 8:

What are the audit log destinations? (Select three)

Options:

A.

syslog


B.

file


C.

TCP/IP port


D.

database


E.

console


Expert Solution
Questions # 9:

What is the output of the following program?

Options:

A.

60 s


B.

1s


C.

100 s


D.

100 ms


Expert Solution
Questions # 10:

What " stage " indicates that no indexes were available for a query pattern?

Options:

A.

FETCH


B.

IXSCAN


C.

COLLSCAN


D.

GROUP


Expert Solution
Viewing page 1 out of 6 pages
Viewing questions 1-10 out of questions