FREE · 20 QUESTIONS WITH ANSWERS

Snowflake interview questions

The Snowflake questions interviewers ask most, with short answers you can explain in your own words. Tap a question to see the answer.

01Explain Snowflake's architecture.

Three layers: storage (compressed columnar micro-partitions), compute (virtual warehouses) and cloud services (metadata, security, optimisation). Storage and compute scale separately.

02What is a virtual warehouse?

A compute cluster that runs queries. It bills per second while running, with a 60 second minimum each time it starts.

03What are micro-partitions?

Small immutable storage units (about 50 to 500 MB uncompressed). Snowflake keeps min and max values per column, so it can skip partitions that do not match a filter.

04What is a stage?

A location for files before loading: internal (inside Snowflake) or external (Azure Blob, S3, GCS).

05How do you load data?

COPY INTO from a stage for batch loads, Snowpipe for continuous auto-ingest.

COPY INTO raw.orders
FROM @my_stage/orders/
FILE_FORMAT = (TYPE = CSV SKIP_HEADER = 1);
06What is Snowpipe?

A serverless service that loads new files automatically when they arrive, usually triggered by cloud storage events.

07How do you query JSON?

Load it into a VARIANT column and use path notation and FLATTEN for arrays.

SELECT v:customer.name::string, f.value:sku::string
FROM raw_json, LATERAL FLATTEN(input => v:items) f;
08What is Time Travel?

Querying or restoring data as it was in the past, up to the retention period. UNDROP brings back dropped objects.

09Time Travel vs Fail-safe?

Time Travel is for you to use. Fail-safe is a further 7 day period only Snowflake support can recover from.

10What is zero-copy cloning?

Creating a copy of a table, schema or database instantly without copying data. Only changes take new storage.

11What are streams and tasks?

A stream tracks changes (CDC) on a table. A task runs SQL on a schedule. Together they build incremental pipelines.

12What are dynamic tables?

Tables defined by a query that Snowflake keeps refreshed to a target lag, a simpler alternative to streams and tasks for many pipelines.

13Transient vs permanent tables?

Transient tables have no Fail-safe and shorter Time Travel, so they cost less. Good for staging data you can rebuild.

14What is QUALIFY?

A filter on window function results, so you do not need a subquery.

SELECT * FROM orders
QUALIFY ROW_NUMBER() OVER (PARTITION BY customer_id ORDER BY order_date DESC) = 1;
15How does Snowflake caching work?

Result cache (24 hours, identical query, unchanged data, no compute), local disk cache on the warehouse, and metadata cache.

16What is a clustering key?

Columns Snowflake uses to organise micro-partitions on very large tables, so filters prune better. Automatic clustering has a cost.

17How do you control cost?

Auto-suspend around 60 seconds, right-size warehouses, resource monitors, tune expensive queries and use transient tables for staging.

18How does access control work?

Role-based: privileges are granted to roles, roles to users, roles can inherit other roles.

19What is a masking policy?

A rule that shows or hides column values depending on the user's role, for example showing only the last 4 digits of a phone number.

20What is Snowpark?

An API to write transformations in Python, Java or Scala that run inside Snowflake, without moving data out.

More Snowflake interview questions

Free PDF downloads and premium packs with scenario questions and detailed model answers.

Coming soon

The premium Snowflake interview pack is being prepared.

🎤 Practise with a real mock interview

60 minutes live with Hikmat Ullah, plus written feedback. 30 USD, or 3 for 80 USD.

Book a mock interview