# How do I choose a Snowflake recovery step after a bad update or accidental drop?

Exam: COF-C03 — SnowPro Core Certification Exam
Knowledge domain: Account Management and Data Governance
Updated: 2026-11-25T08:00:27.160006+00:00
HTML: https://learningpathx.com/faq/COF-C03/cofc03-snowflake-recover-before-update-or-drop.html

## Also asked as

- When should I query old Snowflake data, create a historical clone, or use UNDROP?
- How can I verify Snowflake data before restoring it after an update or a drop?

For a bad update on an existing table, use Time Travel to inspect the pre-change data and use a historical clone if you need a writable copy for reconciliation. For an eligible dropped table still within retention, `UNDROP TABLE` restores the table to its state before the drop. Both paths depend on the object's retention and the privileges needed for the operation.

Record the account, exact object, failed action, query ID or failure time, and time zone. If ongoing writes make comparison unreliable, coordinate a pause before repairing data. For an update query ID from the past 14 days and history that is still retained, an example read-only check is `SELECT COUNT(*) FROM training.orders.current_orders BEFORE (STATEMENT => '<query_id>')`. The statement-based time point is just before the statement completed, so check for intervening concurrent writes. Use a known timestamp if you need the state before the update began. Compare business keys and changed values as well as counts. A historical clone with the same `BEFORE` point lets you validate the proposed repair without editing the live source.

For a drop, confirm which dropped version is intended and whether the name is in use. `UNDROP TABLE` fails if an active table already has the same name. Plan any rename separately and verify dependent grants, views, tasks, streams and applications after recovery. Test the repair on an isolated clone or test object and preserve the change record. If the required state is beyond Time Travel, confirm eligibility before opening a Snowflake Support case for best-effort Fail-safe recovery. Plan separately for account or region failure through supported replication and failover capabilities.

[Time Travel](https://docs.snowflake.com/en/user-guide/data-time-travel) · [AT | BEFORE](https://docs.snowflake.com/en/sql-reference/constructs/at-before) · [UNDROP TABLE](https://docs.snowflake.com/en/sql-reference/sql/undrop-table) · [CREATE … CLONE](https://docs.snowflake.com/en/sql-reference/sql/create-clone) · [Fail-safe](https://docs.snowflake.com/en/user-guide/data-failsafe) · [Account replication and failover](https://docs.snowflake.com/en/user-guide/account-replication-intro)

Source: [Data Protection with Time Travel, Fail-safe, and Zero-copy Cloning](https://learningpathx.com/news/data-protection-with-time-travel-fail-safe-and-zero-copy-cloning.html)
