Skip to content
Preptima
easyConceptEntry

Explain ACID using a bank transfer of 100 from one account to another, and tell me what isolation protects you from.

In a transfer, atomicity means the debit and credit commit together or not at all, consistency means declared constraints such as a non-negative balance still hold, isolation stops concurrent transactions seeing or overwriting each other's half-done work, and durability means a confirmed commit survives a crash.

4 min readUpdated 2026-10-10Target archetype: Enterprise Captive

Answer

Short answer

ACID is four promises a database makes about transactions. In a transfer of 100 from account A to account B, atomicity means the debit and credit both happen or neither does. Consistency means declared rules such as "balance never below zero" still hold afterwards. Isolation means another transaction running at the same time cannot see or overwrite your half-finished work, and durability means a commit the bank confirmed survives a crash.

Was this answer helpful?

Likely follow-ups

  • The two withdrawals run inside BEGIN and COMMIT at READ COMMITTED and still lose 100. Why did wrapping them in a transaction not help?
  • An auditor sums every balance while transfers run. Which isolation level gives a total that matches some real moment?
  • The server confirms the commit and the power fails a millisecond later. Walk through how the transfer is still there after restart.
  • How would you write the debit so it can never take a balance below zero, even with ten withdrawals at once?

Related questions

Further reading