Which situation best demonstrates a failure of the Atomicity property in…

2025

Which situation best demonstrates a failure of the Atomicity property in database transactions?

  1. A.

    A transaction modifies a bank account balance, but system failure occurs before saving the update in the transaction log.

  2. B.

    A transaction successfully performs all changes but is delayed in finalising due to disk performance.

  3. C.

    Two separate transactions attempt to read the same data at the same time without proper locking.

  4. D.

    A transaction accesses uncommitted changes from another transaction due to insufficient isolation.

Attempted by 166 students.

Show answer & explanation

Correct answer: A

Atomicity is the "All-or-Nothing" rule of databases, meaning a transaction must either fully complete or not happen at all. Option A represents a failure of this property because a crash occurs after the database has made partial changes in temporary memory but before it can write a final "Commit" record to permanent storage. This leaves the transaction half-done, which violates atomicity and forces the database to perform a rollback upon recovery to wipe away the incomplete changes and restore a consistent state.

Explore the full course: Niacl Ao It Specialist