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

C100DBA Exam Dumps - MongoDB Certified DBA Associate Questions and Answers

Question # 4

A MongoDB database administrator needs to improve the performance of the following query:

db.employees.find(

{},

{ name: 1, department: 0, salary: 1 }

).sort({ department: 1, salary: -1 });

What index should the administrator use to achieve this goal?

Options:

A.

db.employees.createIndex({ department: 1, salary: 1, name: 1 });

B.

db.employees.createIndex({ department: 1, salary: -1 });

C.

db.employees.createIndex({ salary: 1, name: 1, department: 0 });

D.

db.employees.createIndex({ name: 1, department: 1, salary: -1 });

Buy Now
Question # 5

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
Question # 6

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

What command lists all indexes for a collection?

Options:

A.

db.collection.info()

B.

db.collection.indexStats()

C.

db.collection.findIndexes()

D.

db.collection.getIndexes()

Buy Now
Question # 8

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
Question # 9

' mongoimport ' command is used for

Options:

A.

Batch data insertion

B.

None of the above

C.

Multiple command import

D.

Multiple command insertion

Buy Now
Question # 10

Below is a sample document of " orders " collection

Options:

A.

$project

Buy Now
Question # 11

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

Options:

A.

allPlansExecution

B.

customExecutionStats

C.

queryPlanner

D.

executionStats

Buy Now
Question # 12

In a replica set, which member is responsible for maintaining copies of the primary ' s data?

Options:

A.

Secondary

B.

Mongos

C.

Arbiter

D.

Shard

Buy Now
Question # 13

Which of the following command inside aggregate command is used in MongoDB aggregation to filter the documents to pass only the documents that match the specified condition(s) to the next pipeline stage.

Options:

A.

$aggregate

B.

$sum

C.

$match

D.

$group

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

C100DBA PDF

$21.25  $84.99
C100DBA Engine

C100DBA Testing Engine

$23.75  $94.99
C100DBA PDF + Engine

C100DBA PDF + Testing Engine

$33.75  $134.99