Skip to main content
InterviewHubPRO
Section Overview
Q49

Question 49 of 50

Part 3: Advanced Optimization, Scale & Cortex AI (25 - 35)

98%
Snowflake Data Cloud (50 Qs)•Part 3: Advanced Optimization, Scale & Cortex AI (25 - 35)

Query Profiler and Bottleneck Diagnosis: Spilling to local/remote storage and pruning efficiency.

senior LevelMost AskedPerformance

In Simple Words: Using the Snowflake UI Query Profiler to fix slow queries:

  1. Spilling to Local Storage: Occurs when intermediate query data exceeds Virtual Warehouse RAM. Indicates warehouse size is too small; scale up from M to L.
  2. Spilling to Remote Storage: Occurs when data exceeds both RAM and local SSD, spilling to slow S3/GCS. Drastic performance collapse. Immediate indicator to resize warehouse or rewrite query.
  3. Partitions Scanned vs Total: If a query scans 10,000 out of 10,000 partitions, clustering is broken or query lacks partition pruning filters.