Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to define a model description in YAML.
dbt
models:
- name: customers
description: [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Not using quotes around the description string.
Using a variable name instead of a description.
✗ Incorrect
The description field should be a string describing the model. Option B provides a clear description in quotes.
2fill in blank
mediumComplete the code to add a column description in the model YAML.
dbt
models:
- name: orders
columns:
- name: order_id
description: [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using the column name as the description.
Leaving the description empty.
✗ Incorrect
The description should explain the column's purpose clearly. Option C is a proper description.
3fill in blank
hardFix the error in the YAML snippet by completing the description field correctly.
dbt
models:
- name: products
description: [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using unmatched quotes causing YAML parsing errors.
Not quoting strings with spaces.
✗ Incorrect
YAML strings should be enclosed in matching quotes. Option D correctly uses matching double quotes.
4fill in blank
hardFill both blanks to add a model and a column description in YAML.
dbt
models: - name: [1] columns: - name: [2] description: "Customer's email address"
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing model and column names incorrectly.
Using unrelated names that don't match the description.
✗ Incorrect
The model name is 'customers' and the column name is 'email' matching the description.
5fill in blank
hardFill all three blanks to document a model with two columns and their descriptions in YAML.
dbt
models: - name: [1] description: "Sales data model" columns: - name: [2] description: "Unique sale identifier" - name: [3] description: "Date of the sale"
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using column names that don't match the descriptions.
Confusing customer_id with sale_id or sale_date.
✗ Incorrect
The model is 'sales' with columns 'sale_id' and 'sale_date' matching the descriptions.