dbt Analytics Engineering (50 Qs)•Part 3: Enterprise Scale, Performance & CI/CD Pipelines (Senior / Staff)
Building a Production Enterprise dbt Repository: Medallion Architecture best practices.
senior LevelMost AskedFormsPerformancePipes
In Simple Words: Organizing thousands of models into a maintainable, structured directory layout:
- Staging / Bronze (
models/staging/):- 1-to-1 mapping with source tables (
stg_stripe__payments.sql). - Clean column names, cast data types, handle timezone normalization. Zero business logic joins!
- 1-to-1 mapping with source tables (
- Intermediate / Silver (
models/intermediate/):- Ephemeral or table materialization (
int_orders_pivoted_by_payment_method.sql). - Complex joins, window functions, and multi-source unifications.
- Ephemeral or table materialization (
- Marts / Gold (
models/marts/):- Partitioned and clustered dimension and fact tables organized by business domain (
marts/finance/fct_orders.sql,marts/marketing/dim_campaigns.sql). - Ready for direct consumption by BI dashboards and machine learning pipelines.
- Partitioned and clustered dimension and fact tables organized by business domain (