COF-C02 · Question #634
How can the Query Profile be used to troubleshoot a problematic query?
The correct answer is A. It will indicate if a virtual warehouse memory is too small to run the query. Snowflake's Query Profile (accessible via the Snowsight UI or QUERY_HISTORY views) shows a detailed execution plan and runtime statistics for each query operator. Critically, it surfaces memory-related warnings - specifically when data spills to local or remote disk - which…
Question
How can the Query Profile be used to troubleshoot a problematic query?
Options
- AIt will indicate if a virtual warehouse memory is too small to run the query
- BIt will indicate if a user lacks the privileges needed to run the query.
- CIt will indicate if a virtual warehouse is in auto-scale mode
- DIt will indicate if the user has enough Snowflake credits to run the query
How the community answered
(39 responses)- A69% (27)
- B10% (4)
- C3% (1)
- D18% (7)
Explanation
Snowflake's Query Profile (accessible via the Snowsight UI or QUERY_HISTORY views) shows a detailed execution plan and runtime statistics for each query operator. Critically, it surfaces memory-related warnings - specifically when data spills to local or remote disk - which directly indicates that the virtual warehouse does not have enough memory to process the query entirely in RAM, and that upgrading the warehouse size may improve performance. It does not surface privilege errors (those produce immediate query failures with error messages), auto-scale mode status, or credit balances - those are separate operational concerns not exposed through the Query Profile.
Topics
Community Discussion
No community discussion yet for this question.