Questions: Transaction Isolation Levels: READ UNCOMMITTED to SERIALIZABLE

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

Transaction T1 reads a row, then Transaction T2 modifies that row and commits, then T1 reads the same row again within its transaction and gets a different value. What anomaly is this, and what isolation level prevents it?

ADirty read; READ COMMITTED prevents it
BNon-repeatable read; REPEATABLE READ prevents it
CPhantom read; SERIALIZABLE prevents it
DDirty read; REPEATABLE READ prevents it
Question 2 Multiple Choice

A dashboard query runs at READ UNCOMMITTED to display near-real-time totals. A bulk-insert transaction begins, writes 50,000 rows, and then rolls back due to an error. What risk did the dashboard face?

AThe dashboard would see stale data from before the bulk insert started
BThe dashboard may have displayed totals that included the 50,000 rows that officially never existed after the rollback
CThe dashboard would be blocked and unable to query while the insert was in progress
DThe dashboard's query would fail with a lock timeout error
Question 3 True / False

SERIALIZABLE isolation guarantees that concurrent transactions can seldom overlap in time — they physically execute one at a time.

TTrue
FFalse
Question 4 True / False

At READ COMMITTED isolation, a transaction may read different values for the same row if it queries that row twice within a single transaction.

TTrue
FFalse
Question 5 Short Answer

Why might a financial application choose REPEATABLE READ or SERIALIZABLE rather than the READ COMMITTED default, even though higher isolation reduces throughput?

Think about your answer, then reveal below.