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

Viewing page 2 out of 4 pages
Viewing questions 11-20 out of questions
Questions # 11:

You are comparing values of different BSON types in mongodb. You want to compare from lowest to highest. Which comparison order is used?

Options:

A.

MinKey, Null, Numbers,Symbol, String,Object,Array,BinData


B.

MinKey, Null, Numbers,Object,Array,BinData,Symbol, String


C.

Object/Array^inData/Symbol,MinKey, Null, Numbers,String


D.

Objec^Array^inData,Symbol, String,MinKey, Null, Numbers


Expert Solution
Questions # 12:

Consider the following example document:

{

"_id": Objectld("5360c0a0a655a60674680bbe"),

"user"

"login": "irOn"

"description": "Made of steel"

"date": ISODate("2014-04-30T09:16:45.836Z"),

}

>

and index creation command:

db.users.createlndex( { "user.login": 1, "user.date": -1 }, "mylndex" )

When performing the following query:

db.users.find( { "user.login": /Air.*/ },

{ "user":1, "_id":0 > ).sort( { "user.date":1 > )

which of the following statements correctly describe how MongoDB will handle the query? Check all that apply.

Options:

A.

As an optimized sort query (scanAndOrder = false) using "mylndex" because we are sorting on an indexed field


B.

As an indexed query using "mylndex" because field "user.login" is indexed


C.

MongoDB will need to do a table/collection scan to find matching documents


D.

None of the above


E.

As a covered query using "mylndex" because we are filtering out "_id" and only returning "user.login"


Expert Solution
Questions # 13:

Which of the following needs to be performed prior to initiate backup on a sharded cluster?

Options:

A.

db.stopBalancer( )


B.

sh.stopServer( )


C.

db.stopServer( )


D.

sh.stopBalancer( )


Expert Solution
Questions # 14:

MongoDB is

Options:

A.

None of the above


B.

Object-oriented DBMS


C.

Relational DBMS


D.

Document-oriented DBMS


Expert Solution
Questions # 15:

Below is a sample document of "orders" collection

Question # 15

Options:

A.

$sort


Expert Solution
Questions # 16:

Which of the following command is used to get all the indexes on a collection?

Options:

A.

db.collection.showIndexes()


B.

db.collection.findlndexes()


C.

db.showIndexes()


D.

db.collection.getlndexesQ


Expert Solution
Questions # 17:

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?

Options:

A.

$arrayLimit


B.

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


C.

$removeFromSet


D.

None of the above


Expert Solution
Questions # 18:

Which of the following commands can cause the database to be locked?

Options:

A.

All of the above


B.

Inserting data


C.

Map-reduce


D.

Issuing a query


Expert Solution
Questions # 19:

Which option should be used to update all the documents with the specified condition in the MongoDB query?

Options:

A.

specify {all: true} as the third parameter of update command


B.

updateAII instead of update


C.

specify {updateAII: true} as the third parameter of update command


D.

specify {multi : true} as the third parameter of update command


Expert Solution
Questions # 20:

In a sharded cluster, from which node does one stop the balancer process before initiating backup?

Options:

A.

Any node


B.

replicaset primary node


C.

config server node


D.

mongos node


Expert Solution
Viewing page 2 out of 4 pages
Viewing questions 11-20 out of questions