SpinTheMic
Pro

Interview practice question

Processing a variable number of files each day

Data Engineering · Airflow · Intermediate

Each day, between 10 and 2,000 files land in S3, and each must be processed separately. How do you design the DAG?

What a strong answer covers

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

  • List files in a task and return paths.
  • Use dynamic task mapping with expand().
  • Batch small files into groups if counts are huge.
  • Limit concurrency with pools or max_active_tis_per_dag.
  • Mark processed files to avoid reprocessing.
Practise this topic

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

See all topics