CS FundamentalsModerateGATE CS
A DBMS uses deferred database modification: no change reaches the database before its transaction commits (NO-STEAL), but committed changes may still be only in the log at a crash (NO-FORCE). What does crash recovery need?
- A. Undo of uncommitted transactions only
- B. Both undo and redo
- C. Neither undo nor redo
- D. Redo of committed transactions only
Correct answer: D. Redo of committed transactions only
Uncommitted transactions never wrote to the database, so there is nothing to undo; committed ones might not be on disk yet, so they must be redone from the log.
More DBMS and SQL questions
- A B+ tree stores 1,000,000 keys. Each internal node has at most 50 children (at least 25, except the root, which needs at least 2), and…
- R occupies 1000 blocks and S 500 blocks; 50 buffer blocks are available. Ignoring the cost of writing the result, what does a Grace hash…
- A table has 1,000,000 rows stored 20 per block. An unclustered B+ tree index fetches each matching row with one random block read (ignore…
- R(A, B) = {(1, x), (2, y), (3, z)} and S(B, C) = {(x, 5), (x, 6), (w, 7)}. How many tuples are in the natural full outer join of R and S?
- Customer(cid, city) LEFT OUTER JOIN Orders(oid, cid, amt) on cid is followed by the selection amt > 100. An optimiser wants to push this…
- An ER diagram has Student (key roll, multivalued attribute phone), Course (key cid) and Faculty (key fid). Enrols is many-to-many between…