Optimizing Snowflake Storage Costs for Variable Workloads
Instruction: Propose a strategy for optimizing storage costs in Snowflake, tailored to handle variable and unpredictable data workloads.
Updated
Example answer
Separate storage charges from warehouse and serverless compute. First attribute active table data, historical versions, retained clone data and staged files to owners. Use storage metrics over time; a reduction in scanned partitions is a query-work reduction, not proof that stored bytes fell.
Agree retention and recovery requirements before deleting data or shortening history. Time Travel provides access to historical states within its configured retention period. For permanent tables, Fail-safe is a separate, non-configurable seven-day recovery period operated by Snowflake after Time Travel; it is not a user-queryable archive or a configurable cheap-storage tier.
Remove unnecessary copies and expired staged files through a reviewed lifecycle. Keep only justified historical data, but account for legal holds and recovery needs. Transient tables have no Fail-safe and can suit reproducible intermediate data when the reduced protection is acceptable; they are not a blanket cost recommendation for irreplaceable records. Dropping or changing data may not immediately release all historical storage.
Do not enable Automatic Clustering solely to save storage. It can improve pruning and sometimes compression, but reclustering consumes compute and creates replaced micro-partitions that can remain in historical storage. Evaluate the net workload benefit and maintenance costs.
For example, compare a week of active and historical bytes before and after removing a redundant reproducible staging copy, while confirming the pipeline can recreate it. Report the measured storage change separately from query/runtime changes. Include external archive storage, retrieval and transfer costs if archiving is considered.
Sources
Time Travel; Fail-safe; clustering costs; temporary and transient tables.