Bird
0
0

In a PR workflow, this command is used:

medium📝 Predict Output Q5 of 15
dbt - Governance and Collaboration
In a PR workflow, this command is used:
dbt run --models tag:staging

What does this command do?
ARuns all models except those tagged 'staging'
BRuns only models changed in the PR
CRuns models with the name 'staging'
DRuns all models tagged with 'staging'
Step-by-Step Solution
Solution:
  1. Step 1: Understand dbt tag selector

    dbt allows running models by tags using --models tag:.
  2. Step 2: Interpret the command

    dbt run --models tag:staging runs all models tagged 'staging'.
  3. Final Answer:

    Runs all models tagged with 'staging' -> Option D
  4. Quick Check:

    Tag selector runs tagged models [OK]
Quick Trick: Use tag: to run tagged models [OK]
Common Mistakes:
MISTAKES
  • Confusing tag with model name
  • Assuming it runs changed models only
  • Thinking it excludes tagged models

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More dbt Quizzes