MongoDB Associate Database Administrator Exam Prep
Free practice questions

Free MongoDB-DBA Practice Questions

10 exam-style questions with answers and explanations, straight from our 1,030-question bank. Tap an answer to check yourself. When you're ready, take the scored version in the free practice test.

Start the free practice test → ★★★★★4.9/5 from 2,400+ candidates · No signup

The MongoDB-DBA exam has 75 questions and runs 1 hour 30 minutes.

These 10 free MongoDB-DBA questions are organized by exam domain, so you can see how each part of the MongoDB Associate Database Administrator blueprint is tested. Reveal the answer and explanation under each question.

Domain 2: CRUD 26% of exam

Question 1

A ticket document contains tags: ["urgent", "billing"]. A DBA runs db.tickets.updateOne({ _id: 1 }, { $addToSet: { tags: "urgent" } }). What is the result?

Show answer & explanation

Correct answer: C - matchedCount: 1, modifiedCount: 0 - the array is left unchanged

Question 2

Documents in the sensors collection contain a readings array. A DBA must return only documents in which a SINGLE array element is both greater than 20 and less than 30. Which query is correct?

Show answer & explanation

Correct answer: D - { readings: { $elemMatch: { $gt: 20, $lt: 30 } } }

Domain 3: Indexes 18% of exam

Question 3

A DBA runs db.orders.find({ status: "shipped" }).explain("executionStats") and the output shows stage: "COLLSCAN", nReturned: 14, totalDocsExamined: 4200000. What is the MOST appropriate first action?

Show answer & explanation

Correct answer: A - Create an index on the status field

Question 4

Queries against the events collection match type with an equality condition, filter timestamp with a range condition, and sort the results by severity. Following the ESR guideline, which compound index is BEST?

Show answer & explanation

Correct answer: C - { type: 1, severity: 1, timestamp: 1 }

Question 5

An explain("executionStats") result shows an IXSCAN stage with no FETCH stage, and totalDocsExamined: 0. What does this indicate?

Show answer & explanation

Correct answer: C - The query was satisfied entirely from the index

Domain 4: Server Administration 10% of exam

Question 6

A three-member replica set must be upgraded to a newer MongoDB release with minimal disruption. What is the correct order of operations?

Show answer & explanation

Correct answer: B - Upgrade each secondary in turn, then step down and upgrade the primary

Domain 5: Monitoring 9% of exam

Question 7

A DBA needs to identify which collection is consuming the most read and write time on a busy mongod. Which tool reports this directly?

Show answer & explanation

Correct answer: D - mongotop

Domain 6: Security 15% of exam

Question 8

A junior DBA must be able to create indexes and view collection statistics on the reporting database, but must NOT be able to read document data. Which built-in role should be granted?

Show answer & explanation

Correct answer: B - dbAdmin

Question 9

An application user was created on the admin database and granted readWrite on sales. The application connects with mongodb://appuser:***@host:27017/sales and fails authentication, yet the same credentials succeed in mongosh when --authenticationDatabase admin is supplied. Which connection string option resolves this?

Show answer & explanation

Correct answer: A - authSource=admin

Domain 7: Replication 14% of exam

Question 10

A replica set is deployed as one primary, one secondary, and one arbiter. The secondary is taken offline for maintenance. What happens to writes issued with w: "majority"?

Show answer & explanation

Correct answer: B - They block until the write concern times out or the secondary returns

The rest of the MongoDB-DBA blueprint

The MongoDB-DBA exam also covers these domains. Drill them in the full free practice test:

That's 10 of 1,030

The full bank has 1,020 more MongoDB-DBA questions with explanations.

Continue in the free practice test →

View plans