Bird
0
0

What happens internally when you pin a package version in packages.yml and run dbt deps?

hard📝 Conceptual Q10 of 15
dbt - Packages and Reusability
What happens internally when you pin a package version in packages.yml and run dbt deps?
Adbt compiles all models using the pinned package version without downloading
Bdbt downloads the specified package version and updates the <code>dbt_modules</code> folder
Cdbt ignores the pin and uses the latest package version installed globally
Ddbt deletes all previous packages and installs only the pinned version
Step-by-Step Solution
Solution:
  1. Step 1: Understand dbt deps function

    This command downloads packages specified in packages.yml respecting pinned versions.
  2. Step 2: Know where packages are stored

    Downloaded packages are placed in the dbt_modules folder inside the project.
  3. Final Answer:

    dbt downloads the specified package version and updates the dbt_modules folder -> Option B
  4. Quick Check:

    dbt deps downloads pinned packages to dbt_modules [OK]
Quick Trick: dbt deps updates dbt_modules with pinned packages [OK]
Common Mistakes:
MISTAKES
  • Thinking dbt compiles without downloading
  • Assuming global packages override pins
  • Believing dbt deletes all packages every time

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More dbt Quizzes