CS FundamentalsVery hardGATE
A fuzzy checkpoint in ARIES records the set of active (dirty) transactions and dirty pages at checkpoint time WITHOUT forcing all dirty pages to disk immediately (unlike a 'consistent' checkpoint). What problem does this avoid, and what does recovery need instead to compensate?
- A. It guarantees zero recovery time after a crash, unlike a consistent checkpoint
- B. It avoids stalling normal transaction processing during the checkpoint, at the cost of recovery needing to redo from the oldest log record referenced by any still-dirty page at checkpoint time (tracked via a dirty-page table), not just from the checkpoint record itself
- C. It avoids all need for logging whatsoever
- D. It eliminates the need for a redo phase entirely
Correct answer: B. It avoids stalling normal transaction processing during the checkpoint, at the cost of recovery needing to redo from the oldest log record referenced by any still-dirty page at checkpoint time (tracked via a dirty-page table), not just from the checkpoint record itself
Forcing every dirty page to disk at checkpoint time (a sharp/consistent checkpoint) can stall the system for a long pause on a busy database. Fuzzy checkpointing just records which pages are dirty, letting them flush asynchronously; recovery must then look back to the earliest LSN still relevant for any page in that dirty-page table, not just the checkpoint's own position in the log.
More DBMS and SQL questions
- Strict two-phase locking (Strict 2PL) differs from basic 2PL in which way?
- Rigorous two-phase locking (Rigorous 2PL) goes one step further than Strict 2PL. What extra guarantee does it add?
- Multiple Granularity Locking uses intention locks (IS, IX, SIX) on coarser objects like a table, in addition to ordinary shared/exclusive…
- A foreign key column is declared ON DELETE CASCADE. If the referenced (parent) row is deleted, what happens to the child rows referencing…
- A schema uses salary DECIMAL(8,2) for a salary column. Which value would be REJECTED when inserted?
- A column is declared VARCHAR(10) vs. CHAR(10). For a value like 'cat' (3 characters), which statement is correct about storage and…