A Glue job reads data from S3 in CSV and writes to Parquet with Snappy. You discover a large number of small files, causing poor query performance in Athena. What approach best mitigates small-file problems?
Answer
Coalesce or repartition appropriately before writing, and use Glue job configurations or Spark settings to target a reasonable file size
Explanation
Appropriate repartition/coalesce reduces the number of output files. Targeting file size improves partition/file-level metadata efficiency for Athena.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
You must ingest CDC-style changes from an OLTP system into AWS using AWS DMS, then land them in a lake for downstream analytics. Which pipeline ensures the most reliable incremental changes with minimal reprocessing?
View question →
You need to guarantee at-least-once processing semantics while preventing duplicates when using AWS Glue (Spark) jobs reading from a streaming source into an S3 data lake. What design is most appropriate?
View question →
In an AWS data engineering workflow, which combination best addresses schema drift when ingesting semi-structured records into a governed analytics lake?
View question →
You need to implement fine-grained access controls on S3 data for multiple teams while supporting analytics queries via Athena. Which strategy is best aligned with least privilege and efficient governance?
View question →
A data engineer partitions data by year/month/day and uses AWS Glue to crawl the S3 layout into a Data Catalog. Later, they switch to partition projection for Athena. What operational consequence is most likely?
View question →
A dataset is partitioned by event_date and ingested daily into S3. Analytics queries are slow due to scanning too many partitions. Which action most directly reduces the scanned data in Athena while keeping late-arriving events accurate?
View question →