How do UPDATE and DELETE affect storage in Snowflake, given that micro-partitions are immutable?

Quick Overview

Asks how UPDATE and DELETE statements change storage in Snowflake when micro-partitions cannot be modified in place. Tests knowledge of the Snowflake storage model, its data retention features, and the storage and compute cost of frequent DML.

How do UPDATE and DELETE affect storage in Snowflake, given that micro-partitions are immutable?

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: medium

Interview Round: Other

Given the immutability of micro-partitions, how do DML operations like `UPDATE` and `DELETE` affect data storage in Snowflake? ```hint Follow one statement Trace an `UPDATE` that changes a single row. Which files have to be written, and what happens to the file that held the old version of the row? ``` ```hint Where the old data goes Think about how long the replaced files stay around, which features still refer to them, and who pays for that storage. ``` ### What a Strong Answer Covers - What happens physically on `UPDATE` and `DELETE`, and which unit of storage gets rewritten - What happens to the replaced data afterwards, which features still use it, and for how long - The storage and compute cost of frequent or scattered DML - Practical ways to reduce that cost ### Follow-up Questions - An `UPDATE` changes 0.1% of the rows, but the query profile shows a large share of the table being rewritten. Why, and what would you change? - How would you find out how much of a table's storage is Time Travel or Fail-safe data? - How does modifying a zero-copy clone affect storage for the clone and for its source table? - When would you use a transient table instead of a permanent one?

Overview: Asks how UPDATE and DELETE statements change storage in Snowflake when micro-partitions cannot be modified in place. Tests knowledge of the Snowflake storage model, its data retention features, and the storage and compute cost of frequent DML.

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

Given the immutability of micro-partitions, how do DML operations like UPDATE and DELETE affect data storage in Snowflake?

What a Strong Answer Covers Guidance

  • What happens physically on UPDATE and DELETE , and which unit of storage gets rewritten
  • What happens to the replaced data afterwards, which features still use it, and for how long
  • The storage and compute cost of frequent or scattered DML
  • Practical ways to reduce that cost

Follow-up Questions Guidance

  • An UPDATE changes 0.1% of the rows, but the query profile shows a large share of the table being rewritten. Why, and what would you change?
  • How would you find out how much of a table's storage is Time Travel or Fail-safe data?
  • How does modifying a zero-copy clone affect storage for the clone and for its source table?
  • When would you use a transient table instead of a permanent one?