This question evaluates a candidate's understanding of database transactions including ACID properties, isolation levels (read uncommitted, read committed, repeatable read, serializable), common anomalies (dirty reads, non-repeatable reads, phantom reads), MVCC, and commit/rollback semantics, testing competency in transactional correctness and concurrency control. Commonly asked in System Design and database contexts because it probes reasoning about data integrity, visibility, and durability under concurrent workloads, and it tests both conceptual understanding of transactional guarantees and practical application of isolation behavior in relational database systems.
You are working with a relational database that supports transactions and multiple isolation levels. Explain:
Assume a mainstream RDBMS (e.g., PostgreSQL or MySQL/InnoDB). If behavior differs by engine, note the typical difference briefly.
Login required