Skip to main content
InterviewHubPRO
Section Overview
Q39

Question 39 of 50

Part 3: Advanced Optimization, Scale & Cortex AI (25 - 35)

78%
Snowflake Data Cloud (50 Qs)•Part 3: Advanced Optimization, Scale & Cortex AI (25 - 35)

Zero-Copy Cloning (`CLONE`): How pointer-based cloning works with zero initial storage cost.

senior LevelMost AskedCode ExamplePerformance

In Simple Words: Creating a full copy of a 50-terabyte production database for staging or testing takes seconds and costs $0 in new storage:

sql
CREATE DATABASE staging_db CLONE production_db;
  • How it works: Snowflake simply duplicates the metadata pointers in the Cloud Services layer pointing to the existing immutable micro-partitions.
  • Copy-on-Write (CoW): When staging engineers modify or delete rows in staging_db, only the newly generated delta micro-partitions incur storage billing. Production remains completely untouched.