Questions: Non-Repeatable Read Anomaly

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

Transaction T1 reads an account balance and sees $1000. T2 then updates the balance to $200 and commits. T1 re-reads the same row and sees $200. Which isolation level permits this behavior?

ASERIALIZABLE
BREPEATABLE READ
CREAD COMMITTED
DThis behavior is impossible under any standard isolation level
Question 2 Multiple Choice

Which of the following scenarios describes a non-repeatable read (and not another isolation anomaly)?

AT1 reads uncommitted changes written by T2 that T2 later rolls back
BT1 reads a row, T2 updates and commits it, T1 re-reads the same row and sees a different value
CT1 issues a range query, T2 inserts a new matching row, T1 re-issues the query and sees an extra row
DT1 and T2 both read and then update the same row, and T1's update overwrites T2's
Question 3 True / False

The non-repeatable read anomaly can occur under READ COMMITTED isolation.

TTrue
FFalse
Question 4 True / False

A non-repeatable read and a phantom read are the same anomaly described differently.

TTrue
FFalse
Question 5 Short Answer

Why does REPEATABLE READ prevent non-repeatable reads, and what is the cost of this stronger guarantee?

Think about your answer, then reveal below.