Difficulty: Easy
Correct Answer: Dirty read.
Explanation:
Introduction / Context:Transaction isolation defines which phenomena can occur when multiple transactions execute concurrently. Recognizing anomalies helps you choose the right isolation level and locking strategy for correctness and performance.
Given Data / Assumptions:
Concept / Approach:
A read of uncommitted data is classically termed a dirty read. If the writing transaction later rolls back, the reader will have observed a value that never becomes durable, violating consistency expectations and leading to incorrect decisions by the reading transaction.
Step-by-Step Solution:
1) Define the scenario: T1 updates a row; T2 reads the updated value before T1 commits.2) If T1 rolls back, T2 has read a value that never existed in a committed state.3) This is the textbook definition of a dirty read.4) Prevent by using at least READ COMMITTED isolation or explicit locks.Verification / Alternative check:
Standard texts and DBMS documentation list dirty reads as allowed at READ UNCOMMITTED and disallowed at READ COMMITTED and above, confirming the term and conditions.
Why Other Options Are Wrong:
Common Pitfalls:
Final Answer:
Dirty read.
Discussion & Comments