Question:

What happens when a transaction is rolled back?

Show Hint

Rollback restores the database to its pre-transaction state (atomicity).
Updated On: Jul 2, 2026
  • The transaction is committed
  • The database remains unchanged
  • The database crashes
  • The transaction is re-executed automatically
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is B

Solution and Explanation

Step 1: A rollback undoes all the changes a transaction made and restores the database to the state it had before the transaction started.

Step 2: This preserves atomicity: either all of a transaction's work is applied, or none of it is.

Step 3: Since every partial change is reversed, the net effect is that the database remains unchanged by that transaction.
Was this answer helpful?
0
0