Database / Snowflake Interview Questions
How does Snowflake support ELT patterns and how does it compare to ETL?
ELT (Extract, Load, Transform) loads raw data into Snowflake first, then transforms it inside using SQL or Snowpark. ETL (Extract, Transform, Load) transforms data in an external tool before loading it. Snowflake's MPP engine and separation-of-storage-from-compute make it strongly suited for ELT — the transformation step is where Snowflake's power is applied, not a place to avoid.
ELT advantages with Snowflake: no external transformation infrastructure to manage; transformations can access the full history of raw data at any time (Time Travel); warehouse can be sized specifically for heavy transform runs; SQL models are easy to version-control with dbt; Snowpark handles transformations that require Python or ML libraries.
Typical Snowflake ELT stack:
- Ingestion: Fivetran, Airbyte, or Snowpipe pulls data into a
rawschema. - Staging: dbt or Snowpark cleans and casts the raw data into typed staging tables.
- Transformation: dbt models join, aggregate, and enrich staging data into semantic layer tables.
- Serving: BI tools (Tableau, Looker, Power BI) query the semantic layer through a dedicated reporting warehouse.
-- ELT pattern: transform raw JSON into a typed table inside Snowflake
CREATE OR REPLACE TABLE orders_clean AS
SELECT
raw:order_id::NUMBER AS order_id,
raw:customer_id::VARCHAR AS customer_id,
raw:amount::DECIMAL(10,2) AS amount,
raw:order_ts::TIMESTAMP_NTZ AS order_ts
FROM raw.orders_raw
WHERE raw:status::VARCHAR = 'completed';
Invest now in Acorns!!! 🚀
Join Acorns and get your $5 bonus!
Acorns is a micro-investing app that automatically invests your "spare change" from daily purchases into diversified, expert-built portfolios of ETFs. It is designed for beginners, allowing you to start investing with as little as $5. The service automates saving and investing. Disclosure: I may receive a referral bonus.
Invest now!!! Get Free equity stock (US, UK only)!
Use Robinhood app to invest in stocks. It is safe and secure. Use the Referral link to claim your free stock when you sign up!.
The Robinhood app makes it easy to trade stocks, crypto and more.
Webull! Receive free stock by signing up using the link: Webull signup.
More Related questions...
