ACID properties in DBMS

December 4, 2026 · Team EasyExamNotes · 3 min read (est.) · 0 comments

Share on WhatsApp

← RGPV CS-502-CBGS DBMS June 2020 solved question paper

← RGPV CS-502 DBMS May 2024 solved question paper

RGPV CS-502-CBGS | June 2020 | Q8(a) | 7 marks

Question: Explain ACID property in detail.

Answer

ACID properties in DBMS
ACID properties in DBMS

A transaction is a logical unit of database work that must execute reliably. ACID stands for Atomicity, Consistency, Isolation and Durability. These properties are essential for systems such as banking, reservation and inventory management.

Consider transferring ₹200 from account A with balance ₹1000 to account B with balance ₹500. The transaction debits A and credits B. After successful completion, A=800 and B=700; the total remains ₹1500.

Atomicity: All operations of a transaction are performed or none of them are reflected in the database. If a failure occurs after debiting A but before crediting B, recovery must roll back the debit. Undo logging or equivalent mechanisms support atomicity.

Consistency: A correct transaction takes the database from one valid state to another, preserving declared constraints and application invariants. The transfer preserves the total balance and must respect rules such as nonnegative balances. The DBMS enforces declared constraints, while transaction logic must preserve business rules.

Isolation: Concurrent transactions should not interfere in ways forbidden by their isolation level. Under serializable isolation, their effect is equivalent to some serial execution. A concurrent balance query should not observe a partial transfer under appropriate isolation. Locks, timestamps and multiversion methods support isolation.

Durability: Once a transaction commits successfully, its effects survive failures covered by the system’s durability guarantees. Write-ahead logs and persistent storage allow committed updates to be recovered after a crash. Backups and replication address additional failure scenarios.

ACID properties work together: atomicity handles incomplete work, consistency protects invariants, isolation controls concurrent interference and durability preserves committed results. Without these guarantees, a database may lose money, duplicate bookings or expose inconsistent information.


May 2024 — Q7(a)

Question (restated): Define transaction processing and explain ACID properties.

Answer

A transaction is a logical unit of database work that commits or aborts as a unit. Atomicity means all its changes take effect or none do. Consistency means a correctly written transaction preserves declared constraints and application invariants. Isolation controls interference between concurrent transactions; serializable isolation gives effects equivalent to some serial execution. Durability means committed changes survive failures within the system’s durability guarantees. For a transfer of 100 from A to B, debit A and credit B in one transaction. If the credit fails, rollback reverses the debit. The total balance remains unchanged when both operations succeed. Concurrent transfers must not overwrite each other’s changes. Write-ahead logging and durable commit records support recovery. Constraints, locks or MVCC and recovery mechanisms implement these properties. Transaction processing includes begin, reads and writes, commit or rollback; applications should handle errors and retry transient serialization failures.

BEGIN|Debit A and credit B|COMMIT or ROLLBACK|Durable consistent state
Transaction processing and ACID — schematic illustration

← RGPV CS-502-CBGS DBMS June 2020 solved question paper

← RGPV CS-502 DBMS May 2024 solved question paper

Discussion

Ask a question, share your thoughts or report an error.

Sign in to participate in the discussion.

Join the discussion