C100DEV Data Modeling Practice Question
Which approach is best for handling a 'One-to-Squillions' relationship in MongoDB?
⚠ Common exam trap
Candidates often try to embed the children in the parent document, ignoring the document size limit (16MB) which makes this pattern fail for 'One-to-Squillions' relationships.
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
✓
Store the parent ID in the child documents.
For a 'One-to-Squillions' relationship, where a parent has a massive, unbounded number of children, neither embedding nor an array of references is viable. Storing the parent ID in the child documents (the 'referencing' pattern) is the only scalable solution. This allows the child documents to be queried efficiently by the parent ID without hitting document size limits or requiring massive updates to the parent document during growth.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Embed all child documents inside the parent document.
Why it's wrong here
Embedding a 'squillion' items will instantly violate the 16MB document size limit. This approach is only viable for small, bounded relationships. For massive datasets, this pattern leads to application failure and data loss, making it the worst possible choice for this specific scenario.
- ✗
Store an array of child IDs in the parent document.
Why it's wrong here
Storing an array of references in the parent still leads to an unbounded array growth issue. As the number of children grows, the parent document will eventually exceed the 16MB limit, and updating the array on every child insertion will cause significant performance bottlenecks and write contention.
- ✓
Store the parent ID in the child documents.
Why this is correct
Storing the parent ID in each child document is the standard 'referencing' approach for massive relationships. This keeps both parent and child documents small, avoids size limits, and allows you to index the parent ID on the child collection for fast, scalable retrieval of all related items.
- ✗
Use a separate collection for each child to ensure isolation.
Why it's wrong here
Creating a separate collection for each child is a significant anti-pattern that leads to unmanageable schema sprawl. It makes global queries across children impossible and destroys the ability to perform efficient indexing or aggregation. This approach would make the system essentially impossible to maintain or scale effectively over time.
About these practice questions
One of 259 original C100DEV practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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 C100DEV 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 C100DEV exam.