A transaction in a financial application requires updating multiple accounts. If one update fails, what should happen to ensure data consistency?

  • Commit the successful updates
  • Ignore the failed update and proceed
  • Log the failure and retry the update
  • Rollback the entire transaction
In a financial application, to ensure data consistency, it's crucial to rollback the entire transaction if any update within it fails. This helps maintain the integrity of the financial data.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *