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

A database administrator maintains a MongoDB database that stores scientific papers. A paper with DOI 10.1000/xyz123 is no longer relevant and needs to be removed.

What query should the administrator use to delete the paper with the DOI equal to 10.1000/xyz123?

A.

db.scientificPapers.drop({ doi: " 10.1000/xyz123 " })

B.

db.scientificPapers.findOneAndDelete({ scientificPapers: " orders " , doi: " 10.1000/xyz123 " })

C.

db.scientificPapers.deleteOne({ doi: " 10.1000/xyz123 " })

D.

db.scientificPapers.deleteOne({ scientificPapers: " orders " }, { doi: " 10.1000/xyz123 " })

What feature is one of the differences between using MongoDB and a relational database management system (RDBMS) database?

A.

Sharding

B.

Replication

C.

Authentication

D.

Flexible Schema

The________operator can be used to identify an element in the array to be updated without explicitly specifying

the position of the element.

A.

$ elemMatch

B.

$slice

C.

Updating an array field without knowing its index is not possible.

D.

$

Consider a clothing collection that contains these documents:

{ " _id " : 1, " item " : " sweater " , " sizes " : [ " XS " , " S " ] }

{ " _id " : 2, " item " : " t-shirt " , " sizes " : [ " S " , " M " , " XL " ] }

{ " _id " : 3, " item " : " vest " , " sizes " : [ " M " , " L " , " XL " , " XXL " ] }

What does the following query return?

db.clothing.find({ " sizes " : " M " })

A.

Only document _id: 3.

B.

All three documents.

C.

Only document _id: 2.

D.

Documents _id: 2 and _id: 3.

What command set removes node-1.cluster1.mycompany.local:27017 and node-2.cluster1.mycompany.local:27017 from the replica set, then adds node-1.cluster1.mycompany.local:27017 back to the replica set?

A.

rs.removeNode( " node-1.cluster1.mycompany.local:27017 " )rs.removeNode( " node-2.cluster1.mycompany.local:27017 " )rs.add({ host: " node-1.cluster1.mycompany.local:27017 " })

B.

rs.removeNode( " node-1.cluster1.mycompany.local:27017 " )rs.removeNode( " node-2.cluster1.mycompany.local:27017 " )rs.addNode({ host: " node-1.cluster1.mycompany.local:27017 " })

C.

rs.remove( " node-1.cluster1.mycompany.local:27017 " )rs.remove( " node-2.cluster1.mycompany.local:27017 " )rs.add({ host: " node-1.cluster1.mycompany.local:27017 " })

D.

rs.remove( " node-1.cluster1.mycompany.local:27017 " )rs.remove( " node-2.cluster1.mycompany.local:27017 " )rs.addNode({ host: " node-1.cluster1.mycompany.local:27017 " })

Consider a contacts collection that contains these documents:

{ " _id " : 1, " name " : " Poppy " , " birthday " : " 03-09-1984 " }

{ " _id " : 2, " name " : " Ashley " , " birthday " : " 08-12-1990 " }

{ " _id " : 3, " name " : " Cleo " , " birthday " : " 11-02-1976 " }

What query returns the document where the field name is " Poppy " ?

A.

db.contacts.find({ " name.Poppy " : 1 })

B.

db.contacts.find({ " name " : " poppy " })

C.

db.contacts.find({ " Poppy " : 1 })

D.

db.contacts.find({ " name " : " Poppy " })

What is the purpose of enabling TLS?

A.

To automate backup and restore operations.

B.

To ensure high availability of the database.

C.

To improve query performance.

D.

To provide encryption of data in transit.

In a sharded replicas set environment with multiple mongos servers, which of the following would decide the mongos failover?

A.

mongos

B.

mongo shell

C.

individual language drivers

D.

mongod

What is the purpose of elections in a replica set?

A.

A mechanism for replicating data across all replica set members asynchronously.

B.

A mechanism to choose a new primary when the current primary is no longer available.

C.

A mechanism to add new indexes to a running replica set.

D.

A mechanism to add additional secondaries when the current secondaries are unavailable.

You perform the following query on the sayings collection, which has the index

{ quote : " text " }:

Assuming the documents below are in the collection, which ones will the following query return? Check all that

apply.

db.sayings.find( { $text : { $search : " fact find " } } )

A.

{ _id : 3, quote : " Nobody will ever catch me. " }

B.

{ _id : 1, quote : " That ' s a fact, Jack. " }

C.

{ _id : 2, quote : " Find out if that fact is correct. " }