Bird
0
0

Consider these dbt models and their dependencies:

medium📝 Predict Output Q4 of 15
dbt - Performance Optimization
Consider these dbt models and their dependencies:
alpha.sql (no dependencies)
beta.sql (depends on alpha)
gamma.sql (depends on alpha)
delta.sql (depends on beta and gamma)

If dbt is run with --threads 2, which models will start running simultaneously?
Abeta and gamma
Balpha only
Cdelta only
Dbeta and delta
Step-by-Step Solution
Solution:
  1. Step 1: Identify models with no dependencies

    Only alpha.sql has no dependencies and can run immediately.
  2. Step 2: Understand parallelism limit

    With --threads 2, up to 2 models can run simultaneously, but only models without unmet dependencies can start.
  3. Final Answer:

    alpha only -> Option B
  4. Quick Check:

    Only alpha has no dependencies and can start immediately. [OK]
Quick Trick: Only models without dependencies start first [OK]
Common Mistakes:
MISTAKES
  • Assuming dependent models can start before their dependencies finish
  • Ignoring the dependency graph when considering parallelism

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More dbt Quizzes