Challenge - 5 Problems
dbt Package Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ Predict Output
intermediate2:00remaining
What is the effect of this packages.yml content?
Given the following
packages.yml file content, what will happen when you run dbt deps?dbt
packages:
- package: dbt-labs/dbt_utils
version: 0.8.0
- package: fishtown-analytics/codegen
version: 0.3.0Attempts:
2 left
💡 Hint
Think about what
dbt deps does with the packages.yml file.✗ Incorrect
The packages.yml file lists packages and their versions. Running dbt deps downloads and installs these exact versions into your project.
❓ data_output
intermediate1:30remaining
How many packages will be installed?
Given this
packages.yml content, how many packages will be installed after running dbt deps?dbt
packages:
- package: dbt-labs/dbt_utils
version: 0.7.0
- package: fishtown-analytics/codegen
version: 0.3.0
- package: dbt-labs/snowflake
version: 0.2.0Attempts:
2 left
💡 Hint
Count the number of package entries under
packages:.✗ Incorrect
Each entry under packages: represents one package to install. Here, there are three entries, so three packages will be installed.
🔧 Debug
advanced2:00remaining
Identify the error in this packages.yml
What error will occur when running
dbt deps with this packages.yml content?dbt
packages:
- package dbt-labs/dbt_utils
version: 0.8.0Attempts:
2 left
💡 Hint
Check YAML syntax carefully for missing punctuation.
✗ Incorrect
The YAML syntax requires a colon after keys. Missing colon after 'package' causes a syntax error.
🧠 Conceptual
advanced1:30remaining
Why specify package versions in packages.yml?
Why is it important to specify exact package versions in
packages.yml instead of leaving versions out?Attempts:
2 left
💡 Hint
Think about what happens if package versions change over time.
✗ Incorrect
Specifying exact versions locks dependencies so your project builds the same way every time, avoiding unexpected changes.
🚀 Application
expert2:30remaining
Predict the installed package versions
Given this
packages.yml content and that the latest available versions are dbt_utils 0.9.0 and codegen 0.4.0, what versions will be installed after dbt deps?dbt
packages:
- package: dbt-labs/dbt_utils
version: 0.8.0
- package: fishtown-analytics/codegen
version: 0.3.0Attempts:
2 left
💡 Hint
Remember how dbt uses the version specified in packages.yml.
✗ Incorrect
dbt installs the exact versions listed in packages.yml, not the latest available versions.