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

Consider the following example document from the sample collection. All documents in this collection have the same schema.

Which of the following queries will replace this with the document.

A.

db.sample.update( { "_id" : 3 } , { "$set" : { "_id" : 7 , "c" : 4 > > )

B.

db.sample.update( { "_id" : 3 > , { "_id" : 7 , "c" : 4 > , { "justOne" : true > ) / □ This operation cannot be done with a single query.

C.

db.sample.update( { "_id" : 3 > , { "_id" : 7 , "c" : 4 , { "$unset" : [ "a" , "b" ] } } )

D.

db.sample.update( { "_id" : 3 > , { "_id" : 7 , "c" : 4 > )

Which of the following is supported by MongoDB?

A.

Transaction Management

B.

ACID Transactions

C.

Journaling

D.

Relationships between Collections (Primary Key Foreign Key)

What is the maximum size of Index Key Limit and Number of Indexes per collection?

A.

1024 bytes and 64 indexes

B.

12 mega bytes and 64 indexes

C.

64 bytes and 1024 indexes

D.

1024 bytes and unlimited indexes

Below is a sample document of "orders" collection

A.

$project

Which of the following node is used during election in a replication cluster?

A.

primary

B.

arbiter

C.

hidden

D.

secondary

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

Write the command(s) are correct to enable sharding on a database "testdb" and shard a collection "testCollection" with _id as shard key.

In a replica set, a_________number of members ensures that the replica set is always able to select a primary.

A.

Even

B.

Odd

C.

2

D.

Depends on the application architecture

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.

Skips the first five documents and returns the next five

C.

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

D.

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

In which of the following scenarios is sharding not the correct option. Select all that apply.

A.

The write operations on the collection are low

B.

The write operations on the collection are very high

C.

The working set in the collection is expected to grow very large in size

D.

The collection is a read intensive collection with less working set