Career upgrade: Learn practical AI skills for better jobs and higher pay.
Level up
All Practice Exams

100+ Free MongoDB Developer Associate Practice Questions

Pass your MongoDB Associate Developer Certification exam on the first try — instant access, no signup required.

✓ No registration✓ No credit card✓ No hidden fees✓ Start practicing immediately
100+ Questions
100% Free
1 / 100
Question 1
Score: 0/0

What does the $type query operator do?

A
B
C
D
to track
Same family resources

Explore More MongoDB Certifications

Continue into nearby exams from the same family. Each card keeps practice questions, study guides, flashcards, videos, and articles in one place.

2026 Statistics

Key Facts: MongoDB Developer Associate Exam

60

Exam Questions

MongoDB

90 min

Exam Duration

MongoDB

600

Passing Score (scaled)

MongoDB

$150

Exam Fee

MongoDB

3 years

Certification Validity

MongoDB

Online

Exam Delivery

Examity proctored

The MongoDB Associate Developer exam has 60 questions in 90 minutes with a scaled passing score of 600. Key domains: CRUD Operations (~20%), Aggregation (~20%), Indexing (~15%), Data Modeling (~15%), Drivers and Tools (~15%), Transactions and Search (~15%). No formal prerequisites; 6+ months of development experience recommended. Exam fee is $150. Valid for 3 years. Online proctored via Examity.

Sample MongoDB Developer Associate Practice Questions

Try these sample questions to test your MongoDB Developer Associate exam readiness. Each question includes a detailed explanation. Start the interactive quiz above for the full 100+ question experience with AI tutoring.

1Which mongosh command inserts a single document into the 'orders' collection?
A.db.orders.insertOne({ item: 'book', qty: 5 })
B.db.orders.insertMany({ item: 'book', qty: 5 })
C.db.orders.insert.one({ item: 'book', qty: 5 })
D.db.orders.add({ item: 'book', qty: 5 })
Explanation: insertOne() is the correct method to insert a single document into a collection. It accepts a document object and returns an InsertOneResult with the acknowledged flag and insertedId. insertMany() accepts an array of documents for bulk inserts.
2Which query returns all documents in the 'products' collection where the price is greater than 100 and the category is 'electronics'?
A.db.products.find({ price: { $gt: 100 }, category: 'electronics' })
B.db.products.find({ price: > 100, category: 'electronics' })
C.db.products.find({ $and: { price: 100, category: 'electronics' } })
D.db.products.find({ price: { $gte: 100 }, category: 'electronics' })
Explanation: MongoDB uses $gt (greater than) as a comparison operator within a field condition object. Multiple conditions at the top level of a find() query are implicitly joined with AND logic, so specifying both fields works correctly without an explicit $and operator.
3What does the following aggregation pipeline return? db.sales.aggregate([ { $match: { status: 'completed' } }, { $group: { _id: '$region', total: { $sum: '$amount' } } } ])
A.The total sales amount grouped by region for completed sales
B.The count of completed sales documents grouped by region
C.All completed sales documents sorted by region
D.The average sales amount per region for all sales regardless of status
Explanation: $match filters to only 'completed' status documents. $group then groups the filtered documents by the 'region' field (using _id: '$region') and uses $sum accumulator to total the 'amount' field for each group. The result is one document per region with its total sales amount.
4In an aggregation pipeline, which stage would you use to join documents from a 'customers' collection into an 'orders' collection based on a matching customer ID?
A.$lookup
B.$merge
C.$graphLookup
D.$unionWith
Explanation: $lookup performs a left outer join from a foreign collection into the current pipeline documents. You specify the from collection, localField (in the current document), foreignField (in the foreign collection), and as (output array field name). It is the standard way to join related data from another collection.
5You want to create a compound index on the 'orders' collection to efficiently support queries that filter on 'customerId' and sort by 'orderDate' descending. Which command is correct?
A.db.orders.createIndex({ customerId: 1, orderDate: -1 })
B.db.orders.createIndex({ customerId: 1 }, { orderDate: -1 })
C.db.orders.addIndex({ customerId: 1, orderDate: -1 })
D.db.orders.createIndex({ customerId: -1, orderDate: 1 })
Explanation: createIndex() accepts a single document specifying the index key pattern. A compound index includes multiple fields in one index document. 1 means ascending and -1 means descending. The ESR rule (Equality, Sort, Range) recommends placing equality fields first, then sort fields — so customerId first, orderDate second.
6What type of index should you create to efficiently query documents where the 'tags' field is an array and you need to find documents containing a specific tag value?
A.Multikey index
B.Text index
C.Hashed index
D.Wildcard index
Explanation: A multikey index is automatically created when you index a field that contains an array value. MongoDB creates index entries for each element in the array, making it possible to efficiently query for documents that contain a specific value in the array. You create it the same way as a regular index — MongoDB detects the array and creates it as multikey.
7Which aggregation stage would you use to reshape documents so that only the 'name' and 'email' fields are included in the output?
A.{ $project: { name: 1, email: 1, _id: 0 } }
B.{ $match: { name: 1, email: 1 } }
C.{ $filter: { name: 1, email: 1 } }
D.{ $select: { name: 1, email: 1 } }
Explanation: $project reshapes documents in the pipeline by including or excluding fields. Setting a field to 1 includes it; setting to 0 excludes it. By default _id is included, so setting _id: 0 explicitly excludes it. This stage can also add computed fields using expressions.
8What is the purpose of the $unwind aggregation stage?
A.It deconstructs an array field, outputting one document per array element
B.It joins documents from two collections on a matching field
C.It groups documents by a specified field and applies accumulators
D.It sorts documents in the pipeline by one or more fields
Explanation: $unwind takes an array field and outputs one document for each element in that array. The resulting documents have the array field replaced with a single element. This is often used before $group when you need to aggregate over array elements individually.
9Which update operator adds a value to an array field only if the value does not already exist in the array?
A.$addToSet
B.$push
C.$pull
D.$pop
Explanation: $addToSet adds an element to an array only if it is not already present, preventing duplicates. $push always appends the element regardless of whether it already exists. This makes $addToSet useful for maintaining arrays that function like sets.
10When using the MongoDB Node.js driver, which method on a MongoClient object is used to obtain a reference to a specific database?
A.client.db('databaseName')
B.client.database('databaseName')
C.client.connect('databaseName')
D.client.getDatabase('databaseName')
Explanation: The MongoClient.db() method returns a Db object reference for the named database. This does not create a network round trip — it just returns a reference. You then call collection-level methods on the Db object. MongoClient must already be connected before calling db().

About the MongoDB Developer Associate Exam

The MongoDB Associate Developer certification validates foundational skills building applications with MongoDB. It tests knowledge of CRUD operations, the aggregation pipeline, indexing strategies, data modeling, using official drivers, and multi-document transactions. It is delivered online via Examity and is valid for 3 years.

Questions

60 scored questions

Time Limit

90 minutes

Passing Score

600 (scaled)

Exam Fee

$150 (Examity (online proctored))

MongoDB Developer Associate Exam Content Outline

~20%

CRUD Operations

Create, read, update, and delete operations using mongosh and drivers; query operators including comparison, logical, element, and array operators; projection and sorting

~20%

Aggregation

Building aggregation pipelines with $match, $group, $project, $sort, $limit, $skip, $lookup for joins, $unwind for arrays, $addFields, $count, and $out for writing results

~15%

Indexing

Single-field, compound, multikey (array), text, and wildcard indexes; using explain() to analyze query plans; covered queries; index intersection; partial and sparse indexes

~15%

Data Modeling

Embedding vs referencing trade-offs; one-to-many and many-to-many relationships; schema design patterns (bucket, outlier, computed); schema validation with $jsonSchema

~15%

Drivers and Tools

Connecting to MongoDB with official drivers (Node.js, Python, Java); MongoClient usage; mongosh shell commands; MongoDB Compass GUI; Atlas Data Explorer; connection strings (SRV format)

~15%

Transactions and Search

Multi-document ACID transactions with sessions; read concern and write concern levels; retryable writes; Atlas Search index configuration and the $search aggregation stage

How to Pass the MongoDB Developer Associate Exam

What You Need to Know

  • Passing score: 600 (scaled)
  • Exam length: 60 questions
  • Time limit: 90 minutes
  • Exam fee: $150

Keys to Passing

  • Complete 500+ practice questions
  • Score 80%+ consistently before scheduling
  • Focus on highest-weighted sections
  • Use our AI tutor for tough concepts

MongoDB Developer Associate Study Tips from Top Performers

1Master the aggregation pipeline — $match, $group, $lookup, $unwind, and $project appear heavily on the exam
2Practice CRUD operations in mongosh with real query operators: $eq, $gt, $in, $elemMatch, $size
3Understand when to embed vs reference documents and the trade-offs for read vs write performance
4Know index types: single-field, compound (field order matters), multikey for arrays, text, and wildcard
5Use explain('executionStats') to read query plans and identify COLLSCAN vs IXSCAN
6Understand multi-document transactions: sessions, commitTransaction, abortTransaction, write concern 'majority'
7Complete free MongoDB University courses M001, M121, and M320 before the exam
8Practice with MongoDB Compass to visualize query performance and build aggregation pipelines visually

Frequently Asked Questions

What is the MongoDB Associate Developer exam?

The MongoDB Associate Developer exam validates skills in building applications with MongoDB. It covers CRUD operations, aggregation pipelines, indexing, data modeling, official drivers, and transactions. The exam has 60 questions, 90 minutes, and requires a scaled score of 600 to pass. It is delivered online via Examity.

How much does the MongoDB Developer Associate exam cost?

The MongoDB Associate Developer exam costs $150 USD. The certification is valid for 3 years after passing. MongoDB University free courses (M001, M100, M121) are available to help you prepare at no additional cost.

What is the passing score for the MongoDB Developer Associate exam?

The passing score is 600 on a scaled score range of 200–800. You must answer approximately 75% of questions correctly. Results are provided immediately after completing the online proctored exam.

What are the main topics on the MongoDB Developer Associate exam?

The exam covers six domains: CRUD Operations (~20%), Aggregation Pipeline (~20%), Indexing (~15%), Data Modeling (~15%), Drivers and Tools (~15%), and Transactions and Atlas Search (~15%). Aggregation pipeline stages and query operators are heavily tested.

Do I need prerequisites for the MongoDB Developer Associate exam?

No formal prerequisites are required, but MongoDB recommends at least 6 months of application development experience using MongoDB. Completing free MongoDB University courses M001 (Basics), M100 (Atlas Essentials), and M121 (Aggregation) is strongly recommended.

How long is the MongoDB Developer Associate certification valid?

The MongoDB Associate Developer certification is valid for 3 years from the date you pass the exam. After 3 years, you must recertify by passing the current version of the exam to maintain your certification status.