C100DBA Philosophy and Features Practice Question
A logistics company is designing a MongoDB database for a real-time shipment tracking system. The operations team needs to frequently update shipment statuses and query the latest events. The development team is debating the trade-offs of embedding versus referencing for the shipment events. Which two considerations align with MongoDB's philosophy for this scenario? (Choose two.)
⚠ Common exam trap
The trap here is thinking that embedding is always better for atomicity, ignoring that unbounded arrays can hit the 16 MB document limit and degrade performance.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Embedding events within the shipment document ensures atomic updates and fast reads for the event history.
The correct considerations are that embedding provides atomic updates and fast reads for the event history, while referencing allows unlimited growth and avoids the 16 MB limit. These reflect MongoDB's flexible modeling philosophy: choose embedding when data is accessed together and atomicity is needed, but opt for referencing when data grows unbounded or is accessed independently. The decision hinges on access patterns and data lifecycle.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Embedding events within the shipment document ensures atomic updates and fast reads for the event history.
Why this is correct
Embedding events in the shipment document allows the application to retrieve the entire event history with a single query, and updates to the shipment and its events can be atomic within a single document. This aligns with MongoDB's philosophy of storing data that is accessed together. However, it requires monitoring document growth to avoid hitting the 16 MB limit, especially if events are unbounded.
- ✗
Embedding events is always preferred because it eliminates the need for multi-document transactions.
Why it's wrong here
While embedding can reduce the need for multi-document transactions by keeping related data in one document, it is not always preferred. If events grow without bound, embedding can lead to document size issues and performance degradation. The decision should be based on access patterns, data growth, and atomicity requirements, not an absolute rule.
- ✗
Referencing events requires using $lookup for every read, which is as fast as an embedded document read.
Why it's wrong here
$lookup performs a left outer join, which is generally slower than reading an embedded document because it involves additional processing and potentially multiple shards. While $lookup is powerful, it does not match the performance of a single-document read. Therefore, referencing is not a direct substitute for embedding when read speed is critical.
- ✗
Embedding events ensures that the shipment document remains small and efficient for writes.
Why it's wrong here
Embedding events actually increases the size of the shipment document as events are added. If events are frequently added, the document can grow large, leading to more expensive updates and potential fragmentation. To keep documents small, referencing events in a separate collection is a better strategy when event volume is high.
- ✓
Referencing events in a separate collection allows unlimited growth and avoids the 16 MB document size limit.
Why this is correct
Referencing events in a separate collection prevents the shipment document from growing unbounded, which is crucial if events accumulate indefinitely. This approach avoids the 16 MB size limit and allows independent querying of events. However, it requires additional queries or $lookup to join data, which can impact performance. The choice depends on access patterns and growth expectations.
About these practice questions
This C100DBA question is part of Courseiva's 222-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official MongoDB exam blueprint
This C100DBA practice question is part of Courseiva's free MongoDB certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the C100DBA exam.