0
0
dbtdata~10 mins

Model naming conventions in dbt - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to name a dbt model file correctly.

dbt
models/[1].sql
Drag options to blanks, or click blank then click option'
Acustomer-orders
BCustomerOrders
Ccustomer_orders
Dcustomer orders
Attempts:
3 left
💡 Hint
Common Mistakes
Using camel case or spaces in model file names.
Using hyphens instead of underscores.
2fill in blank
medium

Complete the code to define a model name in dbt's dbt_project.yml file.

dbt
models:
  my_project:
    [1]:
      materialized: table
Drag options to blanks, or click blank then click option'
Acustomer_orders
BCustomerOrders
Ccustomer-orders
Dcustomer orders
Attempts:
3 left
💡 Hint
Common Mistakes
Using camel case or spaces in model names.
Using hyphens instead of underscores.
3fill in blank
hard

Fix the error in the model name to follow dbt naming conventions.

dbt
select * from [1]
Drag options to blanks, or click blank then click option'
Acustomer orders
BCustomerOrders
Ccustomer-orders
Dcustomer_orders
Attempts:
3 left
💡 Hint
Common Mistakes
Using uppercase letters in model names.
Using spaces or hyphens instead of underscores.
4fill in blank
hard

Fill both blanks to create a dbt model file path and name following conventions.

dbt
models/[1]/[2].sql
Drag options to blanks, or click blank then click option'
Astaging
BStaging
Ccustomer_orders
DCustomerOrders
Attempts:
3 left
💡 Hint
Common Mistakes
Using uppercase letters in folder or file names.
Using camel case instead of underscores.
5fill in blank
hard

Fill all three blanks to define a model name, description, and materialization in dbt_project.yml following conventions.

dbt
models:
  my_project:
    [1]:
      description: "[2]"
      materialized: [3]
Drag options to blanks, or click blank then click option'
Acustomer_orders
BCustomer orders data
Ctable
DCustomerOrders
Attempts:
3 left
💡 Hint
Common Mistakes
Using uppercase or camel case for model names.
Using invalid materialization types.