COF-C02 · Question #595
How does Snowflake utilize clustering information to improve query performance?
The correct answer is A. It prunes unnecessary micro-partitions based on clustering metadata. Snowflake stores metadata (min/max values) for each column in every micro-partition. When a table has a clustering key, related data is co-located in fewer micro-partitions. At query time, Snowflake reads this metadata to skip (prune) micro-partitions that cannot contain rows…
Question
How does Snowflake utilize clustering information to improve query performance?
Options
- AIt prunes unnecessary micro-partitions based on clustering metadata.
- BIt compresses the data within micro-partitions for faster querying.
- CIt automatically allocates additional resources to improve query execution.
- DIt organizes clustering information to speed-up data retrieval from storage
How the community answered
(19 responses)- A89% (17)
- B5% (1)
- C5% (1)
Explanation
Snowflake stores metadata (min/max values) for each column in every micro-partition. When a table has a clustering key, related data is co-located in fewer micro-partitions. At query time, Snowflake reads this metadata to skip (prune) micro-partitions that cannot contain rows matching the WHERE clause filter, drastically reducing the data scanned. Clustering does not compress data (B), auto-allocate resources (C), or change how data is retrieved from storage at a physical level beyond pruning (D).
Topics
Community Discussion
No community discussion yet for this question.