1. LPU MCA Semester 1
  2. CAP570
  3. Unit 2

CAP570 · Unit 2: E-R modeling

ACID properties

9 practice questions · in the MTE and ETE syllabus

Key points

  • Atomicity is all or nothing
  • Isolation hides partial work from concurrent transactions
  • Durability applies only to committed transactions
  • Consistency preserves declared rules

A transaction is a logical unit of work. A DBMS guarantees four ACID properties.

PropertyMeaningMechanism
Atomicityall of the transaction happens or none of itundo through the log
Consistencythe database moves from one valid state to another valid stateconstraints and application logic
Isolationconcurrent transactions do not see each other's partial worklocking, multiversioning
Durabilityonce committed, changes survive a crashwrite-ahead log, redo

Example: in a transfer of 500 from A to B, atomicity means both the debit and the credit happen or neither does. A crash after the debit is repaired by undoing it. Two clerks both reading a balance of 1000 and each withdrawing 600 is an isolation failure (a lost update). If power fails just after COMMIT, the log lets the system redo the changes, which is durability.

Exam trap: the DBMS enforces only declared rules, so consistency partly depends on the application.

Try two questions

Question 1 · Tier 2, Understand

Which property ensures that concurrent transactions do not see each other's partial results?

  1. Atomicity
  2. Durability
  3. Consistency
  4. Isolation
Show the answer

D. Isolation makes each transaction behave as if it were running alone.

Why not A: Atomicity ensures all or nothing, not invisibility of partial results.

Why not B: Durability concerns persistence.

Why not C: Consistency concerns rules holding before and after.

Question 2 · Tier 3, Apply

A transfer debits account A by 500 and the system crashes before crediting B. After recovery, A shows no debit. Which property is demonstrated?

  1. Atomicity
  2. Durability
  3. Isolation
  4. Consistency alone
Show the answer

A. Undoing the partial debit leaves the transfer as if it never began, which is atomicity.

Why not B: Durability would keep committed data; this transaction never committed.

Why not C: No concurrent transaction is involved.

Why not D: The all-or-nothing rollback is the atomicity guarantee.