Bird
0
0

In dbt, which configuration parameter is used to define clustering keys for a Snowflake model?

easy🧠 Conceptual Q2 of 15
dbt - Performance Optimization
In dbt, which configuration parameter is used to define clustering keys for a Snowflake model?
Asort_keys
Bpartition_by
Ccluster_by
Dunique_key
Step-by-Step Solution
Solution:
  1. Step 1: Identify clustering parameter

    In Snowflake, clustering keys are specified using the cluster_by config in dbt.
  2. Step 2: Differentiate from other configs

    partition_by is used in BigQuery, sort_keys is for Redshift, and unique_key is for incremental models.
  3. Final Answer:

    cluster_by -> Option C
  4. Quick Check:

    Clustering keys in Snowflake use cluster_by [OK]
Quick Trick: Use cluster_by for Snowflake clustering keys [OK]
Common Mistakes:
MISTAKES
  • Confusing partition_by with cluster_by
  • Using sort_keys in Snowflake models
  • Setting unique_key as clustering key

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More dbt Quizzes