A data engineer notices that a query's Query Profile shows a large amount of data being written to local disk during execution. Which term describes this condition, and what is the MOST effective first step to resolve it?
- A. Result cache miss; enable the Search Optimization Service on the table
- B. Query spilling; increase the warehouse size to provide more memory✓ Correct
- C. Partition pruning failure; add a clustering key to the table
- D. Join explosion; rewrite the query to use a semi-join instead
Explanation
When intermediate query data exceeds the available memory of the warehouse nodes, Snowflake writes the overflow to local disk (and potentially remote storage). This is called 'spilling.' The most direct remedy is to increase the warehouse size, which provides larger per-node memory and reduces or eliminates the spill. — Option C is wrong: partition pruning relates to micro-partition scanning, not memory overflow. — Option D is wrong: a join explosion causes excessive row multiplication, not disk writes per se, and rewriting with a semi-join addresses row count, not memory limits. — Option A is wrong: the Result Cache stores final query results and has no bearing on in-flight memory pressure during execution.