Bird
0
0

Why is it important to use the 'state:modified' selector in dbt PR workflows instead of running all models every time?

hard🧠 Conceptual Q10 of 15
dbt - Governance and Collaboration
Why is it important to use the 'state:modified' selector in dbt PR workflows instead of running all models every time?
AIt reduces runtime by only running changed models and their dependencies
BIt forces a full rebuild of the entire project
CIt ignores any new models added in the PR
DIt disables tests to speed up the workflow
Step-by-Step Solution
Solution:
  1. Step 1: Understand the purpose of state:modified selector

    This selector targets only models changed since last commit, avoiding full runs.
  2. Step 2: Identify the benefit in PR workflows

    Running only changed models reduces workflow runtime and resource use.
  3. Final Answer:

    It reduces runtime by only running changed models and their dependencies -> Option A
  4. Quick Check:

    state:modified = faster selective runs [OK]
Quick Trick: Use state:modified to speed up PR runs [OK]
Common Mistakes:
MISTAKES
  • Thinking it triggers full rebuild
  • Assuming it ignores new models
  • Believing it disables tests

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More dbt Quizzes