Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to specify the package name in packages.yml.
dbt
- package: [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'models' or 'profiles' instead of a package name.
Forgetting to include the package name after '- package:'.
✗ Incorrect
The package name is specified after '- package:' in packages.yml. 'dbt_utils' is a common package name.
2fill in blank
mediumComplete the code to specify the version of the package in packages.yml.
dbt
version: [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Not using quotes around the version number.
Using non-version words like 'latest' or 'stable'.
✗ Incorrect
The version should be a string with quotes, like "0.8.0" to specify the package version.
3fill in blank
hardFix the error in the packages.yml snippet by completing the missing key.
dbt
- package: dbt_utils [1]: "0.8.0"
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'name' instead of 'version'.
Using 'source' or 'path' which are not valid keys here.
✗ Incorrect
The key to specify the package version is 'version'.
4fill in blank
hardFill both blanks to add a GitHub source and version in packages.yml.
dbt
- package: [1] [2]: "0.7.0"
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using just the package name instead of the GitHub path.
Using 'name' instead of 'version' for the version key.
✗ Incorrect
The package is specified with the GitHub repo path, and the version key is 'version'.
5fill in blank
hardFill all three blanks to add two packages with versions in packages.yml.
dbt
- package: [1] [2]: "0.8.0" - package: [3] version: "0.7.0"
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'name' instead of 'version'.
Using package names without the GitHub path for the first package.
✗ Incorrect
The first package uses the GitHub repo path, the version key is 'version', and the second package is 'dbt-expectations'.