Bird
0
0

If you add a new package to packages.yml but do not run dbt deps, what will happen when you execute dbt run?

medium📝 Predict Output Q5 of 15
dbt - Packages and Reusability
If you add a new package to packages.yml but do not run dbt deps, what will happen when you execute dbt run?
Adbt will prompt to run dbt deps before continuing
BThe package will be installed automatically during dbt run
Cdbt run will ignore the new package but continue successfully
DThe new package will not be available, causing errors if referenced
Step-by-Step Solution
Solution:
  1. Step 1: Understand package installation process

    Packages listed in packages.yml must be installed with dbt deps before use.
  2. Step 2: Effect of skipping dbt deps

    If dbt deps is not run, the new package files are not downloaded, so references to the package will cause errors.
  3. Final Answer:

    The new package will not be available, causing errors if referenced -> Option D
  4. Quick Check:

    Try running dbt run without deps after adding package [OK]
Quick Trick: Always run dbt deps after modifying packages.yml [OK]
Common Mistakes:
MISTAKES
  • Assuming dbt run installs packages automatically
  • Expecting dbt to warn before failing
  • Thinking dbt run ignores missing packages silently

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More dbt Quizzes