C100DBA practice question 10 of 25
MongoDB is a schema-less design.
Full set: 130 questionsThe 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.
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.
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."
Keep practicing
Take the free C100DBA practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other C100DBA practice questions
- Question 1If the value of totalKeysExamined is 30000 and the value of totalDocsExamined is 0, which…
- Question 2The oplog (operations log) is a special capped collection that keeps a rolling record of …
- Question 3‘$set' sets the value of
- Question 4What does the totalKeysExamined field returned by the explain method indicate?
- Question 5Which mongodb tools allow us to work with our data in a human readable format?
- Question 6Which of the following is incorrect statement about find and findOne operations in MongoD…
