SpinTheMic
Pro

Interview practice question

Processing 100,000 files in S3

Data Engineering · Python · Intermediate

You need to process 100,000 small JSON files in S3. A simple loop takes forever. What would you do?

What a strong answer covers

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

  • Small files make per-request overhead dominate.
  • Parallelize downloads with threads or async.
  • Combine small files into larger Parquet files.
  • Or use a distributed engine like Spark or Glue for the processing.
  • Fix the producer to write bigger files if possible.
Practise this topic

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

See all topics