Skip to main content
InterviewHubPRO
Section Overview
Q29

Question 29 of 50

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

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

How do you implement Zero-Downtime Blue/Green Deployments with dbt?

senior LevelMost AskedFormsPerformancePipes

In Simple Words:

  1. In production CI/CD, build all models into a temporary "Green" schema (prod_green).
  2. Run all data quality tests on prod_green.
  3. If all tests pass, execute an atomic metadata schema swap (ALTER SCHEMA prod SWAP WITH prod_green;).
  4. Downstream BI queries never experience intermediate drop or table rebuild errors!