When is defining a clustering key the wrong choice in Snowflake, and what are the downsides?

Quick Overview

Asks when a Snowflake clustering key costs more than it saves and what the downsides of automatic clustering are. It tests understanding of micro-partition pruning, key cardinality, how DML patterns drive reclustering cost, and the alternatives a data engineer should consider first.

When is defining a clustering key the wrong choice in Snowflake, and what are the downsides?

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: medium

Interview Round: Other

When is defining a clustering key the wrong choice in Snowflake, and what are the downsides? ```hint Follow the bill Automatic clustering runs in the background and is billed separately from your warehouses. Compare that ongoing cost with how much scanning it saves. ``` ```hint Look at the key and the queries Ask how many micro-partitions a typical filter on the key could skip, and what happens when the key has two distinct values or one per row. ``` ### What a Strong Answer Covers - How automatic clustering is paid for, in compute credits and in storage - The table traits that make clustering a poor fit, such as size and how DML touches the data - How key cardinality and the actual query filters decide whether pruning improves - How to measure clustering quality and cost before committing to a key - Alternatives to a clustering key and when each fits ### Follow-up Questions - How would you read the output of `SYSTEM$CLUSTERING_INFORMATION` to decide whether a key is helping? - A large table is filtered by a nanosecond timestamp column. How would you define a usable clustering key for it? - When is the search optimization service a better fit than a clustering key? - How would you estimate whether the credits spent on reclustering pay for themselves?

Overview: Asks when a Snowflake clustering key costs more than it saves and what the downsides of automatic clustering are. It tests understanding of micro-partition pruning, key cardinality, how DML patterns drive reclustering cost, and the alternatives a data engineer should consider first.

General logo
General
Nov 25, 2026
mediumData ScientistOtherData Manipulation (SQL/Python)
0
0

When is defining a clustering key the wrong choice in Snowflake, and what are the downsides?

What a Strong Answer Covers Guidance

  • How automatic clustering is paid for, in compute credits and in storage
  • The table traits that make clustering a poor fit, such as size and how DML touches the data
  • How key cardinality and the actual query filters decide whether pruning improves
  • How to measure clustering quality and cost before committing to a key
  • Alternatives to a clustering key and when each fits

Follow-up Questions Guidance

  • How would you read the output of SYSTEM$CLUSTERING_INFORMATION to decide whether a key is helping?
  • A large table is filtered by a nanosecond timestamp column. How would you define a usable clustering key for it?
  • When is the search optimization service a better fit than a clustering key?
  • How would you estimate whether the credits spent on reclustering pay for themselves?