Domain: Snowflake Features & Architecture
· 556 words · 10 min read

Storage Layer

Overview

The Storage Layer is the foundation of Snowflake's architecture. It is where all persistent data resides. For the SnowPro Core (COF-C03) exam, you must understand how data is physically stored in the underlying cloud provider (S3, GCS, Azure Blob), how it is structured (micro-partitions), and how storage costs are calculated.

Key Concepts

Centralized Object Storage

When data is loaded into Snowflake, it is reorganized into Snowflake's internal optimized, compressed, columnar format.

Columnar Storage

Snowflake stores data in a columnar format. Traditional databases often use row-based storage.

Micro-Partitions

Snowflake automatically divides all data into continuous, non-overlapping storage units called micro-partitions.

How It Works

Data Compression

Snowflake automatically compresses all data upon ingestion.

Storage Costs

Storage in Snowflake is billed based on a flat rate per terabyte per month.

SQL Examples

You generally do not interact with the storage layer directly via SQL, but you can monitor storage usage:


-- View storage usage for the account (requires ACCOUNTADMIN role)
SELECT * FROM SNOWFLAKE.ACCOUNT_USAGE.STORAGE_USAGE 
ORDER BY USAGE_DATE DESC LIMIT 10;

-- View table size information
SHOW TABLES;
-- Look at the 'bytes' column in the output, which shows compressed size.

Exam Tips

⚠️ Crucial for COF-C03:

Key Takeaways