Which statement best describes the Atomicity property in database transactions?
Think about whether a transaction can be partially done or not.
Atomicity means a transaction is all or nothing. If any part fails, the whole transaction is undone.
What does the Durability property guarantee in a database system?
Consider what happens to data after a power failure.
Durability means once a transaction commits, its changes survive system failures.
Which scenario best illustrates a violation of the Isolation property in transactions?
Think about what happens when transactions interfere with each other.
Isolation prevents transactions from seeing intermediate states of others. Simultaneous conflicting access breaks this.
How does the Consistency property differ from Atomicity in ACID?
Think about data correctness versus transaction completeness.
Consistency means data stays valid according to rules after a transaction; Atomicity means the transaction fully happens or not at all.
Consider two transactions running concurrently on a bank database:
Transaction 1: Withdraw $100 from Account A
Transaction 2: Deposit $100 to Account A
If the system does not enforce Isolation, what problem might occur?
Think about what happens if transactions see each other's partial changes.
Without isolation, transactions can interfere, causing incorrect balances due to reading uncommitted data.