Problem Statement
Why must you test restores and not only take backups? Outline a simple validation routine.
Explanation
Backups can be corrupt, incomplete, or incompatible. A restore is the proof that recovery works. Without tests, failures appear during incidents when time is scarce.
Automate periodic restores to a sandbox, replay logs to a target timestamp, and run canary queries and row-count checks. Compare checksums or counts against baselines, and alert if validation fails. Record RTO and update runbooks.
Code Solution
SolutionRead Only
1) Restore latest full 2) Replay logs to T 3) run: SELECT COUNT(*) FROM critical_tables; -- compare to baseline
Practice Sets
This question appears in the following practice sets:
