CS FundamentalsHardGATE CS · Amazon/Microsoft SDE MCQ

T1 reads the balance of account 7, then T2 updates that same row and commits, then T1 reads the row again and sees a different value. No rows are inserted or deleted. What is the lowest SQL-standard isolation level for T1 that rules this out?

  1. A. READ COMMITTED
  2. B. SERIALIZABLE
  3. C. READ UNCOMMITTED
  4. D. REPEATABLE READ

Correct answer: D. REPEATABLE READ

This is a non-repeatable read of an existing row. READ COMMITTED allows it; REPEATABLE READ forbids it (it still allows phantoms, which need new rows matching a predicate). SERIALIZABLE also prevents it but is not the lowest.

More DBMS and SQL questions

Exams that ask this topic