Which of the following 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: either all steps succeed or none do.
What does the Isolation property ensure in concurrent database transactions?
Think about how transactions behave when multiple users access the database at the same time.
Isolation means transactions do not see each other's intermediate states, making them appear sequential.
Consider a transaction that updates a bank account balance and commits successfully. The system crashes immediately after commit. What will be the state of the updated balance after recovery?
Think about what durability guarantees after a commit.
Durability ensures that once a transaction commits, its changes survive crashes and are permanent.
Which statement best explains the Consistency property in ACID?
Think about database rules and constraints before and after a transaction.
Consistency means transactions must keep the database valid according to all rules and constraints.
Given two concurrent transactions:
Transaction 1 reads a value, waits, then updates it.
Transaction 2 updates the same value and commits during Transaction 1's wait.
Which isolation level will cause Transaction 1 to see the updated value from Transaction 2 during its read?
Consider which isolation level allows reading uncommitted or dirty data.
Read Uncommitted allows reading data from other transactions even before they commit, causing dirty reads.