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

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

Questions 4

Which are the ONLY ways to project portions of an array?

Options:

A.

$slice

B.

$

C.

All of the above

D.

$ elemMatch

Buy Now
Questions 5

Which of the following is true of the mechanics of replication in MongoDB? Check all that apply.

Options:

A.

Members of a replica set may replicate data from any other data-bearing member of the set by default

B.

Clients read from the nearest member of a replica ser by default

C.

Operations on the primary are recorded in a capped collection called the oplog

Buy Now
Questions 6

Given a collection posts as shown below having a document array comments, which of the following command will create an index on the comment author descending?

Options:

A.

db.posts.createIndex({commerits.$.author":-l});

B.

db.posts.createIndex({comments.$.author": {$desc:l>});

C.

db.posts.createIndex({comments.author":-l});

Buy Now
Questions 7

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 8

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

Options:

Buy Now
Questions 9

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

Buy Now
Questions 10

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 11

Consider the following document:

> db.c.find()

{ "_id" : 12, b : [ 3, 5, 7, 2, 1, -4, 3, 12 ] }

Which of the following queries on the "c" collection will return only the first five elements of the array in the "b"

field? E.g.,

Document you want returned by your query:

{ "_id" : 12, "b" : [ 3, 5, 7, 2, 1 ] >

Options:

A.

db.c.find( { > , { b : { $slice : [ 0 , 5 ] } } )

B.

db.c.find( { b : [ 0 , 5 ] > )

C.

db.c.find( { > , { b : { $substr[ 0 , 5 ] > > )

D.

db.c.find( { > , { b : [ 0, 1, 2, 3, 4, 5 ] > )

E.

db.c.find( { > , { b : [ 0 , 5 ] > )

Buy Now
Questions 12

What does the output x of the following MongoDB aggregation query result into; db.posts.aggregate( [ { $group: { _id; "$author", x: { $sum: $likes } } } ] )

Options:

A.

Average of likes on all the posts of an author, grouped by author

B.

Number of posts by an author

C.

Sum of likes on all the posts by all the authors

D.

Sum of likes on all the posts by an author, grouped by author

Buy Now
Questions 13

In a sharded replica set environment, the w Option provides ability for write concern and j Option provides ability for the data to be written on disk journal. Consider that we have a seven member replica set and we want to assure that the writes are committed to journal. What should be the value of j?

Options:

A.

7

B.

2

C.

1

D.

0

Buy Now
Questions 14

Which of the tags in a replica set configuration specify the operations to be read from the node with the least network latency?

Options:

A.

netLatency

B.

secondaryPreferred

C.

nearest

D.

primaryPreferred

Buy Now
Questions 15

Which mongodb tool is used to report details on number of database operations in MongoDB?

Options:

A.

mongostat

B.

mongotop

C.

mongorestore

D.

mongodump

Buy Now
Questions 16

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 17

Which of the following operators is used to updated a document partially?

Options:

A.

$set

B.

$update

C.

$project

D.

$modify

Buy Now
Questions 18

You have a replicated cluster with 1 primary, 3 secondary, 1 arbiter. One of the secondary is hidden. What is the replication factor of this replicated cluster?

Options:

A.

7

B.

03

C.

04

D.

06

Buy Now
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

Buy Now
Exam Code: C100DBA
Exam Name: MongoDB Certified DBA Associate Exam (Based on MongoDB 4.4)
Last Update: May 18, 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