As asked
Explain each of the four ACID properties using a bank transfer of $100 from account A to account B as your example, and describe what specific failure each property guards against.
Sample answer outline
Atomicity: both the debit and credit happen or neither does, preventing a state where A is debited but B is not credited. Consistency: the database constraints (balance >= 0) are never violated mid-transaction. Isolation: concurrent transactions reading balances see consistent snapshots, not intermediate states. Durability: once the transfer commits and returns success to the user, a server crash cannot undo it because the commit was written to durable storage (WAL). The candidate should name the specific failure each guards against rather than just defining the term.
Expect these follow-ups
- Which ACID property is most commonly relaxed in high-availability distributed systems and why?