How Snowflake zero-copy cloning works, why it is near-instant, and when storage costs start

Quick Overview

Asks how Snowflake zero-copy cloning works at the metadata level, why a clone of a large table is near-instant and initially free, and when storage costs start to grow. Tests understanding of immutable micro-partitions, divergence after DML, and how Time Travel retention affects clone storage.

How Snowflake zero-copy cloning works, why it is near-instant, and when storage costs start

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: medium

Interview Round: Other

Explain how zero-copy cloning works in Snowflake at a metadata level, why it is near-instant and initially free, and when storage costs begin to accrue. ```hint Storage units Think about how Snowflake stores table data and whether a stored unit can ever be edited in place. ``` ```hint Trace a change After the clone exists, follow what happens to storage when someone updates a handful of rows in either table. ``` ### What a Strong Answer Covers - What a clone creates at the metadata level and what it shares with the source. - Why immutable micro-partitions make sharing safe and make creation fast. - Which operations on either object create new storage, and at what granularity. - How shared partitions are retained after the source changes or drops data, and which object pays for them. ### Follow-up Questions - If you update 1% of the rows in a clone of a 10 TB table, how much new storage could that create? - What happens to storage when you drop the source table while a clone of it still exists? - How would you combine cloning with Time Travel to build a test environment from the data as it was an hour ago? - How can you measure how much storage a clone is responsible for?

Overview: Asks how Snowflake zero-copy cloning works at the metadata level, why a clone of a large table is near-instant and initially free, and when storage costs start to grow. Tests understanding of immutable micro-partitions, divergence after DML, and how Time Travel retention affects clone storage.

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

Explain how zero-copy cloning works in Snowflake at a metadata level, why it is near-instant and initially free, and when storage costs begin to accrue.

What a Strong Answer Covers Guidance

  • What a clone creates at the metadata level and what it shares with the source.
  • Why immutable micro-partitions make sharing safe and make creation fast.
  • Which operations on either object create new storage, and at what granularity.
  • How shared partitions are retained after the source changes or drops data, and which object pays for them.

Follow-up Questions Guidance

  • If you update 1% of the rows in a clone of a 10 TB table, how much new storage could that create?
  • What happens to storage when you drop the source table while a clone of it still exists?
  • How would you combine cloning with Time Travel to build a test environment from the data as it was an hour ago?
  • How can you measure how much storage a clone is responsible for?