C100DBA practice question 10 of 25

MongoDB is a schema-less design.

Full set: 130 questions
Answer options
A: False
B: True
Correct Answer:
TRUE (THE STATEMENT IS CORRECT)
Explanation

The statement "MongoDB is a schema-less design" is considered true. MongoDB uses a document data model, which allows for a flexible schema. Unlike traditional SQL databases that require a predefined table structure, documents in a MongoDB collection do not need to have the same set of fields or structure. This flexibility facilitates easier application development and data model evolution. While the term "flexible schema" is more precise, "schema-less" is widely used to describe this core characteristic. MongoDB also provides optional schema validation to enforce structure when needed.

Why Incorrect

False: This is incorrect because MongoDB's fundamental design does not enforce a rigid, predefined schema on collections, which is the primary characteristic of a schema-less or flexible-schema database.

References

1. MongoDB Manual, Data Modeling Introduction. "Data in MongoDB has a flexible schema. Unlike SQL databases, where you must determine and declare a table's schema before inserting data, MongoDB's collections, by default, do not require their documents to have the same schema."

2. MongoDB Manual, Schema Validation. "Starting in MongoDB 3.2, you can enforce schema validation on a collection during update and insert operations. However, validation is optional and not enabled by default."

Scroll to Top