Halloween Sale Special - 75% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 75only

C100DBA MongoDB Associate Database Administrator(Based on MongoDB 6.0 and 7.0+) Questions and Answers

Questions 4

What command is used to check the value that " logLevel " is set to?

Options:

A.

db.runCommand({ getParameter: 1, " logLevel " : 1 })

B.

db.getParameter( " logLevel " )

C.

db.getParameter({ " logLevel " : 1})

D.

db.adminCommand({ getParameter: 1, " logLevel " : 1 })

Buy Now
Questions 5

‘$set ' sets the value of

Options:

A.

Code block

B.

Name/value pair

C.

Key

D.

None of the above

Buy Now
Questions 6

Which of the following node is used during election in a replication cluster?

Options:

A.

primary

B.

arbiter

C.

hidden

D.

secondary

Buy Now
Questions 7

Consider the following posts document:

C100DBA Question 7

Which of the following queries will return the documents but with only the first two tags in the tags array?

Options:

A.

db.posts.find({author: " Tom " ».limit({tags:2})

B.

db.posts.find({author: " Tom " ».limit($slice:{tags:2 > )

C.

Both " db.posts.find({author: " Tom " },{tags:{$slice:2}}) " and " db.posts.find({author: " Tom " }).limit($slice: {tags:2}) " are valid. $slice works both with projection and limit.

D.

db.posts.find({author: " Tom " > ,{tags:{$slice:2»)

Buy Now
Questions 8

What is one purpose of a hidden index?

Options:

A.

To remove it from $indexStats aggregation stage.

B.

To reduce the cost of a collection scan.

C.

To test the impact of deleting the index without actually deleting it.

D.

To hide associated documents in the collection.

Buy Now
Questions 9

To add a new user and enable authentication in MongoDB, which of the following steps need be executed?

Options:

A.

update users collection and restart mongodb

B.

All of the above

C.

update users collection and restart mongodb with -auth option

D.

update users collection and run db.enableAuthenticationQ

Buy Now
Questions 10

In a sharded replicas set environment with multiple mongos servers, which of the following would decide the mongos failover?

Options:

A.

mongos

B.

mongo shell

C.

individual language drivers

D.

mongod

Buy Now
Questions 11

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 12

Consider that you have a collection called population which has fields state and city. Which of the following query will calculate the population grouped by state and city?

Options:

A.

db.population.aggregate( [{ $group: { _id: { state: " $state " , city: " $city " },pop: { $pop: 1 } } }] )

B.

db.population.aggregate( [{ $group: { _id: { city: " $city " },pop: { $sum: " $pop " } } }] )Multi Document Transaction is not supported by MongoDB

C.

db.population.aggregate( [{ $group: { _id: { state: Estate " , city: " $city " },pop: { $sum: " $pop " } } }] )

D.

db.population.aggregate( [{ $group: { _id: { state: Estate " , city: " $city " },pop: { $sum: 1 > > > ] )

Buy Now
Questions 13

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

Buy Now
Questions 14

MongoDB is

Options:

A.

None of the above

B.

Object-oriented DBMS

C.

Relational DBMS

D.

Document-oriented DBMS

Buy Now
Questions 15

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
Questions 16

JSON stands for

Options:

A.

JavaScript Object Notation

B.

JavaScript Object Naming

C.

JavaScript Object Notice

D.

None of the above

Buy Now
Questions 17

Using an arbiter allows one to easily ensure an odd number of voters in replica sets. Why is this important?

Options:

A.

To help in disaster recovery

B.

To protect agains network partitions

C.

To enable certain read preference settings

D.

To add greather redundancy

E.

For more efficient backup operations

Buy Now
Questions 18

A MongoDB database administrator is asked to add the privilege find to a role named myRole.

What is the correct syntax for adding this privilege to the role in MongoDB?

Options:

A.

db.runCommand({grantPrivilegesToRole: " myRole " ,privileges: [{ resource: { db: " testDB " , collection: " " }, actions: [ " find " ] }] ,writeConcern: { w: " majority " },comment: " Granting find action " })

B.

db.runCommand({grantPrivilegesToRole: " myRole " ,privileges: [{ db: " testDB " , collection: " " , actions: [ " find " ] }] ,writeConcern: { w: " majority " },comment: " Granting find action " })

C.

db.runCommand({grantPrivilegesToRole: " myRole " ,privileges: {resource: { db: " testDB " , collection: " " }, actions: [ " find " ]},writeConcern: { w: " majority " },comment: " Granting find action " })

D.

db.runCommand({grantPrivilegesToRole: " myRole " ,privileges: [{ resource: { db: " testDB " , collection: " " }, actions: " find " }],writeConcern: { w: " majority " },comment: " Granting find action " })

Buy Now
Questions 19

Which of the following does MongoDB use to provide High Availability and fault tolerance?

Options:

A.

Sharding

B.

Indexing

C.

Replication

D.

Write Concern

Buy Now
Questions 20

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 21

What tool should be used to access and administer a MongoDB cluster?

Options:

A.

mongosh

B.

mongod

C.

mongostat

D.

mongotop

Buy Now
Questions 22

Which of the following collections stores authentication credentials in MongoDB?

Options:

A.

test.users

B.

local.users

C.

system.users

D.

users.users

Buy Now
Questions 23

What is the purpose of elections in a replica set?

Options:

A.

A mechanism for replicating data across all replica set members asynchronously.

B.

A mechanism to choose a new primary when the current primary is no longer available.

C.

A mechanism to add new indexes to a running replica set.

D.

A mechanism to add additional secondaries when the current secondaries are unavailable.

Buy Now
Questions 24

You are in a sharded cluster. What will you do prior to initiating backup in sharded cluster?

Options:

A.

db.stopBalancer()

B.

db.stopserver()

C.

sh.stopBalancer()

D.

sh.stopserverQ

Buy Now
Questions 25

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 26

Given the following MongoDB documents in the cars collection:

{

" carid " : 1,

" make " : " Toyota " ,

" model " : " Celica " ,

" mileage " : 143121,

" color " : " Red " ,

" year " : 2003,

" features " : [ " Leather Interior " , " 2WD " , " CD Player " ]

},

{

" carid " : 2,

" make " : " Honda " ,

" model " : " Civic " ,

" mileage " : 12000,

" color " : " White " ,

" year " : 2020,

" features " : [ " Cloth Interior " , " Sun Roof " , " XM Radio " ]

},

{

" carid " : 3,

" make " : " Tesla " ,

" model " : " Model S " ,

" mileage " : 5,

" color " : " Silver " ,

" year " : 2022,

" features " : [ " Leather Interior " , " Sun Roof " , " Auto Pilot " ]

}

What documents are returned from running the following $in query?

db.cars.find({ " features " : { $in: [ " Leather Interior " , " 2WD " , " Auto Pilot " ]}})

Options:

A.

[{ " carid " : 1, " make " : " Toyota " , " model " : " Celica " , " mileage " : 143121, " color " : " Red " , " year " : 2003, " features " : [ " Leather Interior " , " 2WD " , " CD Player " ] },{ " carid " : 3, " make " : " Tesla " , " model " : " Model S " , " mileage " : 5, " color " : " Silver " , " year " : 2022, " features " : [ " Leather Interior " , " Sun Roof " , " Auto Pilot " ] }]

B.

Documents with carid 1 and 2.

C.

Documents with carid 1, 2, and 3.

D.

Only the document with carid 3.

Buy Now
Questions 27

Which TWO mongosh commands can be used to shutdown the mongod daemon?

Options:

A.

db.adminCommand({ " shutdown " : 1 })

B.

use admindb.adminCommand({ " killOp " : 1, " op " : 27017 })

C.

use admindb.runCommand({ killAllSessions: [ { user: " * " , db: " * " } ] })

D.

use admindb.shutdownServer()

Buy Now
Questions 28

What method should be used to configure dynamically runtime parameters for the mongod process in MongoDB?

Options:

A.

Use the --setParameter flag with the mongod command.

B.

Use the --config flag to specify a configuration file at startup of mongod.

C.

Configure the parameters in the MongoDB URI string.

D.

Configure in the MongoDB client shell mongosh before starting the server.

Buy Now
Questions 29

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 30

Which of the following does MongoDB use to provide High Scalability?

Options:

A.

Replication

B.

Write Concern

C.

Indexing

D.

Sharding

Buy Now
Questions 31

Which of the following statements are true about the $match pipeline operator? Check all that apply.

Options:

A.

You should use it early as possible in the pipeline

B.

It can be used as many time as needed.

C.

It has a sintax similar to findQ commands.

Buy Now
Questions 32

What is a limitation of encryption at rest?

Options:

A.

It requires a lot of additional configuration.

B.

It protects against insecure network connections.

C.

It does not protect against data breaches.

D.

It can impact performance greatly.

Buy Now
Questions 33

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

C100DBA Question 33

Options:

Buy Now
Questions 34

Which of the following is correct about MongoDB?

Options:

A.

MongoDB supports geospatial indexes

B.

MongoDB supports some of the SQL functions

C.

MongoDB uses JSON format to represent documents

D.

MongoDB supports collection joins

Buy Now
Questions 35

Which of the documents below will be retrieved by the following query? Assume the documents are stored in a collection called " sample " . Check all that apply.

db.sample.find( { " $or " : [ { " a " : { " $in " : [ 3, 10] > }, { " b " : { " $lt " : 2 > > ] > )

Options:

A.

{ ' ' __id " :3, " a " : 4, " c " :0, " b " :14}

B.

{ ' ' _Jd " :7, " a " : 8, " c " :1, " b " :7}

C.

{ " .Jd " :6, " a " : 1, " c " :1, " b " :5}

D.

{ ' ' \Jd " :9, " a " : 17, " c " : 1, " b " : 1}

E.

{ \Jd " :10, " a " : 3, " c " : 1, " b " : 1}

F.

{ " .Jd " :: 2, " a " : 2, " c " :: 0, " b " : 1}

G.

{ " .Jd " :: 4, " a " : 5, " c " :: 0, " b " : 17}

Buy Now
Questions 36

What are TWO functions of sharding?

Options:

A.

Supporting deployments that distribute data across different geographical zones.

B.

Supporting deployments that require strong consistency across geographical zones.

C.

Supporting deployments with very large data sets and high throughput operations.

D.

Supporting deployments where datasets fit into RAM and performance needs are met.

E.

Supporting deployments that require redundancy and increased data availability.

Buy Now
Questions 37

Which features of relational database management systems were deliberately omitted in MongoDB and help us to obtain horizontal scalability? Check all that apply.

Options:

A.

Multi-statement transactions

B.

Joins

C.

Authentication

Buy Now
Questions 38

What feature is one of the differences between using MongoDB and a relational database management system (RDBMS) database?

Options:

A.

Sharding

B.

Replication

C.

Authentication

D.

Flexible Schema

Buy Now
Questions 39

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

Buy Now
Questions 40

Consider that the posts collection contains an array called ratings which contains ratings given to the post by various users in the following format:

C100DBA Question 40

Which of the following query will return all the documents where the ratings array contains elements that in some combination satisfy the query conditions?

Options:

A.

db.inventory.find( { ratings: { $elemMatch: { $gte: 3, $lte: 6 } } } )

B.

db.inventory.find( { ratings: { $elemMatch: { $gt: 3, $lt: 6 }

C.

db.inventory.find( { ratings: { ratings.$: { $gt: 5, $lt: 9 } } } )

D.

db.inventory.find( { ratings: { ratings: { $gt: 5, $lt: 9 } } } )

Buy Now
Questions 41

What tool do you use to see if you have a problem in the consumption of disk I / 0?

Options:

Buy Now
Questions 42

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

Buy Now
Questions 43

The difference between $push and $addToSet is:

Options:

A.

$addToSet needs the fields to be already present while $push will work even if the field is not present

B.

$addToSet adds the item to the field only if it does not exist already; while $push pushes the item to the field irrespective of whether it was present or not

C.

$addToSet adds the item to the field only if the new item is of the same datatype

D.

There is no major difference between them. $addToSet is a deprecated version of $push.

Buy Now
Questions 44

Given the following MongoDB document in the users collection:

{ " userid " : 1, " first " : " John " , " roles " : " Basic " }

Which statement results in this document?

{ " userid " : 1, " first " : " John " , " roles " : " SuperUser " }

Options:

A.

db.users.replaceOne({ userid: 1 }, { first: " John " , roles: " SuperUser " })

B.

db.users.replaceOne({ userid: 1 }, { userid: 1, first: " John " , roles: " SuperUser " })

C.

db.users.replaceOne({ userid: 1 }, { roles: " SuperUser " })

D.

db.users.replaceOne({ userid: 1 }, { $set: { roles: " SuperUser " } })

Buy Now
Questions 45

Which format/standard is used by MongoDB internally to store documents?

Options:

A.

JSON

B.

BSON

C.

B+ Trees

D.

JSON - Extended

Buy Now
Questions 46

In order to ensure that you can maintain high availability in the face of server failure, you should implement which of the following?

Options:

A.

Sharding

B.

Properly defined user roles

C.

Replication

D.

Put indexes on all of your documents

E.

The proper storage engine

Buy Now
Questions 47

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 48

Which of the following index would be optimum for the query?

Select all valid. db.test.find( { a : 5, c : 2 })

Options:

A.

db.test.ensurelndex( { c:l, a: 1})

B.

db.test.ensurelndex( { a : 1, c: 1, d: 1, b : 1})

C.

CH db.test.ensurelndex( { a :1, c:l})

D.

db.test.ensurelndex( { a: 1, b :1, c:l, d:l})

Buy Now
Questions 49

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

Options:

A.

$set

B.

$update

C.

$project

D.

$modify

Buy Now
Questions 50

Which of the following is supported by MongoDB?

Options:

A.

Transaction Management

B.

ACID Transactions

C.

Journaling

D.

Relationships between Collections (Primary Key Foreign Key)

Buy Now
Questions 51

Which of the following aggregation commands in MongoDB does not support sharded collections?

Options:

A.

mapReduce

B.

group

C.

aggregate

D.

All of the above

Buy Now
Exam Code: C100DBA
Exam Name: MongoDB Associate Database Administrator(Based on MongoDB 6.0 and 7.0+)
Last Update: Nov 1, 2026
Questions: 172

PDF + Testing Engine

$42.5  $169.99

Testing Engine

$32.5  $129.99
buy now C100DBA testing engine

PDF (Q&A)

$27.5  $109.99
buy now C100DBA pdf
dumpsmate guaranteed to pass

24/7 Customer Support

DumpsMate's team of experts is always available to respond your queries on exam preparation. Get professional answers on any topic of the certification syllabus. Our experts will thoroughly satisfy you.

Site Secure

mcafee secure

TESTED 01 Nov 2026