Developing a Disaster Recovery Plan in Snowflake
Instruction: Create a detailed disaster recovery plan for Snowflake, considering different scenarios and recovery objectives.
Updated
Official answer
Inventory critical data products and their dependencies: accounts, roles, integrations, stages, pipelines, clients and external storage. Assign a business owner and approved recovery-point objective (acceptable data loss) and recovery-time objective (time to usable service) for each.
Plan separately for accidental changes, compromised credentials, pipeline corruption and regional outage. Replication can propagate an erroneous update, so a current replica is not necessarily a clean recovery copy.
For logical errors, configure appropriate retention and test eligible Time Travel recovery or protected backups. Fail-safe is a separate Snowflake-managed last-resort recovery mechanism, not a self-service point-in-time restore with a guaranteed short RTO. Check object-type and edition limits.
For regional recovery, configure supported failover groups and secondary accounts, refresh them, and monitor the age of the last successful recovery point. Confirm replication coverage and separately prepare unsupported/external dependencies. Document required privileges and access during an identity-provider outage.
The runbook should name who declares the incident, fences conflicting writers, selects the recovery point, promotes the secondary, redirects clients and resumes ingestion. Validate permissions and data totals before reopening service. Reconcile potentially missing or repeated source events.
Rehearse failback and verify writes made during the outage before changing the primary again. Test with production-like volumes and failure conditions. Record measured data loss, recovery time and unresolved dependencies; an hourly refresh schedule alone does not prove a one-hour RPO.
Failover procedure, Time Travel, Fail-safe, replication scope