📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

In a bank transfer, if money is debited from Account A but the credit to Account B fails, what should happen?

A. The transfer is repeated twice
B. The whole transaction is rolled back, so Account A is not debited ✅
C. The database is deleted
D. The debit stays and the credit is lost

Correct Answer: B. The whole transaction is rolled back, so Account A is not debited

Explanation

Atomicity requires both debit and credit to succeed together, or neither happens.