Interview practice question
Finding the most expensive queries
Data Engineering · Snowflake · Beginner
Your manager asks which queries cost the most this week. How do you find them?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Use SNOWFLAKE.ACCOUNT_USAGE.QUERY_ATTRIBUTION_HISTORY for credits per query.
- Or use QUERY_HISTORY execution time and warehouse size as a proxy.
- Group by query hash or query tag to find repeated expensive patterns.
- Look at the top ones in query profile for fixes.
- Share the list with owners and track improvements.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.