MongoDB Data Modeling Flashcards
6 cards from real MongoDB practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.
Read the first 6 MongoDB Data Modeling flashcards as text
What is the 'computed pattern' in MongoDB data modeling?
Answer: Pre-computing and storing frequently accessed calculated values in the document
The computed pattern stores the result of expensive calculations alongside the source data, avoiding repeated computation on every read.
What is the 'attribute pattern' in MongoDB schema design?
Answer: Transforming varied fields into a consistent array of key-value pairs
The attribute pattern converts documents with many similar but not identical fields into an array of {k, v} subdocuments, making indexing more efficient.
In MongoDB schema design, what is the 'extended reference pattern'?
Answer: Duplicating a subset of frequently accessed fields from the referenced document
The extended reference pattern stores the _id reference plus a few frequently accessed fields from the related document to reduce join-like operations.
What is document validation in MongoDB?
Answer: Enforcing schema rules on insert and update operations using validation expressions
MongoDB's document validation uses JSON Schema or query expressions to enforce rules on documents during insert and update operations.
What is the 'tree pattern' used for in MongoDB data modeling?
Answer: Representing hierarchical data structures like org charts or category trees
The tree pattern represents hierarchical parent-child relationships, with various sub-patterns like parent references, child references, or materialized paths.
Which MongoDB feature enforces that fields meet specific data type requirements?
Answer: Schema validation with $jsonSchema
$jsonSchema in collection validation rules allows specifying required fields, allowed types, value ranges, and other constraints enforced on write operations.
How this page was made: written with AI tools and published by Nathan Beja, founder of Practice Test Geeks, who is responsible for its content. Exam facts are checked against the official sources listed below. Not reviewed by a subject-matter expert. Editorial policy
Sources & references
Exam facts on this page (fees, format, dates, passing scores) are checked against these official sources; the date is our last check. Editorial policy
- 10geneducation.zendesk.com — Test dates, score release, passing score, test delivery, retake policy · verified Oct 2026
- learn.mongodb.com — Eligibility, fees, exam format, time limit · verified Oct 2026