📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

What happens if a transaction fails before COMMIT?

A. The database is deleted
B. Only the last operation is kept
C. All its changes are rolled back ✅
D. All its changes are saved

Correct Answer: C. All its changes are rolled back

Explanation

A failed uncommitted transaction is rolled back so the database returns to its state before the transaction.