CS FundamentalsModerateIBM · Deloitte pattern
Which isolation level prevents dirty reads and non-repeatable reads but may still allow phantom reads (in the SQL standard)?
- A. READ UNCOMMITTED
- B. READ COMMITTED
- C. REPEATABLE READ
- D. SERIALIZABLE
Correct answer: C. REPEATABLE READ
REPEATABLE READ keeps rows already read stable, but new rows matching a predicate can appear (phantoms). Only SERIALIZABLE forbids all three; READ COMMITTED still allows non-repeatable reads.
More DBMS and SQL questions
- Which statement about basic two-phase locking (2PL) is correct?
- A B+ tree is built on a key of 9 bytes. A block is 1024 bytes and a block pointer is 6 bytes. What is the maximum order p (number of child…
- R(A, B, C, D) has A as its only candidate key. How many superkeys does R have?
- Table Emp(id, name, dept, salary, mgr) rows: (1, 'Asha', 'HR', 50000, NULL), (2, 'Ravi', 'IT', 70000, 1), (3, 'Meena', 'IT', 70000, 2)…
- Table Emp(id, name, dept, salary, mgr) rows: (1, 'Asha', 'HR', 50000, NULL), (2, 'Ravi', 'IT', 70000, 1), (3, 'Meena', 'IT', 70000, 2)…
- Table Emp(id, name, dept, salary, mgr) rows: (1, 'Asha', 'HR', 50000, NULL), (2, 'Ravi', 'IT', 70000, 1), (3, 'Meena', 'IT', 70000, 2)…