Weekend Sale Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: cramtreat

C100DBA MongoDB Certified DBA Associate Exam (Based on MongoDB 4.4) Questions and Answers

Questions 4

Addding the index {a:l} can potentially decrease the speed of which of the following operations? Check all that apply.

Options:

A.

db.collection.update({b:456>, {$inc: {a:l> })

B.

db.collection.find( {a : 232} )

C.

db.collection.insert( { a:341})

Buy Now
Questions 5

Consider the following documents:

You perform the following query;

How many documents will be updated by the query?

Options:

A.

0

B.

1

C.

2

D.

3

E.

5

Buy Now
Questions 6

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

Buy Now
Questions 7

Which option can be used with update command so that a new document gets created if no matching document is found based on the query condition?

Options:

A.

upsert command instead of update command

B.

{update: true, insert: true} as the third parameter of update command

C.

This has to be handled in application code (Node.js, PHP, JAVA, C#, etc.) and cannot be handled in mongo shell query

D.

Specify {upsert : true } as the third parameter of update command

Buy Now
Questions 8

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

Buy Now
Questions 9

Dada una coleccion, cuales devuelve con la siguiente query db.coleccion.find({nombre:"ruben",apellido:"gomez"},{nombre:l,apellido:l,aficion:l});

Options:

A.

{ "-id" : Objectld("580a42b5dfblb5al7427d302"), "nombre" : "ruben", "apellido" : "gomez", "aficion" : v u "flipar" }

B.

{ "_id" : Objectld("580a42acdfblb5al7427d301"), "nombre" : "Luis", "apellido" : "gomez", "aficion" : u "flipar" }

C.

{ "_id" : Objectld("580a42acdfblb5al7427d301"), "nombre" : "ruben", "apellido" : "Pablo" , "aficion" : u "flipar"}

D.

{ "_id" : Objectld("580a42acdfblb5al7427d301"), "nombre" : "ruben", "apellido" : "gomez" >

Buy Now
Questions 10

‘$set' sets the value of

Options:

A.

Code block

B.

Name/value pair

C.

Key

D.

None of the above

Buy Now
Questions 11

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

Buy Now
Questions 12

Which of the following commands finds all the documents in the posts collection with post timestamp field as null?

Options:

A.

db.posts.find( { post_timestamp: { $fieldtype: null } } )

B.

db.posts.find( { post_timestamp: { $type: null } } )

C.

db.posts.find( { post_timestamp : { $type; 10 > > )

D.

db.posts.find( { post_timestamp: { $fieldtype: 10 } } )

Buy Now
Questions 13

Which option can be used with update command so that a new document gets created if no matching document is found based on the query condition?

Options:

A.

upsert command instead of update command

B.

This has to be handled in application code (Node.js, PHP, JAVA, C#, etc.) and cannot be handled in mongo shell query

C.

{update: true, insert: true} as the third parameter of update command

D.

Specify {upsert : true } as the third parameter of update command

Buy Now
Questions 14

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

Options:

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

Buy Now
Questions 15

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()

Buy Now
Questions 16

Given a replica set with five data-bearing members, suppose the primary goes down with operations in its oplog that have been copied from the primary to only one secondary. Assuming no other problems occur, which of the following describes what is most likely to happen?

Options:

A.

missing operations will need to be manually re-performed

B.

the secondary with the most current oplog will be elected primary

C.

reads will be stale until the primary comes back up

D.

the primary may roll back the operations once it recovers

E.

the most current secondary will roll back the operations following the election

Buy Now
Questions 17

In what format does mongodump creates backup files?

Options:

A.

BSON

B.

JSON

C.

SOAP

D.

XML

Buy Now
Questions 18

Which of the following is incorrect statement about find and findOne operations in MongoDB?

Options:

A.

findQ returns all the documents in a collection while findOne() retrieves only the first one.

B.

find.limit(l) is not the same query as findOne()

C.

findOneQ returns the actual first document retrieved from a collection

D.

findQ and findOneQ returns cursors to the collection documents

Buy Now
Questions 19

In a collection that contains 100 post documents, what does the following command do? db. posts. find().skip(5).limit(5)

Options:

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

Buy Now
Exam Code: C100DBA
Exam Name: MongoDB Certified DBA Associate Exam (Based on MongoDB 4.4)
Last Update: May 14, 2024
Questions: 132
C100DBA pdf

C100DBA PDF

$28  $80
C100DBA Engine

C100DBA Testing Engine

$33.25  $95
C100DBA PDF + Engine

C100DBA PDF + Testing Engine

$45.5  $130