Interview practice question
Streaming writes creating tiny files
Data Engineering · AWS · Intermediate
A streaming job writes to S3 every minute, creating millions of small files. Athena queries are getting very slow. How do you fix it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Small files make queries slow and expensive.
- Increase buffering or micro-batch interval if latency allows.
- Run a compaction job per partition.
- Use Iceberg with rewrite_data_files, or S3 Tables with automatic compaction.
- Keep raw small files only briefly.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.