Questions: Isolation Level: SERIALIZABLE

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

A banking application runs two concurrent transactions: T1 sums the balances of all accounts, and T2 deposits money into one account. Under SERIALIZABLE isolation, which outcome is possible?

AT1 reads the same account's balance both before and after T2's deposit within a single scan
BT2's deposit appears in some but not all of T1's reads of that account
CThe result is identical to T1 completing entirely before T2, or T2 completing entirely before T1
DT1 and T2 freely interleave since SERIALIZABLE only prevents dirty reads
Question 2 Multiple Choice

PostgreSQL implements SERIALIZABLE using Serializable Snapshot Isolation (SSI) rather than strict two-phase locking (2PL). What is the key operational difference?

ASSI prevents more anomalies than strict 2PL, including dirty writes that 2PL cannot prevent
BSSI lets transactions work concurrently on snapshots and aborts conflicting transactions at commit time rather than blocking them with locks
CSSI only applies to read-only transactions; 2PL handles transactions that write
DSSI requires explicit LOCK TABLE statements in application code, while 2PL acquires locks automatically
Question 3 True / False

Under SERIALIZABLE isolation, some transactions may be aborted mid-execution and require application-level retry logic to handle.

TTrue
FFalse
Question 4 True / False

SERIALIZABLE isolation guarantees that concurrent transactions execute in the exact chronological order they were submitted to the database.

TTrue
FFalse
Question 5 Short Answer

Explain why 'equivalent to a serial execution' is different from 'executed serially,' and why this distinction matters for a high-throughput database.

Think about your answer, then reveal below.