Bird
0
0

What is the main purpose of using --state and --select state:modified in dbt's Slim CI?

easy🧠 Conceptual Q11 of 15
dbt - Production Deployment
What is the main purpose of using --state and --select state:modified in dbt's Slim CI?
ATo delete all previous run artifacts
BTo run all models regardless of changes
CTo create a backup of the current state
DTo run only the models that have changed since the last run
Step-by-Step Solution
Solution:
  1. Step 1: Understand the role of --state

    The --state flag points dbt to the previous run's artifacts, allowing comparison between runs.
  2. Step 2: Understand --select state:modified

    This selects only the models that have changed compared to the previous state, skipping unchanged models.
  3. Final Answer:

    To run only the models that have changed since the last run -> Option D
  4. Quick Check:

    Slim CI runs changed models only [OK]
Quick Trick: Slim CI runs changed models only, saving time [OK]
Common Mistakes:
MISTAKES
  • Thinking it runs all models every time
  • Confusing state with backup or deletion
  • Assuming it runs unchanged models too

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More dbt Quizzes