Loading Academy Hub...
Master enterprise data protection and disaster recovery: Snowflake Time Travel (`AT` / `BEFORE` statements), `UNDROP` instant recovery, and 7-day non-configurable Fail-Safe storage.
[!NOTE] Snowflake provides built-in enterprise disaster recovery without requiring daily full backup tapes.
[ Active Storage ] ──(0 to 90 Days)──▶ [ Time Travel ] ──(7 Days)──▶ [ Fail-Safe ] ──▶ [ Purged ]
(Fully queryable) (Query, Clone, UNDROP) (Snowflake Support Only)
AT(TIMESTAMP => ...) or BEFORE(OFFSET => ...)).UNDROP TABLE table_name;.TRUNCATE + Reload (Time Travel + Fail-Safe): Standard Permanent tables retain up to 1–90 days of Time Travel + 7 days non-configurable Fail-Safe. Running hourly full-table CREATE OR REPLACE TABLE or TRUNCATE + INSERT on a 10TB staging table preserves 7+ days of dead historical micro-partitions—inflating storage bills 20x! Declare all scratch/staging/Bronze reload layers as CREATE TRANSIENT TABLE (0-day Fail-Safe, 0–1 day Time Travel).UNDROP & Point-in-Time Recovery: Mistakenly dropped a table or ran a bad DELETE without a WHERE clause? Instantly execute UNDROP TABLE orders; or CREATE TABLE orders_recovered CLONE orders AT(OFFSET => -60*15); in seconds with zero backup restore downtime.SNOWFLAKE.CORE.SEMANTIC_CATEGORY) inside unified RBAC functional/access roles (SYSADMIN, DATA_ENG, PII_READER).Review the production code, company interview Q&As, incident traces, and comprehension quiz inside this lesson.
-- 1. Accidentally dropped table recovery in 1 second DROP TABLE lakehouse_dw.finance.fact_transactions; -- Instantaneous metadata recovery (preserves all data, privileges, and stages) UNDROP TABLE lakehouse_dw.finance.fact_transactions; -- 2. Query table state before an accidental unconstrained UPDATE SELECT COUNT(*) FROM lakehouse_dw.finance.fact_transactions BEFORE(STATEMENT => '01b34c2a-0000-1234-0000-567800012345'); -- 3. Restore table from point in time 2 hours ago CREATE OR REPLACE TABLE fact_transactions_restored CLONE lakehouse_dw.finance.fact_transactions AT(OFFSET => -60*120);
Snowflake Storage Invoice: Fail-Safe storage consumed 40TB on daily staging tables.