Bird
0
0

In a CI/CD pipeline, you want to run dbt models and tests in parallel to speed up execution. Which is a valid approach?

hard📝 Workflow Q9 of 15
dbt - Production Deployment
In a CI/CD pipeline, you want to run dbt models and tests in parallel to speed up execution. Which is a valid approach?
ASplit models into groups and run 'dbt run' and 'dbt test' in parallel jobs for each group
BRun 'dbt run' and 'dbt test' commands simultaneously on the same models in one job
CRun 'dbt test' before 'dbt run' to parallelize
DUse 'dbt run --parallel' to run tests and models together
Step-by-Step Solution
Solution:
  1. Step 1: Understand dbt parallel execution options

    dbt does not support running tests and runs simultaneously on same models in one job.
  2. Step 2: Use CI/CD features to parallelize

    Splitting models into groups and running jobs in parallel speeds up pipeline safely.
  3. Final Answer:

    Split models into groups and run 'dbt run' and 'dbt test' in parallel jobs for each group -> Option A
  4. Quick Check:

    Parallelize by splitting models into jobs [OK]
Quick Trick: Split models and run jobs in parallel for speed [OK]
Common Mistakes:
MISTAKES
  • Running run and test simultaneously on same models causes conflicts
  • Running tests before models is illogical
  • Assuming 'dbt run --parallel' runs tests too

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More dbt Quizzes