SpinTheMic
Pro

Interview practice question

JSON source changing shape in dbt

Data Engineering · dbt · Experienced

Your staging model parses a JSON source, and the source team keeps changing nested structures. How do you design the dbt layer to cope?

What a strong answer covers

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

  • Keep raw JSON untouched in the source table.
  • Parse only needed fields in staging with explicit casts and TRY_ functions.
  • Use COALESCE across old and new paths during transitions.
  • Add tests on key parsed fields to detect breaks.
  • Monitor for new keys and agree contracts with the source.
Practise this topic

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

See all topics