Your project story (asked in every interview)
βTell me about a Snowflake projectβ comes first. Using this course, you can honestly tell this story:
| Part | What to say |
|---|---|
| Problem | An online shop's order files and app events needed one place for reliable, fast reporting. |
| Ingestion | Daily CSVs via stages and COPY INTO with validation and error handling; new files through Snowpipe; JSON events into VARIANT. |
| Transformation | Silver and gold layers as dynamic tables (QUALIFY de-duplication, incremental refresh); a stream + task MERGE for a summary table. |
| Governance | Functional roles, read-only analyst access, email masking, city-level row access policies. |
| Reliability | Load history for idempotent reloads, Time Travel recovery from a bad UPDATE, zero-copy clones for testing. |
| Cost | X-Small warehouse with 60 s auto-suspend and a resource monitor; under one credit for the whole build. |
Questions by topic
Architecture: lesson 2.
π― Architecture and basics
Try to answer out loud first, then tap to check.
Q1What is Snowflake?Fresher+
Q2Explain Snowflake's three-layer architecture.Fresher+
Q3What is a virtual warehouse?Fresher+
Q4What are micro-partitions?Fresher+
Q5What is pruning and how do you check it?1β3 yrs+
Q6Describe the three caches.1β3 yrs+
Q7Scale up vs scale out?1β3 yrs+
Q8Why is Snowflake called 'hybrid' shared-disk / shared-nothing?3+ yrs+
Setup and objects: lesson 3.
π― Objects, tables and roles
Try to answer out loud first, then tap to check.
Q1What is the object hierarchy?Fresher+
Q2Permanent vs transient vs temporary tables?Fresher+
Q3Does Snowflake enforce primary keys?Fresher+
Q4What are the system-defined roles?1β3 yrs+
Q5What's the difference between a view, a secure view and a materialized view?1β3 yrs+
Loading: lesson 4, JSON: lesson 5.
π― Loading data and JSON
Try to answer out loud first, then tap to check.
Q1How do you load files into Snowflake?Fresher+
Q2Internal vs external stage?Fresher+
Q3How does COPY avoid loading a file twice?1β3 yrs+
Q4What are the ON_ERROR options?1β3 yrs+
Q5How do you query nested JSON arrays?1β3 yrs+
Q6What is schema-on-read?1β3 yrs+
Q7Snowpipe vs scheduled COPY vs Snowpipe Streaming?3+ yrs+
Time Travel and cloning: lesson 6.
π― Time Travel, Fail-safe and cloning
Try to answer out loud first, then tap to check.
Q1What is Time Travel?Fresher+
Q2Time Travel vs Fail-safe?Fresher+
Q3What is zero-copy cloning?1β3 yrs+
Q4Walk through recovering from an accidental UPDATE without WHERE.3+ yrs+
Pipelines: lesson 7, lesson 8.
π― Snowpipe, streams, tasks and dynamic tables
Try to answer out loud first, then tap to check.
Q1What is a stream?Fresher+
Q2What is a task?Fresher+
Q3How does an UPDATE appear in a stream?1β3 yrs+
Q4What does WHEN SYSTEM$STREAM_HAS_DATA do in a task?1β3 yrs+
Q5What is a dynamic table?1β3 yrs+
Q6When do you choose streams + tasks over dynamic tables?3+ yrs+
Q7How do you make a pipeline exactly-once?3+ yrs+
Security: lesson 9.
π― Security and governance
Try to answer out loud first, then tap to check.
Q1What do you need to query a table?Fresher+
Q2Masking policy vs row access policy?1β3 yrs+
Q3What are future grants?1β3 yrs+
Q4Why might masking not work for some users?3+ yrs+
Q5How should pipelines authenticate?3+ yrs+
Performance and cost: lesson 10. Snowpark: lesson 11.
π― Performance, cost and Snowpark
Try to answer out loud first, then tap to check.
Q1How do you reduce Snowflake costs?Fresher+
Q2When do you add a clustering key?1β3 yrs+
Q3What is spilling?1β3 yrs+
Q4What is a resource monitor?1β3 yrs+
Q5What is Snowpark?1β3 yrs+
Q6A warehouse bill doubled this month. How do you investigate?3+ yrs+
SQL problems (tested on real Snowflake)
These are the problems interviewers love, run on ShopKart's tables from this course. Try each before reading the solution.
P1. Find duplicates
-- P1. Find duplicate order IDs in the raw table
SELECT order_id, COUNT(*) AS copies
FROM orders
GROUP BY order_id
HAVING COUNT(*) > 1;| ORDER_ID | COPIES |
|---|---|
| 106041 | 2 |
That's the duplicate the app sent in lesson 8. Remember: Snowflake doesn't enforce primary keys, so this check belongs in every pipeline.
P2. Latest row per key
-- P2. Each customer's most recent order (one row per customer)
SELECT customer_id, order_id, order_ts
FROM orders
QUALIFY ROW_NUMBER() OVER (PARTITION BY customer_id ORDER BY order_ts DESC) = 1
ORDER BY customer_id
LIMIT 3;| CUSTOMER_ID | ORDER_ID | ORDER_TS |
|---|---|---|
| 1 | 105120 | 2026-11-28 07:41:40 |
| 2 | 105044 | 2026-11-28 09:34:50 |
| 3 | 105171 | 2026-11-29 19:34:32 |
P3. Top N per group
-- P3. Top 2 products by delivered revenue in each city
SELECT c.city, p.name, SUM(o.quantity * o.unit_price) AS revenue
FROM orders o
JOIN customers c ON c.customer_id = o.customer_id
JOIN products p ON p.product_id = o.product_id
WHERE o.status = 'DELIVERED'
GROUP BY c.city, p.name
QUALIFY RANK() OVER (PARTITION BY c.city ORDER BY revenue DESC) <= 2
ORDER BY c.city, revenue DESC;| CITY | NAME | REVENUE |
|---|---|---|
| Bengaluru | Smartwatch | 529894.00 |
| Bengaluru | Silk Saree | 307912.00 |
| Delhi | Smartwatch | 529894.00 |
| Delhi | Silk Saree | 307912.00 |
| Kolkata | Smartwatch | 474905.00 |
| Kolkata | Silk Saree | 227435.00 |
| Mumbai | Smartwatch | 419916.00 |
| Mumbai | Silk Saree | 342902.00 |
| Pune | Smartwatch | 329934.00 |
| Pune | Silk Saree | 286918.00 |
Yes, Bengaluru and Delhi really have the same numbers: both delivered 106 smartwatches and 88 sarees. Say why you chose RANK (ties share a place) over ROW_NUMBER (exactly 2 rows) or DENSE_RANK.
P4. Moving average, and a classic trap
-- P4. 7-day moving average of daily delivered revenue, for Diwali week
WITH daily AS (
SELECT order_ts::DATE AS day, SUM(quantity * unit_price) AS revenue
FROM orders WHERE status = 'DELIVERED'
GROUP BY 1
)
SELECT day, revenue,
ROUND(AVG(revenue) OVER (ORDER BY day ROWS BETWEEN 6 PRECEDING AND CURRENT ROW)) AS avg_7d
FROM daily
WHERE day BETWEEN '2026-10-18' AND '2026-10-24' -- β οΈ filters BEFORE the window is computed
ORDER BY day;| DAY | REVENUE | AVG_7D |
|---|---|---|
| 2026-10-18 | 165515.00 | 165515 |
| 2026-10-19 | 172199.00 | 168857 |
| 2026-10-20 | 298942.00 | 212219 |
| 2026-10-21 | 272134.00 | 227198 |
| 2026-10-22 | 211494.00 | 224057 |
| 2026-10-23 | 149215.00 | 211583 |
| 2026-10-24 | 107448.00 | 196707 |
Look at the first row: the β7-day averageβ equals that day's revenue. WHERE runs before window functions, so the window only saw the 7 filtered days. Only the last row is right.
-- Fixed: compute the window over all days, THEN keep the week (QUALIFY runs after windows)
WITH daily AS (
SELECT order_ts::DATE AS day, SUM(quantity * unit_price) AS revenue
FROM orders WHERE status = 'DELIVERED'
GROUP BY 1
)
SELECT day, revenue,
ROUND(AVG(revenue) OVER (ORDER BY day ROWS BETWEEN 6 PRECEDING AND CURRENT ROW)) AS avg_7d
FROM daily
QUALIFY day BETWEEN '2026-10-18' AND '2026-10-24'
ORDER BY day;| DAY | REVENUE | AVG_7D |
|---|---|---|
| 2026-10-18 | 165515.00 | 141455 |
| 2026-10-19 | 172199.00 | 146222 |
| 2026-10-20 | 298942.00 | 172453 |
| 2026-10-21 | 272134.00 | 190554 |
| 2026-10-22 | 211494.00 | 200706 |
| 2026-10-23 | 149215.00 | 199477 |
| 2026-10-24 | 107448.00 | 196707 |
P5. Month-over-month growth, and another trap
-- P5. Month-over-month growth in delivered revenue
WITH monthly AS (
SELECT DATE_TRUNC('month', order_ts)::DATE AS month, SUM(quantity * unit_price) AS revenue
FROM orders WHERE status = 'DELIVERED'
GROUP BY 1
)
SELECT month, revenue,
LAG(revenue) OVER (ORDER BY month) AS prev_month,
ROUND((revenue / LAG(revenue) OVER (ORDER BY month) - 1) * 100, 1) AS growth_pct
FROM monthly
ORDER BY month;| MONTH | REVENUE | PREV_MONTH | GROWTH_PCT |
|---|---|---|---|
| 2026-10-01 | 4939831.00 | NULL | NULL |
| 2026-11-01 | 4636892.00 | 4939831.00 | -6.1 |
| 2026-12-01 | 33783.00 | 4636892.00 | -99.3 |
βRevenue fell 99.3% in December!β No: December has only 2 days of data so far. Always compare complete periods:
-- Fixed: compare complete months only
WITH monthly AS (
SELECT DATE_TRUNC('month', order_ts)::DATE AS month, SUM(quantity * unit_price) AS revenue
FROM orders
WHERE status = 'DELIVERED' AND order_ts < '2026-12-01' -- December has only 2 days so far
GROUP BY 1
)
SELECT month, revenue,
LAG(revenue) OVER (ORDER BY month) AS prev_month,
ROUND((revenue / LAG(revenue) OVER (ORDER BY month) - 1) * 100, 1) AS growth_pct
FROM monthly
ORDER BY month;| MONTH | REVENUE | PREV_MONTH | GROWTH_PCT |
|---|---|---|---|
| 2026-10-01 | 4939831.00 | NULL | NULL |
| 2026-11-01 | 4636892.00 | 4939831.00 | -6.1 |
November was 6.1% below October, which had the Diwali sale. Mentioning the partial-period problem without being asked is exactly what makes interviewers trust you with real data.
Scenario questions (3 years experience)
π― Real-world scenarios
Try to answer out loud first, then tap to check.
Q1Files land in S3 all day; reports must be at most 10 minutes behind. Design it.3+ yrs+
Q2A COPY job loaded half a file's rows yesterday with ON_ERROR = CONTINUE and nobody noticed. What do you change?3+ yrs+
Q3Month-end finance queries make everyone else's dashboards slow.3+ yrs+
Q4You need a full copy of production for testing a risky migration.3+ yrs+
Q5A stream-based task shows 'stream is stale'. What happened and how do you fix it?3+ yrs+
Q6Personal data must be hidden from analysts but available to the support team, across many tables.3+ yrs+
One-page cheat sheet
| Topic | Remember |
|---|---|
| Architecture | Storage (micro-partitions) Β· warehouses Β· cloud services |
| Warehouses | XS 1 credit/h, doubling; per-second, 60 s minimum; auto-suspend/resume; multi-cluster for concurrency |
| Caches | Result 24 h Β· warehouse SSD Β· metadata |
| Loading | Stage β COPY INTO; 64-day load metadata; ON_ERROR; Snowpipe 14 days |
| JSON | VARIANT Β· v:a.b::TYPE Β· LATERAL FLATTEN Β· case-sensitive keys |
| Recovery | AT/BEFORE Β· UNDROP Β· Time Travel β€ 90 d (Ent.) Β· Fail-safe 7 d |
| Clones | Zero-copy; no load history; internal stages not cloned |
| Pipelines | Streams (offset, ISUPDATE) Β· tasks (suspended at create) Β· dynamic tables (TARGET_LAG, DOWNSTREAM) |
| Security | Privileges β roles β users Β· masking Β· row access Β· secondary roles |
| Performance | Pruning Β· clustering keys for big tables Β· Query Profile Β· spilling |
| Cost | Auto-suspend Β· right-size Β· separate Β· resource monitors Β· budgets |
Key takeaways
- βInterviewers want trade-offs and real situations, not just definitions.
- βEvery answer here maps to something you saw running in this course.
- βPractise the five SQL patterns until you can write them without looking.
- βSpotting traps (partial periods, filters before windows) sets you apart.
Frequently asked questions
How should I prepare for a Snowflake interview?
Be able to explain the architecture (storage, warehouses, cloud services, micro-partitions), loading (stages, COPY, Snowpipe), Time Travel and cloning, streams and tasks or dynamic tables, RBAC and masking, and cost control. Practise SQL with window functions and QUALIFY, and prepare one project story you can explain end to end.
What do interviewers expect at 3 years' experience?
Trade-offs and real situations, not definitions: why you chose Snowpipe over scheduled COPY, how you handled duplicates and late data, how you cut a warehouse bill, how you recovered from a bad load, how you secured PII. Numbers help: 'cut credits 40% by splitting the BI warehouse and setting auto-suspend'.
Is SQL coding asked in Snowflake interviews?
Almost always. Common tasks: remove duplicates keeping the latest row, top N per group, running totals and moving averages, month-over-month growth, flattening JSON, and MERGE for upserts. The problems on this page were all run on real Snowflake.
Which Snowflake certification should I take?
SnowPro Core is the usual first step; then SnowPro Advanced: Data Engineer. This course covers most Core topics; add practice exams and the official study guide.
π§ Quick check: Snowflake interview
1. Fastest way to keep only the latest row per order_id in Snowflake?
2. A daily load re-ran after a crash. Why are there no duplicates?
3. Your moving average looks wrong for the first days of the range. Likely cause?
4. Analysts must never see raw phone numbers. Best tool?
Checking your accessβ¦