CS FundamentalsHardGATE CS · PSU (ISRO/BARC)
Which statement about shadow paging is correct?
- A. It needs no undo log, but committing scatters pages and old pages must be garbage-collected
- B. It supports concurrent transactions more easily than logging
- C. It updates pages in place and keeps a before-image copy
- D. It needs both undo and redo logs
Correct answer: A. It needs no undo log, but committing scatters pages and old pages must be garbage-collected
Updates go to new page copies and commit is an atomic switch of the page-table pointer, so aborting just discards the shadow; the costs are lost data clustering and garbage collection.
More DBMS and SQL questions
- A bitmap index is built on an attribute with 4 distinct values over a table of 1,000,000 rows (uncompressed, one bit per row per value)…
- Classify the schedule R2(A), W2(B), C2, W1(B), R1(A), C1 (Ci = commit of Ti) by the strongest property it satisfies.
- 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 has 120,000 records of 150 bytes, stored unspanned in 4096-byte blocks and ordered on key K. A primary (sparse) index on K has one…
- Employee(eid, name) has a recursive one-to-many relationship 'manages' (a manager manages many employees; each employee has at most one…
- In logical query processing order, which clause of a SELECT statement is evaluated LAST?