Skip to main content

SARAVANA KUMAR · TECHNICAL KNOWLEDGE · experienced

Snowflake: experienced interview questions

20 concise answers with illustrative scenarios and follow-up questions. Use them to explain reasoning, not memorize scripts.

1. How do you troubleshoot a slow query?

Inspect its profile, scanned data, joins, spills and queueing before changing warehouse size.

Illustrative scenario

A report slows after a new join.

Explain your reasoning

Apply the answer to this scenario: Is the problem execution time or waiting time? State your assumptions, the expected outcome and how you would check it before changing a real system.

Common follow-up

Is the problem execution time or waiting time?

Related worked example and code · Official Snowflake documentation

2. How do you reduce warehouse cost?

Measure idle and active usage, tune suspension and workload patterns, then test sizing against elapsed time and credits.

Illustrative scenario

A warehouse stays active between infrequent queries.

Explain your reasoning

Apply the answer to this scenario: Could frequent restarts reduce cache benefits? State your assumptions, the expected outcome and how you would check it before changing a real system.

Common follow-up

Could frequent restarts reduce cache benefits?

Related worked example and code · Official Snowflake documentation

3. How do you handle ambiguous MERGE input?

Choose a deterministic source version per key and reject unresolved ties before writing.

Illustrative scenario

Two price updates match one target product.

Explain your reasoning

Apply the answer to this scenario: Why is disabling the error a poor default? State your assumptions, the expected outcome and how you would check it before changing a real system.

Common follow-up

Why is disabling the error a poor default?

Related worked example and code · Official Snowflake documentation

4. Why can a merge insert duplicates?

Unmatched duplicate source rows may each be eligible for insertion; deduplication and key checks remain necessary.

Illustrative scenario

An empty target receives a repeated source key.

Explain your reasoning

Apply the answer to this scenario: How would you test this before production? State your assumptions, the expected outcome and how you would check it before changing a real system.

Common follow-up

How would you test this before production?

Related worked example and code · Official Snowflake documentation

5. How do you consume a stream safely?

Use transactional processing with correct change semantics and understand when its offset advances.

Illustrative scenario

A downstream update consumes a stream and writes a target.

Explain your reasoning

Apply the answer to this scenario: What happens if the transaction rolls back? State your assumptions, the expected outcome and how you would check it before changing a real system.

Common follow-up

What happens if the transaction rolls back?

Related worked example and code · Official Snowflake documentation

6. What makes a stream stale?

Required change history can become unavailable when the stream is not consumed within relevant retention limits.

Illustrative scenario

A consumer is paused too long.

Explain your reasoning

Apply the answer to this scenario: How will you reinitialize and reconcile? State your assumptions, the expected outcome and how you would check it before changing a real system.

Common follow-up

How will you reinitialize and reconcile?

Related worked example and code · Official Snowflake documentation

7. How do you diagnose a failed task?

Inspect task history, error messages, dependencies, execution privileges and compute availability.

Illustrative scenario

A scheduled transformation stops after a role change.

Explain your reasoning

Apply the answer to this scenario: How do you rerun without duplicate effects? State your assumptions, the expected outcome and how you would check it before changing a real system.

Common follow-up

How do you rerun without duplicate effects?

Related worked example and code · Official Snowflake documentation

8. How do you investigate Snowpipe gaps?

Check stage contents, file eligibility, event delivery, pipe status and load history.

Illustrative scenario

A file exists but no target rows appear.

Explain your reasoning

Apply the answer to this scenario: Was the file already considered loaded? State your assumptions, the expected outcome and how you would check it before changing a real system.

Common follow-up

Was the file already considered loaded?

Related worked example and code · Official Snowflake documentation

9. How do you manage RBAC?

Design roles by responsibility, grant minimal object access and review inheritance and ownership.

Illustrative scenario

A service can load raw data but must not read sensitive curated tables.

Explain your reasoning

Apply the answer to this scenario: How are future objects governed? State your assumptions, the expected outcome and how you would check it before changing a real system.

Common follow-up

How are future objects governed?

Related worked example and code · Official Snowflake documentation

10. How do you evaluate clustering?

Compare representative pruning and query profiles with maintenance cost before and after a controlled change.

Illustrative scenario

A large table has repeated selective range queries.

Explain your reasoning

Apply the answer to this scenario: What happens when query patterns change? State your assumptions, the expected outcome and how you would check it before changing a real system.

Common follow-up

What happens when query patterns change?

Related worked example and code · Official Snowflake documentation

11. What is a resource monitor limitation?

Its scope is not every possible account charge. Understand the resources it controls before treating it as a total spending cap.

Illustrative scenario

A team monitors user-managed warehouse credits.

Explain your reasoning

Apply the answer to this scenario: Which serverless costs need separate monitoring? State your assumptions, the expected outcome and how you would check it before changing a real system.

Common follow-up

Which serverless costs need separate monitoring?

Related worked example and code · Official Snowflake documentation

12. How do you reason about caches?

Distinguish persisted query results from warehouse data caching and test without assuming every run is a cold run.

Illustrative scenario

A repeated benchmark appears dramatically faster.

Explain your reasoning

Apply the answer to this scenario: Which changed conditions prevent result reuse? State your assumptions, the expected outcome and how you would check it before changing a real system.

Common follow-up

Which changed conditions prevent result reuse?

Related worked example and code · Official Snowflake documentation

13. How do you design SCD Type 2?

Use explicit effective boundaries, a stable business key and tests for one current version and non-overlapping history.

Illustrative scenario

A customer category changes.

Explain your reasoning

Apply the answer to this scenario: How are late historical corrections handled? State your assumptions, the expected outcome and how you would check it before changing a real system.

Common follow-up

How are late historical corrections handled?

Related worked example and code · Official Snowflake documentation

14. How do you control dynamic table freshness?

Inspect refresh history, dependency chains, target lag and refresh cost rather than assuming scheduled intent equals actual freshness.

Illustrative scenario

A downstream table lags behind its source.

Explain your reasoning

Apply the answer to this scenario: Which upstream refresh first fell behind? State your assumptions, the expected outcome and how you would check it before changing a real system.

Common follow-up

Which upstream refresh first fell behind?

Related worked example and code · Official Snowflake documentation

15. How do you handle semi-structured drift?

Validate required paths and types, quarantine invalid records and version important transformations.

Illustrative scenario

A JSON amount changes from number to nested object.

Explain your reasoning

Apply the answer to this scenario: How will dashboards detect the change? State your assumptions, the expected outcome and how you would check it before changing a real system.

Common follow-up

How will dashboards detect the change?

Related worked example and code · Official Snowflake documentation

16. How do you choose warehouse size?

Benchmark representative workloads and concurrency, balancing completion time, spill behaviour and cost.

Illustrative scenario

A batch misses its deadline.

Explain your reasoning

Apply the answer to this scenario: Would query optimization help more than extra compute? State your assumptions, the expected outcome and how you would check it before changing a real system.

Common follow-up

Would query optimization help more than extra compute?

Related worked example and code · Official Snowflake documentation

17. When use multi-cluster warehouses?

They address eligible concurrency needs rather than automatically speeding one individual query.

Illustrative scenario

Many analysts submit queries at the same time.

Explain your reasoning

Apply the answer to this scenario: Is queueing actually the bottleneck? State your assumptions, the expected outcome and how you would check it before changing a real system.

Common follow-up

Is queueing actually the bottleneck?

Related worked example and code · Official Snowflake documentation

18. How do you test recovery?

Exercise documented recovery paths with disposable data, including retention and permissions.

Illustrative scenario

An accidental delete must be recovered.

Explain your reasoning

Apply the answer to this scenario: How will you avoid overwriting valid later changes? State your assumptions, the expected outcome and how you would check it before changing a real system.

Common follow-up

How will you avoid overwriting valid later changes?

Related worked example and code · Official Snowflake documentation

19. How do you secure external data access?

Use supported integrations and scoped cloud permissions instead of embedding long-lived secrets in scripts.

Illustrative scenario

A loader reads one cloud-storage prefix.

Explain your reasoning

Apply the answer to this scenario: How are changes to the external trust policy reviewed? State your assumptions, the expected outcome and how you would check it before changing a real system.

Common follow-up

How are changes to the external trust policy reviewed?

Related worked example and code · Official Snowflake documentation

20. How do you validate a migration?

Compare schemas, counts, business aggregates, edge-case semantics and representative query behaviour.

Illustrative scenario

An Oracle reporting workload moves to Snowflake.

Explain your reasoning

Apply the answer to this scenario: Which null, date and numeric differences need explicit tests? State your assumptions, the expected outcome and how you would check it before changing a real system.

Common follow-up

Which null, date and numeric differences need explicit tests?

Related worked example and code · Official Snowflake documentation