MPD

MongoDB Python Developer (MPD) practice exams

290 questions in 5 timed practice tests. Each test has about 61 questions and a 80-minute limit. The pass mark is 70%. Results are split across the 6 exam domains.

Exam at a glance

MPD practice exam settings
Practice tests 5
Questions in total 290
Questions per test About 61
Time limit per test 80 minutes
Pass mark 70%
Question types Single answer and multiple answer (26 multiple-answer questions)
Level Associate
Category Data & Analytics

These are the settings of our practice tests. Check the official MongoDB exam page for the current exam format before you book.

Domains and weights

MPD exam domains, weights and question counts
Domain Weight Weight bar Questions in our bank
MongoDB Overview and the Document Model 8% 23
CRUD Operations 51% 148
Indexes 17% 49
Data Modeling 4% 12
Tools and Tooling 2% 6
Drivers (Python) 18% 52

Sample questions

Question 1 of 3

Which components make up a 12-byte ObjectId value generated by a MongoDB driver?

  1. A A 4-byte timestamp, a 5-byte per-process random value, and a 3-byte counter (correct answer)
  2. B A 4-byte machine IP address, a 4-byte process id, and a 4-byte sequence assigned by the primary
  3. C An 8-byte timestamp in milliseconds followed by a 4-byte hash of the collection name
  4. D A 6-byte MAC address of the client host and a 6-byte counter shared by all clients connected to the cluster
Why: An ObjectId contains a 4-byte seconds timestamp, a 5-byte per-process random value, and a 3-byte counter, so it is roughly sortable by creation time. It does not include a millisecond timestamp, a collection hash, IP or MAC addresses, and it is generated by the client without coordinating with the primary.

Question 2 of 3

A pipeline sorts 5 million documents on an unindexed field and fails because a blocking sort exceeded its memory limit in an older configuration. What is the correct remedy in PyMongo?

  1. A Replace $sort with $sortByCount, which does not use the blocking sort memory
  2. B Pass batch_size=5000000 to aggregate so all documents arrive in one batch
  3. C Add a $limit of 100 at the very end of the pipeline, after the $sort and every other stage
  4. D Pass allowDiskUse=True to aggregate, or add an index that supplies the sort order (correct answer)
Why: allowDiskUse lets blocking stages spill to temporary files (and is the default since 6.0 via allowDiskUseByDefault), while an index can remove the blocking sort entirely. A huge batch size does not change stage memory, a limit placed only after the sort still needs memory unless it coalesces with it into a top-k sort, and $sortByCount groups documents rather than sorting them.

Question 3 of 3

A pipeline must output, per customer, the total amount of completed orders sorted from highest to lowest total. Which stage order is MOST efficient and correct?

  1. A $sort on amount descending, then $group by customer with $sum, then $match on status
  2. B $match on status, then $group by customer with $sum, then $sort on the total descending (correct answer)
  3. C $group by customer and status with $sum, then $sort on the total, then $project the customers
  4. D $group by customer with $sum, then $match on status, then $sort on the total descending
Why: Filtering first with $match reduces the documents entering $group and can use an index on status; sorting after grouping orders customers by total. Matching on status after $group fails because status is no longer a field, sorting raw amounts before grouping does not order totals, and grouping by status too produces per-status totals without excluding non-completed orders.

What your score report looks like

Example attempt, MPD practice test 3

78%

Passed
Pass mark 70%

Score by exam domain
DomainWeightYour score%
MongoDB Overview and the Document Model 8%
88
CRUD Operations 51%
81
Indexes 17%
76
Data Modeling 4%
58
Tools and Tooling 2%
84
Drivers (Python) 18%
72

Study next: Data Modeling. It is below the pass mark and carries 4% of the exam.

Domains and pass mark from our MPD practice tests. Scores are an example attempt.

Study plans

Two weeks

  1. Day 1: take practice test 1 in exam mode to get a baseline.
  2. Days 2 to 5: domain mode on CRUD Operations and Drivers (Python), the two most heavily weighted domains.
  3. Day 6: practice test 2 in exam mode, then the mistakes quiz.
  4. Days 7 to 12: practice tests 3 to 5, one every other day, each followed by its mistakes quiz.
  5. Days 13 and 14: final mode. Book the exam when your readiness stays above the pass mark.

Four weeks

  1. Week 1: one practice test in practice mode, reading every explanation. Note your two lowest domains.
  2. Week 2: domain mode on those two domains, then a second practice test in exam mode.
  3. Week 3: practice tests 3 and 4 in exam mode, with the mistakes and flagged quizzes after each.
  4. Week 4: practice test 5 and final mode until your readiness holds above the pass mark.

Questions about the MPD practice exams

Are these real MPD exam questions?
No. We write every question ourselves and map it to the published MPD exam objectives. We do not use leaked or recalled questions.
Do the time limit and pass mark match the official exam?
They match the settings of our practice tests. Exam providers change their format from time to time, so check the official exam page before you book.
Can I try it before I pay?
Yes. The free mini exam has 15 questions with full explanations and needs no account.
How long do I keep access?
A single-exam purchase gives you 12 months of access. All-Access includes this exam for as long as your subscription runs.
What happens after I finish a test?
You get a score, a pass or fail against the pass mark, a score per domain and every answer with its explanation.

Last updated November 2026. Written and reviewed by the DevOpsCode Lab team.

DevOpsCode Lab is not affiliated with MongoDB. MPD and related names are trademarks of their owners.

Related exams
Exam Vendor Level Questions Minutes Price
DP-900Azure Data Fundamentals DP-900 Microsoft Foundational 225 45 $9.99
SPLK-1001Splunk Core Certified User (SPLK-1001) Splunk Foundational 300 60 $9.99
1Z0-071Oracle Database SQL 1Z0-071 Oracle Associate 315 120 $12.99
1Z0-082Oracle Database Admin I 1Z0-082 Oracle Associate 300 100 $12.99
A00-231SAS Base Programming A00-231 SAS Associate 300 135 $12.99
COF-C03SnowPro Core COF-C03 Snowflake Associate 300 70 $12.99