Bird
0
0

In a CI/CD pipeline, what is the effect of running 'dbt run --models tag:nightly'?

medium📝 Predict Output Q5 of 15
dbt - Production Deployment
In a CI/CD pipeline, what is the effect of running 'dbt run --models tag:nightly'?
ARuns all models except those tagged 'nightly'
BRuns only models named 'tag:nightly'
CRuns models with the 'nightly' schema
DRuns all models tagged with 'nightly'
Step-by-Step Solution
Solution:
  1. Step 1: Understand dbt model selection syntax

    '--models tag:nightly' selects models tagged 'nightly'.
  2. Step 2: Interpret command effect in pipeline

    The command runs all models with the 'nightly' tag, not just one named literally.
  3. Final Answer:

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

    dbt tag selector runs tagged models [OK]
Quick Trick: Use 'tag:' to run models with specific tags [OK]
Common Mistakes:
MISTAKES
  • Thinking it runs a model literally named 'tag:nightly'
  • Assuming it excludes tagged models
  • Confusing tags with schema names

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More dbt Quizzes