Exclusive Black Friday Deal: 70% Off All Exam Bundles! Use coupon code below to unlock your savings! - Ends in 0d 00h 00m 00s - Coupon code: Friday70

Free MongoDB Associate Database Administrator(Based on MongoDB 6.0 and 7.0+) Practice Questions

Question # 11

What is the first task that a secondary would perform on being prompted by another secondary for an election?

Options:

A.  

Start the election process for primary

B.  

Vote for the first secondary so that it would become the next primary

C.  

Vote for itself and then call for election

D.  

Connect to primary to confirm its availability

Discussion 0
Question # 12

A collection and a document in MongoDB is equivalent to which of the SQL concepts respectively?

Options:

A.  

Column and Row

B.  

Table and Row

C.  

Database and Table

D.  

Table and Column

Discussion 0
Question # 13

Below is a sample document of " orders " collection

Question # 13

Options:

A.  

$project

Discussion 0
Question # 14

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 "

Discussion 0
Question # 15

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

Options:

A.  

initializeUnorderedBulk

B.  

initializeUnorderedBulkOp

C.  

initializeBulk

D.  

initializeBulkOp

Discussion 0
Question # 16

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

Options:

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. " }

Discussion 0
Question # 17

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

Discussion 0
Question # 18

A database administrator notices that operations on the qa database are not completing, and have been in progress for longer than expected.

What command can the administrator run to see information on in-progress operations on the qa database?

Options:

A.  

db.listOps.ns(/^qa\./)

B.  

db.listOps(/^qa\./)

C.  

db.currentOp({ " ns " : /^qa\./})

D.  

db.currentOp.ns(/^qa\./)

Discussion 0
Question # 19

Update If Correct is an approach for which of the following concepts in MongoDB:

Options:

A.  

Concurrency Control

B.  

Atomicity

C.  

Performance Management

D.  

Transaction Management

Discussion 0
Question # 20

What operation updates the value of the unitsInStock field to 25 for a document with a " laptop " product, and inserts a new document if it does not exist?

Options:

A.  

db.inventory.updateOne({ product: " laptop " }, { $set: { unitsInStock: 25 } }, { upsert: true })

B.  

db.inventory.insertOne({ product: " laptop " }, { $set: { unitsInStock: 25 } }, { upsert: true })

C.  

db.inventory.insertOne({ product: " laptop " }, { $set: { unitsInStock: 25 } }, { upsert: True })

D.  

db.inventory.updateOne({ product: " laptop " }, { $set: { unitsInStock: 25 } }, { upsert: True })

Discussion 0

C100DBA PDF

C100DBA PDF (Printable)
$46.5
$154.99

C100DBA Testing Engine

C100DBA PDF (Printable)
$51
$169.99

C100DBA PDF + Testing Engine

C100DBA PDF (Printable)
$63.9
$212.99

Free Exams Sample Questions