All Questions
Data Modeling medium

You have `Orders` and `Customers`. In a Document DB, you embed `Customer` info into `Order`. What happens if the Customer updates their phone number?

  1. A The database hardware automatically detects the relationship and performs an atomic background update across all physically distributed shards.
  2. B The update operation is rejected by the database's strict synchronization lock until the application explicitly resolves the potential data conflict.
  3. C You must manually identify and update every individual 'Order' document that contains the old information, risking data inconsistencies if any step fails.
  4. D Document-oriented databases are designed to be append-only and do not support the direct modification of existing record attributes once they are stored.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions