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

Viewing page 3 out of 4 pages
Viewing questions 21-30 out of questions
Questions # 21:

Which of the following is a valid Replica Set configuration if you want:

1-Have 3 copies of everything

2- That RS3 is never primary

2- That RSI and RS2 can be primary?

You had to see the different configurations, RS3 could be hidden or priority 0 (But not a referee because we need

3 replicas), while RSI and RS2 could NOT have priority 0 or be hidden or anything like that

In a 4-member RS RSO , RSI, RS2 and RS3 + Referee, RSO (primary) falls after some write operations that have

replicated RSI and RS2 (but NOT RS3), who can get up as the new primary?

The configuration comes and in it we see that RS2 has a hidden: true (or a priority: 0, (I don't remember)

Options:

A.

ORS1


B.

ORS2


C.

ORS3


D.

O arbiter


E.

RSO


Expert Solution
Questions # 22:

What does the following query do when performed on the posts collection? db.posts.update({_id:l},{Title:This is post with ID 1"})

Options:

A.

Syntax error


B.

Replaces the complete document with _id as 1 with the document specified in second parameter


C.

Updates the Title of the post


D.

Updating a document is possible only with $set


Expert Solution
Questions # 23:

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

Options:

A.

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


B.

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


C.

db.collection.relndexQ


D.

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


Expert Solution
Questions # 24:

Which of the following about Capped Collections is correct?

Options:

A.

Fixed Size


B.

Only "Fixed Size" and "High-throughput operations that insert and retrieve documents based on insertion order"


C.

High-throughput operations that insert and retrieve documents based on insertion order


D.

If the allocated space for a capped collection exceeds, it stops inserting new documents


Expert Solution
Questions # 25:

Consider that our posts collection contains an array field called tags that contains tags that the user enters. {

Question # 25

Which of the following commands will find all the posts that have been tagged as tutorial.

Options:

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


Expert Solution
Questions # 26:

Mongodb does provide high availability via which option?

Options:

A.

Replication


B.

Indexing


C.

Sharding


D.

Journaling


Expert Solution
Questions # 27:

We can insert multiple documents in bulk using which of the following operations:

Options:

A.

initializeUnorderedBulk


B.

initializeUnorderedBulkOp


C.

initializeBulk


D.

initializeBulkOp


Expert Solution
Questions # 28:

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?

Options:

A.

7


B.

2


C.

1


D.

0


Expert Solution
Questions # 29:

What is the replication factor for a replicated cluster with 1 primary, 3 secondaries with one of them hidden. The set also has an arbiter?

Options:

A.

None of the above


B.

5


C.

3


D.

4


Expert Solution
Questions # 30:

What is the maximum size of a MongoDB document

Options:

A.

16 MB


B.

12 MB


C.

2 MB


D.

There is no maximum size. It depends on the RAM.


Expert Solution
Viewing page 3 out of 4 pages
Viewing questions 21-30 out of questions