SpinTheMic
Pro

Interview practice question

Rerun created duplicate rows

Data Engineering · Airflow · Beginner

After rerunning a failed DAG, the target table has duplicate rows. Why, and how do you prevent it?

What a strong answer covers

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

  • Load task used plain INSERT/append.
  • Rerun inserted the same data again.
  • Use partition overwrite or MERGE on keys.
  • Delete-then-insert for the data interval inside a transaction.
  • Test reruns.
Practise this topic

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

See all topics