Study guide · Flashcards and memory notes

MongoDB Associate Developer flashcards

42 recall cards for the current Associate Developer outline: document model, CRUD, indexes, modeling, Atlas tools, and drivers.

MongoDB6 decks · 42 cardsNo sign-up required

How to use these cards: Say the operator or the API out loud before you flip the card, and mark it honestly. Revisit the cards you missed tomorrow rather than rereading them right away. Progress is kept only while this page is open. For the full explanations, see the core notes.

Study mode

Choose a deck, flip each card, and mark what you already know.

All flashcards

Select a question to reveal its answer.

Deck 1 · Overview

Documents, BSON, and embedding.

4 cards
1.1What does passing this exam award by itself?

MongoDB Certified Associate Developer. It does not award Associate DBA, Associate Data Modeler, or Associate Atlas Administrator.

1.2What is the primary data unit?

A document. BSON adds typed values such as ObjectId and Date under the JSON-like view.

1.3When is embedding a natural fit?

When nested data is accessed together and stays within size and update limits. Unbounded arrays are a warning sign.

1.4Must every document in a collection share the same fields?

No. Schema is flexible unless you add validation.

Deck 2 · CRUD

Writes, reads, aggregation, and Search.

14 cards
2.1Which operator sets a field value?

$set. $unset removes. $inc changes numbers.

2.2What does upsert: true do on a miss?

It can insert a new document. Without upsert, matched count stays zero.

2.3Which stage filters like find?

$match. Put selective matches early when indexes can help.

2.4Which stage groups and totals?

$group with accumulators such as $sum.

2.5Which stage joins another collection?

$lookup with from, localField, foreignField, and as.

2.6What does $out do?

It writes pipeline results to a collection, replacing it. $merge can incorporate into existing data.

2.7What does a projection control?

Which fields are returned. It does not change which documents match.

2.8How do you page a large find?

Iterate a cursor with limit and a stable sort, preferably keyset pagination.

2.9countDocuments vs estimatedDocumentCount?

countDocuments applies a filter. estimatedDocumentCount is a metadata estimate.

2.10Which update appends to an array?

$push. $pull removes matching elements. $pop removes an end.

2.11What does $elemMatch require?

One array element that satisfies multiple conditions together.

2.12How do you query Atlas Search?

Create a search index and use $search in an aggregation.

2.13Which API updates and returns a document?

findOneAndUpdate, with options for pre-image or post-image.

2.14What does bulkWrite batch?

Mixed insert, update, replace, and delete models in one API call. Large inputs can require multiple server requests.

Deck 3 · Indexes

createIndex, compound keys, explain.

8 cards
3.1How do you create an ascending index on email?

createIndex({ email: 1 }). Use -1 for descending.

3.2What does unique enforce?

No duplicate indexed key values (with option-specific missing-field behavior).

3.3What is ESR for compound indexes?

Equality, then sort, then range as a common design heuristic.

3.4What does explain show?

Whether the plan uses an index or a collection scan, plus execution stats.

3.5What is a covered query?

A query answered from the index alone without fetching full documents.

3.6When is an index multikey?

When an indexed field contains arrays.

3.7What does a TTL index do?

Expire documents after a time based on a date field.

3.8Why can indexes slow writes?

Each write must also update index structures.

Deck 4 · Modeling

Embed, reference, subsets.

4 cards
4.1When prefer referencing?

Independent updates, large growth, or reuse across many parents.

4.2What is the subset pattern?

Keep a small hot slice with the parent and store full detail elsewhere.

4.3Why are unbounded arrays risky?

Document size, rewrite cost, and the 16 MB BSON limit.

4.4When is controlled duplication OK?

Read-heavy pages with stable labels that would otherwise force joins on every view.

Deck 5 · Tools

Atlas UI practice surfaces.

2 cards
5.1Where do you browse documents in Atlas without an app?

Data Explorer.

5.2Why load a sample dataset?

Ready collections for practice queries, such as sample_mflix.

Deck 6 · Drivers

URI, pool, language APIs.

10 cards
6.1What does a connection URI identify?

Protocol, hosts, optional credentials, and default database.

6.2Why pool connections?

Reuse TCP connections instead of connecting per operation.

6.3PyMongo insert one document?

collection.insert_one(document).

6.4Node find many documents?

collection.find(filter) returning a cursor.

6.5How many MongoClient instances for a long-lived app?

One shared client for the process.

6.6Common Atlas URI scheme?

mongodb+srv:// with DNS SRV discovery.

6.7findOne on a miss returns?

null or None by default, not an automatic upsert.

6.8Where do pool size settings live?

On the MongoClient / URI options, not inside $match.

6.9How run aggregation in PyMongo?

collection.aggregate(pipeline) with a list of stages.

6.10Language tracks at registration?

Node.js, Python, Java, PHP, or C#.

Continue the MongoDB study path

The overview, core notes, flashcards, and practice exams are all published.

MongoDB hub →
Available

Overview

Exam format, the six section weights, and a lab plan.

Available

Core Notes

Reference notes for CRUD, indexes, modeling, and drivers.

Available · You are here

Flashcards & Memory Notes

42 recall cards in six decks, plus memory notes for operators and indexes.

Available

Practice Exams

200 original questions across the six official sections.

Official exam sources

Card facts follow the MongoDB Associate Developer exam page and the developer learning paths. Method behavior is in the CRUD documentation and index documentation. These cards are independent recall prompts, not official exam items.

AWS Data Engineer

An AWS data pipeline exam. It is not the MongoDB Associate Developer credential.

CompTIA Data+

A vendor-neutral data exam. It does not award a MongoDB certification.

Apply concepts in the Scenario Workshop →