In a NoSQL database like MongoDB, how are schemas defined and enforced?
- Schemas are strictly enforced before data insertion
- Schemas are defined using SQL
- Schemas are flexible and can evolve with data
- Schemas are predefined and cannot change
In NoSQL databases like MongoDB, schemas are flexible and can evolve with data. There's no strict enforcement of schemas before data insertion, allowing for schema-less data storage. This flexibility is one of the key features of NoSQL databases, making them suitable for handling unstructured or semi-structured data.
Loading...
Related Quiz
- How can you define optional route parameters in Express.js?
- Which caching strategy involves keeping the most recently used items?
- In semantic versioning, what does a change in the 'patch' version (e.g. 1.2.3) typically indicate?
- How does normalizing database tables impact the Read and Update operations in CRUD?
- What is the primary purpose of the package-lock.json file in a Node.js project?