Choose failover or recovery based on what failed
A zonal outage and an accidental committed deletion have different recovery paths.
Choose failover or recovery based on what failed
A zonal outage and an accidental committed deletion have different recovery paths. Define the point in time and the duration of interruption the business can tolerate, then verify the restored data before reopening writes.
The speaker recovers Cloud SQL to the minute before a faulty change because the replicated copy has also received the deletion.
Work through the decision
A backup completed at 09:00, valid transactions continued until 10:14, and a bad change committed at 10:15. What should the recovery test prove?
Check your reasoning
Restore to a separate instance just before the bad change if PITR is available. Verify a known 10:14 transaction exists and the faulty change does not. Reconcile later valid writes before deciding how to cut clients over.
Decisions and tradeoffs
- Cloud SQL point-in-time recovery
- For a supported instance with PITR enabled and retained logs, restore to a point before a committed mistake and verify the recovered state.
- Regional high-availability configuration
- A regional HA design can fail over to a standby in another zone when the primary zone becomes unavailable.
- Independent backup with a tested restore
- A retained backup and restore runbook provide a recovery path independent of current serving replicas. Test coverage, timing and permissions.
Practice each guide skill
Work through these exercises in the order of the published guide. The checklist numbers are local references.
- Test a managed backup restore and point-in-time recovery for a supported Cloud SQL instance. Verify the last known good record and elapsed time.
- Compare a serving replica or standby with a historical restore. Explain what happens to a committed deletion under replication.
- Choose primary and secondary locations for the required failure scope. A second zone addresses a different outage from a second region.
Official objectives for this lesson
Related lesson · Separate archival, expiry and recovery
Choose failover or recovery based on what failed quiz
Answer 3 questions. Check each answer for an explanation.
Worked example · Choose failover or recovery based on what failed