Module 14 · Lesson 7 of 12Detailed study · about 20 min

Time Travel and Fail-safe are different recovery promises

Fail-safe is Snowflake-managed, best-effort recovery of eligible permanent-table history after Time Travel; it is not an extra SQL-queryable retention window.

Your learning goal

Choose a table type based on acceptable loss and explain the lifecycle without promising immediate or guaranteed Fail-safe recovery.

Understand the idea

A concrete example

An orders incident is discovered after the table’s Time Travel window. A developer cannot add AT OFFSET to reach Fail-safe. The response becomes an escalation and business continuity decision.

Key ideas in simple English
ConceptWhat it means
Time TravelSelf-service historical SELECT, eligible CLONE and UNDROP.
Fail-safeFixed seven-day last-resort window for eligible permanent data; contact Snowflake Support.
Transient / temporaryNo Fail-safe protection.
Final removalWhen history and other references no longer require data; asynchronous cleanup.

Remember: Design detection and self-service recovery to finish within retention; treat Fail-safe as a last resort, not an operational shortcut.

Explain it step by step · full theory

Learning objectives and prerequisites

Choose a table type based on acceptable loss and explain the lifecycle without promising immediate or guaranteed Fail-safe recovery.

Build on Modules 02–04: storage, table types, SELECT, DML and transactions. Module 13 explains why recovery must preserve valid business history. Use the first lesson’s isolated setup; examples name separate demonstration tables so the baseline ORDERS stays unchanged.

Two different services

Time Travel is designed for normal user-directed historical operations within policy. Fail-safe is a last resort when other recovery paths fail. Snowflake Support performs recovery on a best-effort basis; it can take hours to days, so it is not a way to guarantee a dashboard is restored in minutes.

Do not schedule routine reports against Fail-safe or describe it as a user-accessible seven-day backup. There is no SELECT FROM FAILSAFE command. The lab teaches the decision process without attempting a support recovery.

Read the lifecycle correctly

Active data is not automatically deleted when a table reaches a certain age. Old data becomes historical when changed or dropped. For permanent tables, eligible historical data proceeds from Time Travel to Fail-safe. For transient and temporary tables there is no Fail-safe phase.

Clones and other retention references complicate physical cleanup: data still referenced by an active clone must remain available. Long-running historical queries can also delay transitions. The visual is a conceptual lifecycle, not a stopwatch for physical deletion.

Choose permanent, transient or temporary deliberately

An authoritative order record with no reliable reconstruction path deserves stronger recovery planning than a disposable aggregation. Transient can be appropriate for a rebuildable stage, but cheaper retention is not a sufficient reason to use it for irreplaceable data. Temporary tables are session-scoped; ending the session is a loss of that working environment.

If recovery obligations exceed Time Travel, evaluate separately designed backups and replication with the platform team. A same-account clone alone does not protect against all account, region or credential failures. This module does not configure a disaster-recovery deployment.

Operational recovery decision
NeedUseDo not promise
Inspect yesterday’s eligible versionTime TravelUnlimited archive
Recover eligible dropped objectUNDROPRecovery after history expires
Last-resort permanent-data incidentSnowflake Support / Fail-safeGuaranteed immediate restoration
Regional/account resilienceSeparate continuity designThat a local clone is sufficient

An escalation packet helps recovery

Record fully qualified object names, known object IDs, incident and discovery times with zones, query IDs, type/retention policy, last known good state and business impact. Preserve query/audit evidence and avoid changes that destroy remaining recovery options.

If a transient table’s history expired, do not wait for a Fail-safe window that does not exist. Investigate original files, upstream source systems or a separately retained snapshot. Recovery readiness includes knowing who owns those sources.

Production decisions and common mistakes

Design detection and self-service recovery to finish within retention; treat Fail-safe as a last resort, not an operational shortcut.

Do not add seven days to a transient table’s Time Travel policy or assume Support can recover every expired object.

Key takeaways

Rebuild from the protected raw source, validate file scope and deduplication, then reconcile downstream results. Explain the rebuild time and loss window; there is no Fail-safe fallback for the transient table.

Words used in this lesson
Fail-safe
Snowflake-managed best-effort recovery after Time Travel for eligible permanent data.
Recovery time objective
How quickly the business needs service restored.
Recovery point objective
How much loss of recent data the business can tolerate.
Rebuildable
Data can be regenerated from a protected source within acceptable time.

See how it works

Choose a step to explore the idea at your own pace.

Open the interactive explanation
Interactive explainer1 / 4

Time Travel and Fail-safe are different recovery promises

Active
  • Current orders
Current / planned state

Current data

The active version remains queryable. The lifecycle below concerns old data that has been changed or dropped, not a countdown that deletes an unchanged active table.

Automatic playback is off for reduced motion. Select any step or use Previous and Next. Illustrations explain behavior; they are not live measurements.

Read the complete diagram explanation
  1. Current data

    The active version remains queryable. The lifecycle below concerns old data that has been changed or dropped, not a countdown that deletes an unchanged active table.

    • Active: Current orders
  2. Time Travel

    Within effective retention, an authorized user can inspect history, clone it or restore eligible dropped objects. This is the normal self-service incident window.

    • Self-service window: SELECT AT / BEFORE; Historical CLONE; UNDROP
  3. Fail-safe for permanent data

    After Time Travel, eligible permanent-table history enters a seven-day, Snowflake-managed last-resort window. Users cannot SELECT it; support recovery is best effort.

    • Permanent: Support case; No SQL history access
    • Transient / temporary: No Fail-safe
  4. No remaining recovery reference

    After protection expires and no clone or other retention reference needs the data, it becomes eligible for removal. Physical cleanup is asynchronous, not an exact user-visible timer.

    • No Time Travel: No self-service recovery
    • No remaining protection: Use separately designed recovery sources

Try the SQL or command

Read → predict → run in your learning environment → compare. You can also learn by reading without an account.

New to SQL? Where to run it and how to read it

A query is a question written in SQL. Snowflake runs it and returns a result table. This website shows examples; it does not connect to your account.

  1. No account yet? Read and predict the output first. Follow the account and Snowsight lesson when you are ready.
  2. For SQL practice, use a learning account in Snowsight and select an authorized role and warehouse. A role determines permissions; a warehouse supplies processing power. Follow the example’s database/schema setup when it refers to stored objects.
  3. Read the entire example, including comments beginning with --. Run the selected statement or labeled block in the stated order. Examples labeled Python, shell or HTTP belong in that client, not in a SQL editor.
  4. Compare values and row counts with the explained result. If an example deliberately causes an error, follow its rollback and cleanup steps before continuing.
SELECT / FROM
Choose the values to return / identify their input.
VALUES / COLUMN1
VALUES supplies tiny example rows. COLUMN1 means their first column, COLUMN2 their second.
AS / WITH
AS gives a result a readable name. WITH names a temporary query step within one statement.
NULL / ::
NULL means missing or unknown. The :: notation converts a value to a named data type.
Session
One connection and its settings. Keep related transaction steps in the same session.
Database.schema.table
A full address for stored data. It is separate from the warehouse that processes queries.

Need the L2_OBJECTS_LAB setup? Open the first database-object lesson →

Help with common practice errors
  • No active warehouse: select a warehouse your role can use. Do not assume you need to create a new one.
  • Object missing or not authorized: check the full name, required setup and active role. Ask the account owner for access if needed.
  • Object already exists: setup may already have run. Read the current state or choose a fresh lab name consistently; do not add OR REPLACE blindly.
  • Different result: check whether an earlier INSERT or UPDATE changed the data. VALUES examples provide their own fresh input for each statement.

Before running this lesson

Manual Snowflake practice only; SQL has not been executed for this course. Use an authorized warehouse and role with access to L2_OBJECTS_LAB and CREATE SCHEMA/CREATE TABLE as needed. Run in M14_LAB, in one session with one writer, using autocommit unless a transaction is shown. Run CREATE once, never replace an existing production object. Standard Edition with one-day retention is sufficient for the main lab; longer retention and administrative monitoring have separate requirements.

Inspect table type and policy

Definition: The object type determines which recovery phases exist.

When to use: Read existing learning tables before choosing a recovery path.

SQL · example
SHOW TABLES IN SCHEMA L2_OBJECTS_LAB.M14_LAB;
SHOW PARAMETERS LIKE 'DATA_RETENTION_TIME_IN_DAYS' IN TABLE L2_OBJECTS_LAB.M14_LAB.ORDERS;
-- No SQL command queries or enables Fail-safe recovery.

What to expect and why

ORDERS was created as permanent. SHOW output varies with your account and objects; inspect kind/retention details instead of assuming every table shares the same policy.

Compare disposable table types

Definition: Explicit types make the risk visible during design.

When to use: Optional, same-session demonstration; both names must be new.

SQL · example
USE SCHEMA L2_OBJECTS_LAB.M14_LAB;
CREATE TRANSIENT TABLE REBUILDABLE_ORDERS (ORDER_ID NUMBER) DATA_RETENTION_TIME_IN_DAYS=1;
CREATE TEMPORARY TABLE SESSION_ORDERS (ORDER_ID NUMBER) DATA_RETENTION_TIME_IN_DAYS=1;
INSERT INTO REBUILDABLE_ORDERS VALUES(101);
INSERT INTO SESSION_ORDERS VALUES(101);
SHOW TABLES LIKE '%ORDERS' IN SCHEMA L2_OBJECTS_LAB.M14_LAB;
-- Temporary data is tied to this session. Neither table has Fail-safe.

What to expect and why

One-day Time Travel does not grant either table a Fail-safe period. The transient table survives a session ending; the temporary table does not remain a durable recovery source.

Check your understanding

Choose an answer, then check your reasoning. This is practice, not a scored test.

Can you run a historical SELECT against Fail-safe?

Try it yourself

A transient staging table expired, but the raw files are retained. What is the likely recovery path?

Compare your reasoning

Rebuild from the protected raw source, validate file scope and deduplication, then reconcile downstream results. Explain the rebuild time and loss window; there is no Fail-safe fallback for the transient table.

Key takeaway

Design detection and self-service recovery to finish within retention; treat Fail-safe as a last resort, not an operational shortcut.

Connect this lesson to the learning path

Official sources and curriculum

Module 14 · See module scope

By Rohit Ray · Independent educational lesson · Explore this visual lab