dbt Analytics Engineering (50 Qs)•Part 3: Enterprise Scale, Performance & CI/CD Pipelines (Senior / Staff)
How do you track and audit query costs generated by dbt?
senior LevelMost AskedFormsPerformancePipes
In Simple Words:
Use packages like dbt-artifacts:
- On
on-run-end, dbt automatically writes execution metadata (compilation time, execution duration, rows affected, query ID) into a dedicated auditing table in your warehouse. - Join this table with Snowflake's
QUERY_HISTORYto accurately attribute cloud compute costs to specific data models and teams.