📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

Which of the following should be done before COMMIT in a funds transfer?

A. Close the connection
B. Commit the debit separately
C. Delete the transaction log
D. Check that both debit and credit succeeded and balances satisfy constraints ✅

Correct Answer: D. Check that both debit and credit succeeded and balances satisfy constraints

Explanation

  • Validate both updates and constraints before committing.
  • Committing a half-checked transfer could make an error permanent.