0
0
MongoDBquery~5 mins

Why document databases over relational in MongoDB - Quick Recap

Choose your learning style9 modes available
Recall & Review
beginner
What is a document database?
A document database stores data as documents, usually in JSON-like format, making it easy to store complex and nested data in one place.
Click to reveal answer
beginner
How do document databases handle data structure compared to relational databases?
Document databases allow flexible, dynamic schemas where each document can have different fields, unlike relational databases that require fixed table schemas.
Click to reveal answer
intermediate
Why might document databases be better for applications with evolving data models?
Because document databases do not require predefined schemas, they let developers change data structure easily without costly migrations.
Click to reveal answer
intermediate
What is one performance advantage of document databases over relational databases?
Document databases can retrieve related data in a single read because related data is stored together in one document, reducing the need for complex joins.
Click to reveal answer
intermediate
When might a relational database still be preferred over a document database?
When data requires strong consistency, complex transactions, and strict relationships, relational databases are often better suited.
Click to reveal answer
What format do document databases typically use to store data?
AKey-value pairs only
BTables with rows and columns
CJSON-like documents
DFlat files
Which is a key benefit of document databases over relational databases?
ANo support for nested data
BFixed schema for all data
CRequires complex joins for data retrieval
DFlexible schema allowing different fields per document
Why do document databases often perform faster for certain queries?
AThey store related data together in one document
BThey require multiple queries for related data
CThey use complex joins
DThey do not index data
Which scenario favors using a relational database instead of a document database?
AStrong consistency and complex transactions
BSimple key-value lookups
CStoring large binary files
DData with flexible and changing structure
What is a common use case for document databases?
AApplications with fixed, unchanging data models
BApplications needing flexible, evolving data structures
CSystems requiring strict relational integrity
DData warehousing with complex joins
Explain why document databases are often chosen over relational databases for modern web applications.
Think about how web apps change and need to store complex data.
You got /4 concepts.
    Describe a situation where a relational database might be a better choice than a document database.
    Consider financial or inventory systems.
    You got /4 concepts.