How do Time Travel and zero-copy cloning work together in Snowflake, and when would you use both?

Quick Overview

Explain how Snowflake Time Travel and zero-copy cloning combine to create a writable copy of a table as it existed in the past, and walk through a scenario that uses both. Tests practical warehouse recovery skills, retention limits and storage behavior of clones.

How do Time Travel and zero-copy cloning work together in Snowflake, and when would you use both?

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: medium

Interview Round: Other

How do Time Travel and zero-copy cloning work together in Snowflake, and can you provide a real-world scenario where you would use both? ```hint What a clone stores Ask what a clone actually writes when it is created, and whether it has to point at the table's current state. ``` ```hint Picture an incident A bad job has just damaged a production table. Think about what you need to inspect, how fast you need it, and what you must not touch while you investigate. ``` ### What a Strong Answer Covers - What Time Travel keeps, for how long, and how `AT` and `BEFORE` select a past state. - What zero-copy cloning stores at creation and when new storage starts to be used. - How the two combine into a writable point-in-time copy, with the SQL to create it. - A concrete scenario from detection to restore, and the limits that apply (retention window, storage held by clones, writes made after the chosen point). ### Follow-up Questions - The bad job ran three days ago and the table's retention is 1 day. What are your options? - How would you repair only the rows the job damaged while keeping legitimate writes made after it? - Why can a clone that lives for months raise storage cost even though it was free to create? - How would you give a data science team a fixed month-end snapshot of production for model training?

Overview: Explain how Snowflake Time Travel and zero-copy cloning combine to create a writable copy of a table as it existed in the past, and walk through a scenario that uses both. Tests practical warehouse recovery skills, retention limits and storage behavior of clones.

PracHub logo
General
Nov 25, 2026
mediumData ScientistOtherData Manipulation (SQL/Python)
0
0

How do Time Travel and zero-copy cloning work together in Snowflake, and can you provide a real-world scenario where you would use both?

What a Strong Answer Covers Guidance

  • What Time Travel keeps, for how long, and how AT and BEFORE select a past state.
  • What zero-copy cloning stores at creation and when new storage starts to be used.
  • How the two combine into a writable point-in-time copy, with the SQL to create it.
  • A concrete scenario from detection to restore, and the limits that apply (retention window, storage held by clones, writes made after the chosen point).

Follow-up Questions Guidance

  • The bad job ran three days ago and the table's retention is 1 day. What are your options?
  • How would you repair only the rows the job damaged while keeping legitimate writes made after it?
  • Why can a clone that lives for months raise storage cost even though it was free to create?
  • How would you give a data science team a fixed month-end snapshot of production for model training?