HomeInterview QuestionsSometimes your Snowflake query takes 2 or 9 minute…

Sometimes your Snowflake query takes 2 or 9 minutes, and now it is taking around 45 minutes. How do you troubleshoot this performance issue?

🟡 Medium Debugging Junior level
1Times asked
Jul 2026Last seen
Jul 2026First seen

💡 Model Answer

I would start by examining the query profile in Snowflake. First, check the execution plan for any stages that are taking disproportionate time, such as data scans or joins. Look for missing or outdated clustering keys that could cause full table scans. Verify that the warehouse size is appropriate; if the query is CPU‑bound, scaling up may help. Inspect the number of concurrent queries and see if contention is causing delays. Check for any recent schema changes or data growth that might have increased the amount of data processed. If the query uses a materialized view, ensure it is refreshed. Finally, consider rewriting the query to use more selective predicates, push filters earlier, or replace expensive joins with semi‑joins. Document each change and measure the impact to isolate the root cause.

This answer was generated by AI for study purposes. Use it as a starting point — personalize it with your own experience.

🎤 Get questions like this answered in real-time

Assisting AI listens to your interview, captures questions live, and gives you instant AI-powered answers on a discreet on-screen overlay.

Get Assisting AI — Starts at ₹500