Recall & Review
beginner
What is normalization in databases?
Normalization is organizing data to reduce duplication by splitting data into related tables or collections.
Click to reveal answer
beginner
What is denormalization in databases?
Denormalization is combining data into fewer tables or collections to improve read speed, even if it means some duplication.
Click to reveal answer
intermediate
Why is normalization less common as a default in MongoDB?
MongoDB favors denormalization by default because it stores data in flexible documents, making it faster to read related data together.
Click to reveal answer
beginner
Give an example of denormalization in MongoDB.
Embedding an address inside a user document instead of storing addresses in a separate collection is denormalization.
Click to reveal answer
intermediate
What is a downside of denormalization?
Denormalization can cause data duplication, which means updates must be done in multiple places, increasing complexity.
Click to reveal answer
What does normalization mainly aim to reduce?
✗ Incorrect
Normalization organizes data to reduce duplication and improve data integrity.
In MongoDB, which approach is the default for storing related data?
✗ Incorrect
MongoDB encourages embedding related data inside documents, which is denormalization.
What is a common benefit of denormalization?
✗ Incorrect
Denormalization speeds up reading data by storing related info together.
Which is a risk when using denormalization?
✗ Incorrect
Duplicated data can become inconsistent if not updated everywhere.
Normalization is more common in which type of database?
✗ Incorrect
Relational databases use normalization to organize data into tables.
Explain the difference between normalization and denormalization in databases.
Think about how data is stored and accessed.
You got /5 concepts.
Why does MongoDB prefer denormalization by default compared to relational databases?
Consider MongoDB's document structure.
You got /4 concepts.