CS FundamentalsModerateGATE CS · TCS Digital
A bank's server crashes immediately after a transaction commits, before its changes are written to the data files. After restart the committed changes are still present. Which ACID property is responsible, and by what mechanism?
- A. Atomicity, through undo of the log records
- B. Durability, through redo using the write-ahead log
- C. Isolation, through lock release at commit
- D. Consistency, through re-checking foreign keys
Correct answer: B. Durability, through redo using the write-ahead log
Committed changes must survive failures; recovery redoes them from the write-ahead log. Undo is for uncommitted transactions.
More DBMS and SQL questions
- Sc(n, s) holds (a, 90), (b, 85), (c, 85), (d, 80), (e, 70). For the row of n = 'd', what are RANK() OVER (ORDER BY s DESC) and DENSERANK()…
- E(n, dept, sal) holds (a, x, 50), (b, x, 70), (c, x, 60), (d, y, 40), (e, y, 40), (f, z, 90). How many rows does SELECT n FROM E e1 WHERE…
- P(id, mgr) holds (1, NULL), (2, 1), (3, 1), (4, 1), (5, 2), (6, 2). How many rows does SELECT FROM P a JOIN P b ON a.mgr = b.mgr AND a.id…
- O(c, amt) holds (a, 100), (a, 250), (b, 300), (b, 50), (c, 400), (c, 20), (c, 30). What does SELECT SUM(CASE WHEN amt >= 100 THEN amt ELSE…
- R(A, B, C, D) has the functional dependencies A -> B and C -> D. R is decomposed into R1(A, B) and R2(C, D). Which statement is correct?
- Consider the schedule R1(A), W2(A), R3(A), W1(A) on a single item A. Is it conflict serializable?