Summer Special Flat 65% Limited Time Discount offer - Ends in 0d 00h 00m 00s - Coupon code: netdisc

MongoDB C100DBA MongoDB Certified DBA Associate Exam (Based on MongoDB 4.4) Exam Practice Test

Page: 1 / 13
Total 132 questions

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

Testing Engine

  • Product Type: Testing Engine
$42  $119.99

PDF Study Guide

  • Product Type: PDF Study Guide
$36.75  $104.99
Question 1

Which command is used to determine storage capacity of specific database?

Options:

A.

mongotop

B.

dbstats

C.

mongostat

D.

constats

Question 2

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

Question 3

What tool would you use if you want to save a gif file in mongo?

Options:

Question 4

What is the maximum size of a MongoDB document

Options:

A.

16 MB

B.

12 MB

C.

2 MB

D.

There is no maximum size. It depends on the RAM.

Question 5

When should we consider representing a one-to-many relationship in an embedded collection instead of separate collection?

Options:

A.

When the many is not very large

B.

When the many is very large

C.

Always

D.

Never

Question 6

As per the aggregation pipeline optimization concepts, if you have a $sort followed by a $match:

Options:

A.

Providing these parameters in any order does not impact the performance

B.

$sort moves before $match

C.

MongoDB does not do any movements by default and will use the order provided

D.

$match moves before $sort

Question 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.

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

Question 8

What is the replication factor for a replicated cluster with 1 primary, 3 secondaries with one of them hidden. The set also has an arbiter?

Options:

A.

None of the above

B.

5

C.

3

D.

4

Question 9

What is the on-premise solution having functionality equivalent to cloud manager?

Options:

A.

Service Manager

B.

Replica Manager

C.

Ops Manager

D.

Journaling

Question 10

What is the defau size of a GridFS chunk?

Options:

A.

255 K

B.

1 MB

C.

16 MB

D.

2 MB

Question 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

Question 12

In a replicated cluster, which of the following node would only be used during an election?

Options:

A.

arbiter

B.

primary

C.

hidden

D.

secondary

Question 13

Consider the following example document from the sample collection. All documents in this collection have the same schema.

Which of the following queries will replace this with the document.

Options:

A.

db.sample.update( { "_id" : 3 } , { "$set" : { "_id" : 7 , "c" : 4 > > )

B.

db.sample.update( { "_id" : 3 > , { "_id" : 7 , "c" : 4 > , { "justOne" : true > ) / □ This operation cannot be done with a single query.

C.

db.sample.update( { "_id" : 3 > , { "_id" : 7 , "c" : 4 , { "$unset" : [ "a" , "b" ] } } )

D.

db.sample.update( { "_id" : 3 > , { "_id" : 7 , "c" : 4 > )

Question 14

Which of the following collections stores authentication credentials in MongoDB?

Options:

A.

test.users

B.

local.users

C.

system.users

D.

users.users

Question 15

What does the following $slice query return using the following command? db.posts.find( {}, { comments: { $slice: [ -10, 5 ] } } )

Options:

A.

Returns 5 comments, beginning with the last 10 items

B.

Returns 10 comments, beginning with the last

C.

Returns 10 comments, beginning with the first

D.

Returns 5 comments, beginning with the first 10 items

Question 16

Below is a sample document of "orders" collection

Options:

A.

$project

Question 17

The oplog (operations log) is a special capped collection that keeps a rolling record of all operations that modify the data stored in your databases. All the replica set members contain a copy of the oplog in the following collection:

Options:

A.

oplog.rs

B.

..oplog.rs

C.

.oplog.rs

D.

local.oplog.rs

Question 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

Question 19

The following aggregation option is used to specify the specific fields that needs to be passed to the next stage of the aggregation pipeline:

Options:

A.

$project

B.

$aggregate

C.

$match

D.

$group

Page: 1 / 13
Total 132 questions