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

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

Questions 4

Consider the following posts document:

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 5

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 6

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 7

Which operations add new documents to a collection?

Options:

A.

Create

B.

update

C.

insert

D.

delete

Buy Now
Questions 8

A collection named products contains the following documents:

{ " _id " : 1, " name " : " Laptop " , " price " : 1500 }

{ " _id " : 2, " name " : " Smartphone " , " price " : 800 }

{ " _id " : 3, " name " : " Tablet " , " price " : 600 }

{ " _id " : 4, " name " : " Monitor " , " price " : 300 }

{ " _id " : 5, " name " : " Headphones " , " price " : 200 }

Given the following query:

db.products.find().sort({ " price " : -1 }).limit(2)

What is the expected output?

Options:

A.

Laptop (1500) and Smartphone (800).

B.

Monitor (300) and Headphones (200).

C.

All five documents in descending price order.

D.

Headphones (200) and Monitor (300).

Buy Now
Questions 9

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 10

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 11

Which TWO indicators should an administrator keep an eye on to determine if the storage capacity is nearing its limit?

Options:

A.

The execution time of the same query increases over time.

B.

Disk space utilization on the server is consistently above 90%.

C.

The number of documents in the database is increasing.

D.

Message errno:28 No space left on device is present in the log file.

E.

The number of available read or write tickets is consistently low.

Buy Now
Questions 12

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 13

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 14

Which TWO commands can be used to check for all active operations on the current node?

Options:

A.

db.currentOp({ op : " command " })

B.

db.adminCommand({ " all " : currentOp})

C.

db.currentOp(true)

D.

db.adminCommand({ currentOp : true })

E.

db.currentOp({ " all " : true })

Buy Now
Questions 15

Which of the following needs to be performed prior to initiate backup on a sharded cluster?

Options:

A.

db.stopBalancer( )

B.

sh.stopServer( )

C.

db.stopServer( )

D.

sh.stopBalancer( )

Buy Now
Questions 16

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

Options:

A.

$set

B.

$update

C.

$project

D.

$modify

Buy Now
Questions 17

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 18

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 19

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\./)

Buy Now
Questions 20

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 21

If you have created a compound index on (A,B, C) which of the following access pattern will not be able to utilize the index?

Options:

A.

A, B, C

B.

A

C.

B, C

D.

A, B

Buy Now
Questions 22

The________operator can be used to identify an element in the array to be updated without explicitly specifying

the position of the element.

Options:

A.

$ elemMatch

B.

$slice

C.

Updating an array field without knowing its index is not possible.

D.

$

Buy Now
Questions 23

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 24

What read preference should your application use if you want to read from the primary under normal circumstances but allow reads from secondaries when a primary is unavailable?

Options:

A.

secondaryPreferred

B.

Secondary

C.

nearest

D.

primary

E.

primaryPreferred

Buy Now
Questions 25

What encoded format does MongoDB store documents in?

Options:

A.

Base 64

B.

JSON

C.

BSON

D.

XML

Buy Now
Questions 26

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

Buy Now
Questions 27

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 28

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

Options:

A.

Service Manager

B.

Replica Manager

C.

Ops Manager

D.

Journaling

Buy Now
Questions 29

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

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 31

What attribute of the oplog ensures consistency in a replicated dataset?

Options:

A.

Natural Ordering

B.

Concurrency Control

C.

Flow Control

D.

Idempotent

Buy Now
Questions 32

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: { $sum: 1 > > > ] )

B.

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

C.

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

D.

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

Buy Now
Questions 33

Consider a collection posts which has fields: Jd, post_text, post_author, post_timestamp, post_tags etc. Which of the following query retrieves ONLY the key named post_text from the first document retrieved?

Options:

A.

db.posts.finOne({},{_id:0, post_text:1})

B.

db.posts.findOne({post_text: 1})

C.

db.posts.find({},{_id:Of post_text:1})

D.

db.posts.finOne«},{post_text:l})

Buy Now
Questions 34

Which of the following are common uses of the mongo shell? Check all that apply

Options:

A.

Perform queries against MongoDB collections

B.

Perform administrative tasks

C.

Use as a JavaScript framework for your production system

Buy Now
Questions 35

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 36

Which of the following is a valid Replica Set configuration if you want:

1-Have 3 copies of everything

2- That RS3 is never primary

2- That RSI and RS2 can be primary?

You had to see the different configurations, RS3 could be hidden or priority 0 (But not a referee because we need

3 replicas), while RSI and RS2 could NOT have priority 0 or be hidden or anything like that

In a 4-member RS RSO , RSI, RS2 and RS3 + Referee, RSO (primary) falls after some write operations that have

replicated RSI and RS2 (but NOT RS3), who can get up as the new primary?

The configuration comes and in it we see that RS2 has a hidden: true (or a priority: 0, (I don ' t remember)

Options:

A.

ORS1

B.

ORS2

C.

ORS3

D.

O arbiter

E.

RSO

Buy Now
Questions 37

What are the audit log destinations? (Select three)

Options:

A.

syslog

B.

file

C.

TCP/IP port

D.

database

E.

console

Buy Now
Questions 38

Mongodb does provide high availability via which option?

Options:

A.

Replication

B.

Indexing

C.

Sharding

D.

Journaling

Buy Now
Questions 39

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 40

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 41

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

Buy Now
Questions 42

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

Options:

Buy Now
Questions 43

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

Buy Now
Questions 44

Which of the following are valid json documents? Select all that apply.

Options:

A.

{ " a " :l, " b " :{ " b " :l, " c " : " foo " , " d " : " bar " , " e " :[l,2,4]}}

B.

{ " city " : " New York " , " population " , 7999034, boros:{ " queens " , " manhattan " , " staten island " , " the bronx " , u " brooklyn " }}

C.

{ " name " : " Fred Flintstone " ; " occupation " : " Miner " ; " wife " : " Wilma " }

D.

{ }

Buy Now
Questions 45

Which is the default mode in which the explain() command runs?

Options:

A.

allPlansExecution

B.

customExecutionStats

C.

queryPlanner

D.

executionStats

Buy Now
Questions 46

A MongoDB administrator needs to create a new role with only the read privileges for the products database.

What command should the administrator use?

Options:

A.

db.createRole({ role: " productRead " , privileges: [ { resource: { db: " products " , collection: " * " }, actions: [ " readAnyDatabase " ] } ] , roles: [] }, { w: " majority " , wtimeout: 5000 })

B.

db.createRole({ role: " productRead " , privileges: [ { resource: { db: " products " , collection: " " }, actions: [ " find " ] } ] , roles: [] }, { w: " majority " , wtimeout: 5000 })

C.

db.createRole({ role: " productRead " , privileges: [ { resource: { db: " products " , collection: " * " }, actions: [ " readWrite " ] } ] , roles: [] }, { w: " majority " , wtimeout: 5000 })

D.

db.createRole({ role: " productRead " , privileges: [ { resource: { db: " products " , collection: " * " }, actions: [ " read " ] } ] , roles: [] }, { w: " majority " , wtimeout: 5000 })

Buy Now
Questions 47

What command set removes node-1.cluster1.mycompany.local:27017 and node-2.cluster1.mycompany.local:27017 from the replica set, then adds node-1.cluster1.mycompany.local:27017 back to the replica set?

Options:

A.

rs.removeNode( " node-1.cluster1.mycompany.local:27017 " )rs.removeNode( " node-2.cluster1.mycompany.local:27017 " )rs.add({ host: " node-1.cluster1.mycompany.local:27017 " })

B.

rs.removeNode( " node-1.cluster1.mycompany.local:27017 " )rs.removeNode( " node-2.cluster1.mycompany.local:27017 " )rs.addNode({ host: " node-1.cluster1.mycompany.local:27017 " })

C.

rs.remove( " node-1.cluster1.mycompany.local:27017 " )rs.remove( " node-2.cluster1.mycompany.local:27017 " )rs.add({ host: " node-1.cluster1.mycompany.local:27017 " })

D.

rs.remove( " node-1.cluster1.mycompany.local:27017 " )rs.remove( " node-2.cluster1.mycompany.local:27017 " )rs.addNode({ host: " node-1.cluster1.mycompany.local:27017 " })

Buy Now
Questions 48

In a replica set, a_________number of members ensures that the replica set is always able to select a primary.

Options:

A.

Even

B.

Odd

C.

2

D.

Depends on the application architecture

Buy Now
Questions 49

JSON stands for

Options:

A.

JavaScript Object Notation

B.

JavaScript Object Naming

C.

JavaScript Object Notice

D.

None of the above

Buy Now
Questions 50

What does the totalKeysExamined field returned by the explain method indicate?

Options:

A.

Number of documents that match the query condition

B.

Number of index entries scanned

C.

Details the completed execution of the winning plan as a tree of stages

D.

Number of documents scanned

Buy Now
Questions 51

What command will successfully start the mongod daemon with all default settings as a background task?

Options:

A.

mongod --fork --port 27017

B.

mongod --fork --dbpath default

C.

mongod --fork --logpath /var/log/mongodb/mongod.log

D.

mongod --default

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

C100DBA PDF

$21.25  $84.99
C100DBA Engine

C100DBA Testing Engine

$25  $99.99
C100DBA PDF + Engine

C100DBA PDF + Testing Engine

$33.75  $134.99