A Snowflake architect picks a data model knowing that the physical layout below is fixed: micro-partitions are immutable, columnar, and compressed, and the metadata layer prunes them on every query. That decoupling means:
- joins are cheap when both sides cluster well on the join key,
- scans of wide tables only read the columns selected,
- the storage cost of redundancy is dominated by compression ratios rather than row counts.
The classical pressure to normalise away repetition to save disk is absent. The pressure that remains is correctness, auditability, and query pattern fit, and those are what drive the model choice. This section walks through the four modelling families an architect sees on the platform, then folds in the semi-structured types and the view family that sit alongside the base tables.
In practice
The default failure mode is picking a model on instinct rather than on the workload it has to serve. A model that fits an OLTP source system on a Postgres replica may be exactly wrong when promoted to a Snowflake analytic mart, and a model that fits an executive dashboard may be wrong when promoted to a feature store that an ML pipeline reads at low latency.
The architect's job is to map the read workload, the rate of change in the upstream schemas, and the governance budget onto one of the four families below, then back it with the right object type (table, view, secure view, materialized view, external table, dynamic table) for each access pattern.
Comparing 3NF, dimensional, Data Vault, and wide-table modelling
Comparison
Third Normal Form (3NF) treats every entity as its own table with foreign-key relationships, eliminating update anomalies and keeping every fact in exactly one place.
Inside Snowflake, 3NF is the right answer for an integration layer that ingests from operational source systems and must reproduce them losslessly.
The pain is at read time: a typical analytic question stitches together a dozen tables, and every join adds a join operator to the query profile. With well-clustered keys the joins are cheap, but the SQL becomes verbose and analysts complain about path complexity.
3NF also handles slowly-changing dimensions poorly without bolt-on tables; you end up with customer_history plus customer_current plus surrogate-key tables, which defeats the simplicity argument.
Dimensional (Kimball) modelling organises data into facts and conformed dimensions, with surrogate keys, Type 1 and Type 2 history, and a star or snowflake topology. Inside Snowflake, a star schema reads naturally:
- the fact table clusters on the date key,
- dimensions are small enough to broadcast on join,
- the query profile shows clean partition pruning on the fact and broadcast joins on every dimension.
Materialized views layered on the fact table accelerate the canonical roll-ups.
The cost is that every change in business definition propagates through dimensional conformation, and SCD2 history can swell dimension row counts beyond their broadcast budget. Architects use dimensional for the presentation layer that BI tools query.
Data Vault 2.0 splits the source of truth into hubs (business keys), links (relationships), and satellites (descriptive history with hash-diff change detection). It is the right model when:
- the platform must serve as the auditable system of record across many upstream sources
- the schemas of those sources evolve independently.
Inside Snowflake, the hub-link-satellite topology produces many narrow tables and many joins, but the column-store pruning keeps query cost in check, and HASH_AGG plus MD5_BINARY integrate naturally with Snowpark or stored procedures for hash-diff loaders.
The downside is that nobody outside the data team can write SQL against a raw vault; the architect always layers a business vault (point-in-time and bridge tables) plus a presentation mart on top.
Wide-table (One Big Table, OBT) denormalises every dimension's attributes onto the fact row, producing a single very wide table per use case. This is the model that the column store rewards most aggressively: a query that touches eight attributes reads eight columns out of two hundred, joins become unnecessary, and analyst SQL is short. The drawback is that updates to a dimension attribute now propagate to every row of the fact, which is expensive on a hundred-billion-row table, and history management collapses into the wide table itself (you keep effective-from and effective-to columns per attribute). OBT shines for:
- feature stores
- ML training tables
- product analytics where late-arriving attribute changes are rare.
-- A presentation-layer star schema example for finance.
-- The fact table is clustered on the most-filtered low-cardinality date key.
CREATE OR REPLACE TABLE finance.presentation.fct_invoice (
invoice_sk NUMBER NOT NULL,
invoice_date_sk NUMBER NOT NULL,
customer_sk NUMBER NOT NULL,
product_sk NUMBER NOT NULL,
region_sk NUMBER NOT NULL,
invoice_amount_usd NUMBER(18,2),
invoice_quantity NUMBER(18,4),
load_ts TIMESTAMP_NTZ DEFAULT CURRENT_TIMESTAMP()
)
CLUSTER BY (invoice_date_sk, region_sk);
CREATE OR REPLACE TABLE finance.presentation.dim_customer (
customer_sk NUMBER NOT NULL,
customer_bk STRING NOT NULL,
customer_name STRING,
customer_tier STRING,
effective_from_ts TIMESTAMP_NTZ,
effective_to_ts TIMESTAMP_NTZ,
is_current BOOLEAN
);
-- Equivalent OBT layout for a marketing feature store.
-- Wide schema, no joins at read time, attribute history embedded.
CREATE OR REPLACE TABLE marketing.feature_store.user_session_features (
session_id STRING,
user_id STRING,
session_start_ts TIMESTAMP_NTZ,
session_end_ts TIMESTAMP_NTZ,
user_tier_at_session STRING,
user_country_at_session STRING,
device_class STRING,
page_view_count NUMBER,
cart_add_count NUMBER,
purchase_amount_usd NUMBER(18,2),
seven_day_ltv_usd NUMBER(18,2),
feature_load_ts TIMESTAMP_NTZ DEFAULT CURRENT_TIMESTAMP()
)
CLUSTER BY (TO_DATE(session_start_ts));
💡 Exam Trap: Choosing 3NF for the presentation layer because "it normalises better" misreads the platform. Snowflake's storage cost is dominated by compression and not by row count, so the storage saving from normalisation is small, while the read cost of dozens of joins per dashboard query compounds. The exam expects you to recommend dimensional or OBT for the consumption layer and reserve 3NF or Data Vault for the integration layer.
Determining the appropriate model based on business requirements
The decision turns on five questions.
- First, who is the consumer?
- A BI tool with a semantic layer expects a star schema; an ML pipeline expects a wide feature table; a regulator expects an auditable vault.
- Second, how often do upstream schemas change?
- If the answer is "constantly and independently across many sources," Data Vault absorbs that change with new satellites without breaking downstream loaders.
- Third, what is the latency budget?
- A near-real-time dashboard with sub-second response wants a small star plus materialized views or dynamic tables; a daily executive pack tolerates longer pipelines.
- Fourth, what is the audit and SCD requirement?
- If every attribute change needs a full audit trail, Data Vault satellites or Type 2 dimensions are the right home.
- Fifth, what is the query mix?
- Heavy point lookups on a high-cardinality key suggest Search Optimization Service over the canonical model; heavy aggregations on a star fact suggest a materialized view; heavy column scans on wide tables fit OBT.
How it works
A common architect pattern combines layers:
- Raw landing tables hold the source data.
- A Data Vault integration layer captures history with hashes.
- A business vault tier resolves point-in-time semantics.
- A dimensional or OBT presentation layer feeds BI and ML.
Each layer uses the model that fits its job, and dynamic tables or scheduled stored procedures move data between layers.
🎯 Scenario: A retailer ingests order events from a Postgres OLTP system, a customer-loyalty system, and a third-party shipping API, then serves both a finance dashboard and an ML churn model. The architect designs three layers: a raw landing schema with one table per source preserved in 3NF, a Data Vault layer with
hub_customer,link_order_customer, and dated satellites that hash-diff each upstream payload, and two presentation outputs: a star schema for the finance dashboard withfct_orderplus conformed dimensions, and an OBT feature store for the ML model joining shipping outcomes into per-customer rows. Each layer earns its model; nobody writes BI SQL against the vault.
⚠️ Anti-Pattern: Force-fitting every workload into one Data Vault layer because "it is the most auditable model" produces a system that nobody outside the data team can query without a 200-line SELECT. The presentation tier still needs a dimensional or OBT projection. Architects who skip the projection step end up rebuilding it under duress when the BI team escalates.
Decision Anchor: Choose 3NF for an integration layer that mirrors source systems. Choose Data Vault for an integration layer that must absorb independent upstream change with full audit history. Choose dimensional for a BI-facing presentation layer with conformed business semantics. Choose OBT for feature stores and product-analytics tables where joins at read time would dominate query cost.
Trade-offs of semi-structured data types (VARIANT, OBJECT, ARRAY)
Snowflake stores semi-structured data in three native types.
VARIANTaccepts any valid JSON, XML, Avro, ORC, or Parquet payload up to 16 MB compressed per value.OBJECTis a typed map of key-to-value pairs.ARRAYis an ordered collection.
Internally each of these uses the same micro-partition columnar machinery: when a VARIANT column is loaded, the engine performs automatic shredding, storing repeating sub-attributes as columnar slices when their cardinality and type are consistent.
That means a VARIANT column queried with payload:user.country::STRING can prune as efficiently as a typed column when the substructure is regular.
The architectural pattern is schema-on-read for landing, schema-on-write for presentation.
Inbound JSON or Avro lands in a VARIANT column with no DDL evolution required, which removes a coordination bottleneck with upstream producers.
A scheduled task or dynamic table then projects the regular subset of the VARIANT into typed columns for the analytic layer, where types matter, constraints can be enforced informationally, and LATERAL FLATTEN is no longer needed in user-facing SQL.
-- Landing semi-structured data with no DDL coordination.
CREATE OR REPLACE TABLE raw.events.web_event_raw (
event_id STRING,
event_ts TIMESTAMP_NTZ,
payload VARIANT
);
-- Promoting the regular fields into a typed dynamic table.
CREATE OR REPLACE DYNAMIC TABLE raw.events.web_event_typed
TARGET_LAG = '5 minutes'
WAREHOUSE = wh_etl_m
AS
SELECT
event_id,
event_ts,
payload:"user":"id"::STRING AS user_id,
payload:"user":"country"::STRING AS user_country,
payload:"page":"url"::STRING AS page_url,
payload:"page":"referrer"::STRING AS page_referrer,
payload:"experiments" AS experiments_obj
FROM raw.events.web_event_raw;
The trade-off list is concrete.
- VARIANT columns are flexible at write time but query syntax requires path navigation, type casts, and
IS_NULL_VALUEdiscipline. - Schema drift is invisible (a producer dropping a field will not break ingest), which is both the strength and the risk.
- Aggregations on shredded VARIANT paths are competitive with typed columns when the substructure repeats, but irregular payloads or deeply nested arrays force per-row parsing that slows down.
- Joins on a VARIANT-extracted key cost more than joins on a typed column because the planner has less type information.
📊 Limit: A single VARIANT value is capped at 16 MB after compression. Loading a JSON document larger than this returns
Max LOB size (16777216) exceeded. Architects who land very large nested payloads (clickstream sessions, IoT telemetry windows) must pre-split at the producer or use external tables over file storage.
💡 Exam Trap: Assuming OBJECT and VARIANT are interchangeable in DDL. They are not. A column declared
OBJECTrejects non-object payloads at load; a column declaredVARIANTaccepts any JSON shape. The exam will give a scenario where the producer is sending mixed-shape events and ask which column type avoids load failure. The answer is VARIANT.
When to use views (standard, secure, materialized) and external tables
Key points
Snowflake's view family includes four distinct objects with different cost and isolation properties.
- A standard view is a stored SELECT statement, expanded at query time, with no separate storage cost and no precomputation.
- A secure view is a standard view marked with
IS_SECURE = TRUE, which prevents the query optimiser from exposing the underlying SQL through Query Profile or error messages and is the correct view type for any object exposed to a share, a Reader Account, or a Listing. - A materialized view is a precomputed result over a single base table, automatically refreshed by a Snowflake-managed serverless service when the base changes, with separate storage and a non-trivial refresh cost.
- An external table is a read-only logical table over files in an external stage, where Snowflake stores metadata but the data remains in cloud storage.
The choice of view type depends on whether the goal is reuse, security boundary, performance, or federation.
Standard views are the right default for simple aliasing, semantic layers, and access role projection where the underlying SELECT is cheap.
Secure views protect IP and prevent predicate-pushdown leakage when the view is exposed across security boundaries.
Materialized views precompute repeated aggregations against a single base table, accept a restricted SQL surface (no joins on most editions, no window functions, no subqueries in the SELECT list), and bill for serverless refresh credits in MATERIALIZED_VIEW_REFRESH_HISTORY.
External tables let Snowflake query Parquet, ORC, JSON, CSV, Avro, or Iceberg files in S3, Azure Blob, or GCS without ingesting them, which is the right pattern for cold archival data or for an open-table-format lake that other engines also read.
-- A standard view for semantic aliasing inside the presentation layer.
CREATE OR REPLACE VIEW finance.presentation.v_invoice_monthly AS
SELECT
DATE_TRUNC('month', invoice_date) AS invoice_month,
region_sk,
SUM(invoice_amount_usd) AS revenue_usd,
COUNT(DISTINCT customer_sk) AS distinct_customers
FROM finance.presentation.fct_invoice
GROUP BY 1, 2;
-- A secure view exposed via a share.
CREATE OR REPLACE SECURE VIEW finance.share.s_invoice_anonymised AS
SELECT
invoice_month,
region_sk,
revenue_usd
FROM finance.presentation.v_invoice_monthly;
-- A materialized view for a repeated heavy aggregation.
CREATE OR REPLACE MATERIALIZED VIEW finance.presentation.mv_invoice_daily AS
SELECT
invoice_date_sk,
region_sk,
SUM(invoice_amount_usd) AS revenue_usd,
COUNT(*) AS invoice_count
FROM finance.presentation.fct_invoice
GROUP BY 1, 2;
-- An external table over Parquet files for archival data.
CREATE OR REPLACE EXTERNAL TABLE finance.cold.ext_invoice_archive (
invoice_date DATE AS (VALUE:invoice_date::DATE),
region STRING AS (VALUE:region::STRING),
amount_usd NUMBER(18,2) AS (VALUE:amount_usd::NUMBER(18,2))
)
LOCATION = @finance.cold.archive_stage/invoice/
FILE_FORMAT = (TYPE = PARQUET)
PATTERN = '.*[.]parquet';
⚠️ Anti-Pattern: Wrapping every business calculation in a materialized view because "materialized views are faster". They are faster only when the underlying query is expensive enough that recomputation cost dominates the dashboard latency, and only when the base table churn rate is low enough that serverless refresh credits do not eat the savings. Putting an MV over a low-traffic monthly aggregate burns refresh credits for no gain. Standard views with proper clustering on the base table are usually the right answer.
💡 Exam Trap: Confusing materialized views with dynamic tables. Materialized views support a restricted SQL surface (single base table, no joins on most editions, no window functions) and refresh automatically on change. Dynamic tables accept arbitrary SQL including joins, are scheduled by a
TARGET_LAG, and bill the warehouse named on the dynamic table rather than serverless credits. The exam routinely uses a stem where joins are required and tests whether you reach for MV (wrong) or dynamic table (right).
📊 Limit: External tables require a refreshed file-list metadata snapshot to prune. By default the metadata refresh is event-driven via the cloud provider's notification channel; if that channel is broken, queries scan stale metadata. Architects monitor
EXTERNAL_TABLE_FILESandAUTO_REFRESHstatus; a failure here surfaces as queries that return old data without error.
Decision Anchor: Choose a standard view for cheap semantic aliasing. Choose a secure view when crossing a security or sharing boundary.
Choose a materialized view when a single-base aggregate runs many times against a low-churn fact and the SQL surface fits the restriction. Choose a dynamic table when the same goal requires joins, complex SQL, or scheduled refresh against multiple sources.
Choose an external table when the data lives in open-format files and ingest is not justified. ---
