Skip to main content
InterviewHubPRO
Section Overview
Q42

Question 42 of 50

Part 3: Enterprise Scale, Performance & CI/CD Pipelines (Senior / Staff)

84%
dbt Analytics Engineering (50 Qs)•Part 3: Enterprise Scale, Performance & CI/CD Pipelines (Senior / Staff)

Slim CI Workflows: Running and testing only modified models using production `manifest.json`.

senior LevelMost AskedCode ExampleFormsPerformancePipes

In Simple Words: Running 1,000 dbt models on every pull request commit costs $500 and takes 45 minutes:

  • Slim CI Architecture:
    1. Download the production manifest.json artifact generated during the last successful nightly run.
    2. Execute:
      bash
      dbt build --select state:modified+ --defer --state ./prod-manifest
      
    3. --defer Magic: Any upstream unmodified model is not rebuilt in staging; dbt dynamically points references to the existing production table instead!
    4. Reduces CI runtime from 45 minutes down to 2 minutes.