C100DEV MongoDB Overview and Document Model Practice Question
Which of the following describes the 'schema-flexible' nature of MongoDB?
⚠ Common exam trap
Students often believe schema flexibility means documents in a collection can have completely unrelated business domains, rather than varying structures for similar entities.
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
✓
Documents can have different fields, and the structure can change over time.
Schema-flexibility means that documents in the same collection do not need to have the same fields or structure. This allows developers to iterate quickly, as adding new fields or changing data structures doesn't require modifying existing data or taking the database offline. This is a fundamental departure from rigid, table-based relational schemas that mandate defined structures before any data can be inserted.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
All documents must have a predefined structure determined by the first document inserted.
Why it's wrong here
The first document does not define a schema for the collection. Each document is independent and can contain any fields as needed. This allows for diverse data representations within the same collection, which is exactly how MongoDB provides the flexibility required for modern, agile application development and data modeling.
- ✓
Documents can have different fields, and the structure can change over time.
Why this is correct
MongoDB allows documents in the same collection to vary in structure and field types. This adaptability is critical for applications that need to evolve their data models rapidly. Developers can add new features without disruptive migration processes, allowing for continuous delivery and seamless updates to the application's underlying data.
- ✗
The database automatically flattens all nested documents upon insertion.
Why it's wrong here
MongoDB preserves the nested structure of documents. It does not flatten them because hierarchical structures are a primary feature of the document model. Flattening would lose the semantic relationship between nested fields and defeat the purpose of storing data in a natural, object-oriented format within the database system.
- ✗
Schema enforcement can only be achieved by using third-party database proxies.
Why it's wrong here
MongoDB provides native schema validation features that can be configured at the collection level using JSON Schema. This allows developers to enforce rules when necessary, without requiring external tools. This feature balances the need for flexibility with the requirement for data integrity in production environments when explicitly requested.
About these practice questions
This C100DEV question is part of Courseiva's 259-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 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.