All Questions
Multi Step Processes easy

A user registration process involves two steps: inserting a row into the 'Users' database table and inserting a row into the 'Profiles' table. If the first insert succeeds but the second fails, the database is left in an inconsistent state. What mechanism prevents this?

  1. A Database Transaction (Commit/Rollback)
  2. B Data Replication
  3. C Write-Ahead Logging
  4. D Database Indexing

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

Get the app

Related questions