HomeSubjectsUniversityBlogAbout

Recovery Management

Topic in Databases

210 total MCQsShowing 30 with explanations10 Easy10 Medium10 Hard

About This Topic

Database recovery restores a database to a consistent state after a transaction failure, system crash or media failure, using logs, checkpoints and backups. MCQs focus on the write-ahead logging rule, undo and redo operations, and how deferred versus immediate update changes which of them are needed. Buffer policies connect to this, since a steal/no-force policy requires both undo and redo. Expect questions on checkpoints, shadow paging, and the ARIES algorithm with its analysis, redo and undo passes, log sequence numbers, the dirty page table, the transaction table and compensation log records. Media failure and archival backups form a smaller group.

Below are 30 practice questions from a pool of 210 Recovery Management MCQs, one of 17 topics in Databases. Each shows the correct answer with an explanation; when you are ready, take a timed quiz to test recall under exam conditions.

Practice Questions

Each question below shows the correct answer with a full explanation. Use these to build conceptual understanding before attempting a timed quiz.

Recovery ManagementEasy

Q1. Database recovery is the process of:

  1. A.Deleting all data from the tables in the entire database
  2. B.Restoring the database to a correct state after a failure✓ Correct
  3. C.Creating new tables and defining their column structures
  4. D.Optimizing queries by choosing better execution plans

Explanation

Recovery restores the database to a consistent state after a failure.

Report an error in this question

Recovery ManagementEasy

Q2. A transaction log (write-ahead log) records:

  1. A.Table structures and their column definitions in the database schema
  2. B.Only SELECT queries that have been executed against the database tables
  3. C.User login information and authentication credentials stored securely
  4. D.All changes made by transactions before they are applied to the database✓ Correct

Explanation

The transaction log records all modifications (before and after values) for recovery purposes.

Report an error in this question

Recovery ManagementEasy

Q3. The redo operation:

  1. A.Creates a new database from scratch without using any data from the previous state
  2. B.Re-applies changes of committed transactions that may not have been written to disk✓ Correct
  3. C.Undoes all changes of committed transactions and reverts to the original data state
  4. D.Deletes the entire log file and removes all records of previous transaction actions

Explanation

Redo reapplies committed transaction changes that may not have reached the disk before failure.

Report an error in this question

Recovery ManagementEasy

Q4. The undo operation:

  1. A.Reverses changes made by uncommitted transactions✓ Correct
  2. B.Creates a backup of the current database on disk
  3. C.Optimizes queries for faster execution performance
  4. D.Applies committed changes to the database on disk

Explanation

Undo reverses changes made by transactions that did not commit before the failure.

Report an error in this question

Recovery ManagementEasy

Q5. A checkpoint in database recovery is:

  1. A.A type of lock used to prevent concurrent access to shared data items
  2. B.An SQL statement used to query data from one or more database tables
  3. C.A point at which all modified data is written to disk and recorded in the log✓ Correct
  4. D.A type of index structure built on columns for faster data retrieval

Explanation

A checkpoint forces all modified buffers to disk and records a checkpoint entry in the log.

Report an error in this question

Recovery ManagementEasy

Q6. The Write-Ahead Log (WAL) protocol requires:

  1. A.Logs are only written to disk after the transaction has committed fully
  2. B.No log is needed for any database operations under this recovery protocol
  3. C.Data must be written to disk before the corresponding log records are made
  4. D.Log records must be written to disk before the corresponding data changes✓ Correct

Explanation

WAL requires that log records are written to stable storage before the actual database changes.

Report an error in this question

Recovery ManagementEasy

Q7. A system crash typically causes:

  1. A.Loss of data in main memory but not on disk✓ Correct
  2. B.No data loss of any kind after the crash
  3. C.Loss of all data everywhere in the system
  4. D.Loss of data on disk but not in main memory

Explanation

A system crash loses volatile (main memory) data while disk data typically survives.

Report an error in this question

Recovery ManagementEasy

Q8. A media failure refers to:

  1. A.Application crash caused by a software defect
  2. B.Network slowness affecting query response times
  3. C.Disk or storage device failure causing data loss✓ Correct
  4. D.Memory overflow due to excessive data loading

Explanation

Media failure involves damage to the storage medium (disk), causing loss of stored data.

Report an error in this question

Recovery ManagementEasy

Q9. Database backups are important for:

  1. A.Reducing table size by removing unnecessary data rows
  2. B.Recovering from media failures and catastrophic events✓ Correct
  3. C.Creating new databases from the backed up data copies
  4. D.Improving query speed and reducing execution latency

Explanation

Backups provide copies of the database for recovery from media failures and disasters.

Report an error in this question

Recovery ManagementEasy

Q10. An incremental backup stores:

  1. A.The entire database every single time
  2. B.Only the database schema definitions
  3. C.Only the changes since the last backup✓ Correct
  4. D.Only the transaction log file entries

Explanation

An incremental backup stores only the data that has changed since the last backup, saving time and space.

Report an error in this question

Recovery ManagementMedium

Q11. Deferred update (no-undo/redo) recovery technique:

  1. A.Requires neither undo nor redo operations during the recovery process
  2. B.Writes changes immediately and may need undo for uncommitted changes
  3. C.Does not write changes to disk until commit, so undo is never needed✓ Correct
  4. D.Does not use a log file for recording any of the transaction changes

Explanation

Deferred update postpones writing changes to disk until commit, eliminating the need for undo operations.

Report an error in this question

Recovery ManagementMedium

Q12. Immediate update recovery technique:

  1. A.Does not use a log file for any of the transaction record entries
  2. B.Writes changes only after commit, requiring only redo operations
  3. C.Requires only redo operations during the crash recovery process
  4. D.Writes changes to disk before commit, requiring both undo and redo✓ Correct

Explanation

Immediate update writes changes to disk before commit, so both undo (for uncommitted) and redo (for committed) may be needed.

Report an error in this question

Recovery ManagementMedium

Q13. Shadow paging recovery technique:

  1. A.Maintains two page tables: current and shadow✓ Correct
  2. B.Requires checkpoints at all times to function
  3. C.Uses only a log file for the recovery process
  4. D.Cannot handle any system crashes that may occur

Explanation

Shadow paging maintains a shadow copy of the page table; the shadow page table is the consistent backup.

Report an error in this question

Recovery ManagementMedium

Q14. After a crash, which transactions need to be redone?

  1. A.All transactions regardless of their commit state now
  2. B.Committed transactions whose changes may not be on disk✓ Correct
  3. C.Uncommitted transactions that were active during crash
  4. D.Only aborted transactions that failed before the crash

Explanation

Committed transactions are redone to ensure their changes are reflected in the database.

Report an error in this question

Recovery ManagementMedium

Q15. After a crash, which transactions need to be undone?

  1. A.All transactions regardless of their state at the time of the crash
  2. B.No transactions need to be undone during the recovery after a crash
  3. C.Transactions that were active (not committed) at the time of crash✓ Correct
  4. D.Committed transactions that completed successfully before the crash

Explanation

Active (uncommitted) transactions must be undone to remove their partial changes.

Report an error in this question

Recovery ManagementMedium

Q16. The ARIES recovery algorithm stands for:

  1. A.Automated Recovery and Integrity Enforcement System
  2. B.Advanced Recovery and Index Enhancement System
  3. C.Algorithm for Redo and Integrity Evaluation System
  4. D.Algorithm for Recovery and Isolation Exploiting Semantics✓ Correct

Explanation

ARIES stands for Algorithm for Recovery and Isolation Exploiting Semantics.

Report an error in this question

Recovery ManagementMedium

Q17. ARIES uses which three phases during recovery?

  1. A.Scan, Parse, Execute
  2. B.Analysis, Redo, Undo✓ Correct
  3. C.Lock, Execute, Unlock
  4. D.Read, Write, Commit

Explanation

ARIES recovery has three phases: Analysis (determine what needs to be done), Redo, and Undo.

Report an error in this question

Recovery ManagementMedium

Q18. A log sequence number (LSN) is:

  1. A.The total number of active transactions
  2. B.A type of lock used in concurrency control
  3. C.The size of the log file on stable storage
  4. D.A unique identifier for each log record✓ Correct

Explanation

An LSN uniquely identifies each log record and indicates its position in the log.

Report an error in this question

Recovery ManagementMedium

Q19. Fuzzy checkpointing differs from standard checkpointing in that:

  1. A.No log entry is written to record the occurrence of the checkpoint
  2. B.The database does not need to stop processing during the checkpoint✓ Correct
  3. C.All processing must stop completely during the checkpoint operation
  4. D.It occurs only once during the entire lifetime of the database

Explanation

Fuzzy checkpointing allows transactions to continue during the checkpoint process.

Report an error in this question

Recovery ManagementMedium

Q20. Physiological logging means:

  1. A.Log records describe changes at the page level with logical operations within the page✓ Correct
  2. B.Only logical operation names are logged without any reference to the physical pages
  3. C.Only physical byte-level changes are logged for each modification to the data pages
  4. D.No logging occurs at all for any modification made to the database during processing

Explanation

Physiological logging combines physical (page-level) and logical (operation-level) descriptions of changes.

Report an error in this question

Recovery ManagementHard

Q21. In ARIES, the analysis phase determines:

  1. A.The set of dirty pages and active transactions at crash time✓ Correct
  2. B.Only committed transactions that completed before the crash
  3. C.The hardware failure cause and the affected disk components
  4. D.Only the last checkpoint that was recorded in the log file

Explanation

The analysis phase scans the log from the last checkpoint to determine dirty pages and active transactions.

Report an error in this question

Recovery ManagementHard

Q22. In ARIES, the redo phase:

  1. A.Replays all logged changes from the earliest dirty page LSN forward✓ Correct
  2. B.Starts from the end of the log and processes records in reverse
  3. C.Only replays committed transactions and ignores uncommitted ones
  4. D.Undoes all transactions that were active at the time of the crash

Explanation

Redo in ARIES starts from the earliest LSN of dirty pages and replays all changes to restore the state at crash time.

Report an error in this question

Recovery ManagementHard

Q23. In ARIES, Compensation Log Records (CLRs) are:

  1. A.Checkpoint records that mark points of database consistency
  2. B.Log records for committed transactions only in the system
  3. C.Log records written during undo to record the undo actions✓ Correct
  4. D.Index maintenance records for B-tree structure updates

Explanation

CLRs are written during the undo phase to record undo actions, preventing re-undoing during repeated crashes.

Report an error in this question

Recovery ManagementHard

Q24. The steal/no-force buffer management policy means:

  1. A.Uncommitted pages can be written to disk (steal); committed need not be forced immediately (no-force)✓ Correct
  2. B.Committed pages are always forced to disk immediately; uncommitted pages are never written to disk
  3. C.Only committed pages are present on disk; uncommitted data remains exclusively in the memory buffer
  4. D.All pages are always kept in memory; nothing is written to disk until the entire database shuts down

Explanation

Steal allows writing uncommitted data to disk; no-force doesn't require committed data to be immediately written to disk.

Report an error in this question

Recovery ManagementHard

Q25. No-steal/force policy would mean:

  1. A.Uncommitted pages are never written to disk, and committed pages are always forced to disk✓ Correct
  2. B.Neither undo nor redo is needed with this policy since both cases are eliminated
  3. C.Uncommitted pages can be written to disk at any time before the transaction commits
  4. D.Committed pages may not be on disk immediately and can remain only in memory buffer

Explanation

No-steal/force eliminates the need for undo (no uncommitted data on disk) and redo (committed data always on disk).

Report an error in this question

Recovery ManagementHard

Q26. The redoLSN in ARIES is:

  1. A.The checkpoint LSN that marks the most recent consistency checkpoint
  2. B.The last LSN that was recorded in the transaction log before the crash
  3. C.The LSN from which redo must start (earliest recLSN among dirty pages)✓ Correct
  4. D.The LSN of the last commit record written to the stable storage log

Explanation

The redoLSN is the earliest recLSN in the dirty page table, indicating where redo must begin.

Report an error in this question

Recovery ManagementHard

Q27. Write-ahead logging requires that log records be written to stable storage before:

  1. A.The transaction starts its initial read operation
  2. B.Any query is executed against the database tables
  3. C.The corresponding data page is flushed to disk✓ Correct
  4. D.The user submits the query to the database system

Explanation

WAL requires log records to reach stable storage before the modified data pages are written to disk.

Report an error in this question

Recovery ManagementHard

Q28. In ARIES, when a transaction is undone, the undo follows:

  1. A.The commit order of other transactions in the same schedule
  2. B.The table creation order defined in the database schema file
  3. C.The lastLSN chain backward through that transaction's log records✓ Correct
  4. D.A random order without any specific sequence or priority rules

Explanation

Undo follows the chain of prevLSN pointers backward through the transaction's own log records.

Report an error in this question

Recovery ManagementHard

Q29. Remote backup systems for disaster recovery provide:

  1. A.A copy of the database at a geographically separate site✓ Correct
  2. B.Better index structures for improving search performance
  3. C.Improved normalization of tables to reduce data redundancy
  4. D.Faster query processing through parallel execution plans

Explanation

Remote backup systems maintain a database copy at a distant location for disaster recovery.

Report an error in this question

Recovery ManagementHard

Q30. The concept of idempotent redo means:

  1. A.Applying redo multiple times produces the same result as applying it once✓ Correct
  2. B.Redo can only be applied once and cannot be repeated after that point
  3. C.Redo changes the result each time it is applied to the database state
  4. D.Redo is never repeated because recovery always succeeds on first try

Explanation

Idempotent redo ensures that re-applying the redo operation produces the same state, important for crash during recovery.

Report an error in this question

Ready to test yourself on Recovery Management?

Take a timed quiz drawn from 210+ questions on this topic. No signup required — your progress saves in your browser.

Start Recovery Management Quiz