CS FundamentalsModerateGATE CS · Product placement
A buffer manager uses STEAL (uncommitted pages may be written to disk) and NO-FORCE (committed pages need not be written at commit). What must the recovery scheme support?
- A. Both UNDO and REDO
- B. Neither UNDO nor REDO
- C. Only REDO
- D. Only UNDO
Correct answer: A. Both UNDO and REDO
STEAL means uncommitted changes may be on disk, so they must be undone; NO-FORCE means committed changes may be missing from disk, so they must be redone.
More DBMS and SQL questions
- Table Sale(id, rep, region, amt) rows: (1, 'Ira', 'N', 100), (2, 'Jai', 'S', 250), (3, 'Ira', 'S', NULL), (4, 'Kim', 'N', 300), (5, 'Jai'…
- A file of 10,000 records is physically ordered on the non-key field dept, which has 500 distinct values. A clustering index on dept has…
- Which expression is equivalent to R ÷ S, where R(A, B) and S(B)?
- Which is a correct reason why testing a schedule for VIEW serializability is rarely done in practice?
- Table Sale(id, rep, region, amt) rows: (1, 'Ira', 'N', 100), (2, 'Jai', 'S', 250), (3, 'Ira', 'S', NULL), (4, 'Kim', 'N', 300), (5, 'Jai'…
- Which statement about ARIES recovery is correct?