Bird
0
0

Which of the following is the correct syntax to add clustering in a dbt model's config block?

easy📝 Syntax Q12 of 15
dbt - Performance Optimization
Which of the following is the correct syntax to add clustering in a dbt model's config block?
Acluster_by = ['column_name']
Bclustering = ['column_name']
Ccluster = ['column_name']
Dclusters = ['column_name']
Step-by-Step Solution
Solution:
  1. Step 1: Recall dbt clustering syntax

    In dbt, clustering is set using cluster_by = ['column_name'] inside the model config.
  2. Step 2: Check other options

    Options like clustering, cluster, or clusters are incorrect keywords.
  3. Final Answer:

    cluster_by = ['column_name'] -> Option A
  4. Quick Check:

    Correct keyword is cluster_by [OK]
Quick Trick: Use 'cluster_by' keyword exactly in config [OK]
Common Mistakes:
MISTAKES
  • Using clustering instead of cluster_by
  • Misspelling cluster_by keyword
  • Using plural clusters instead of cluster_by

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More dbt Quizzes