SpinTheMic
Pro

Interview practice question

Tests making runs slow and expensive

Data Engineering · dbt · Intermediate

Your nightly run spends more time on tests than on models, mainly on huge fact tables. How do you optimize testing?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Use where config to test only recent data on incremental models.
  • Remove duplicate tests that check the same rule.
  • Test at the right layer, like keys in staging, not in every layer.
  • Use cheaper test patterns, like dbt_utils unique_combination_of_columns.
  • Run heavy full-table tests weekly instead of nightly.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics