Questions: Document Databases

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

An e-commerce platform embeds full customer information (name, address, email) inside every order document. A customer updates their shipping address. What problem does this create?

AThe update fails because document databases do not support partial document updates
BEvery order document containing the old address must be updated, creating write-side redundancy across potentially thousands of records
CThe schema-free nature of document databases prevents field-level updates
DNothing — embedding is always the correct approach for data that is read together
Question 2 Multiple Choice

A developer says their document database application has 'no schema' and therefore requires no schema migrations. Why is this claim misleading?

AIt is not misleading — document databases truly have no schema requirements
BThe database has no schema, but the application code enforces an implicit schema by expecting specific fields and types; evolving that code is effectively a schema migration
CDocument databases have schemas stored in a separate metadata collection that must be updated
DSchema migrations are only required when adding new collections, not when modifying fields
Question 3 True / False

Operations on a single document in a document database are guaranteed to be atomic.

TTrue
FFalse
Question 4 True / False

Embedding most related data in one document is typically preferable to referencing because it eliminates joins and makes reads faster.

TTrue
FFalse
Question 5 Short Answer

How should you decide whether to embed related data inside a document or reference it by ID, and what are the key tradeoffs?

Think about your answer, then reveal below.