Courseiva

DEA-C01 Data Operations and Support Practice Question

A data analyst needs to query a large Amazon S3 bucket containing CSV files using Amazon Athena. The bucket has millions of small files (less than 1 MB each). The analyst reports that queries are very slow and often time out. The data is partitioned by date and the partition columns are defined in the table. What is the most effective way to improve query performance?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

Run a compaction job to consolidate small files into fewer larger files (e.g., 128 MB each).

Many small files (under 1 MB) cause high overhead because each file requires a separate read operation and metadata call. Consolidating them into fewer larger files (e.g., 128 MB each) reduces the number of read operations and improves I/O efficiency, directly addressing the root cause of slowdowns and timeouts. Option A (converting to Parquet) improves storage efficiency and query performance but does not reduce the file count; it is a beneficial addition but not the most effective standalone fix for the small file problem. Option C (adding more partitions) would increase overhead by creating even more directories/files to scan. Option D (S3 Select) applies within individual files and does not mitigate overhead from file quantity.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    Convert the files to Apache Parquet format using an AWS Glue ETL job.

    Why it's wrong here

    Parquet conversion reduces scanned bytes but leaves millions of tiny objects, so Athena still incurs per-file listing, open and planning overhead — the actual bottleneck. Columnar conversion suits wide tables where scan volume dominates, not file-count-driven timeouts.

  • ✓

    Run a compaction job to consolidate small files into fewer larger files (e.g., 128 MB each).

    Why this is correct

    Millions of sub-1 MB files force Athena to open each object individually, so per-file overhead dominates and queries time out. Compacting into roughly 128 MB objects cuts the number of GET requests and partition listings, letting Athena scan far fewer, larger files.

  • ✗

    Add more partitions by including hour and minute as partition keys.

    Why it's wrong here

    Adding hour and minute partitions multiplies partition metadata and small-file overhead, worsening the millions-of-small-files problem rather than reducing bytes scanned. It would help when queries filter on those finer time grains. Compacting the small CSV files into larger objects is the effective fix.

  • ✗

    Use S3 Select to push down filtering to S3 before Athena processes the data.

    Why it's wrong here

    S3 Select filters rows within a single object during retrieval; it cannot consolidate millions of sub-1 MB files, so Athena still pays per-object request overhead and planning latency. It suits selectively reading columns from a few large CSV or JSON objects, not reducing file count.

Quick reference

AWS S3 Storage Class Comparison

Storage ClassMin DurationRetrievalUse Case
S3 StandardNoneImmediateFrequently accessed data
S3 Standard-IA30 daysImmediateInfrequent access, rapid retrieval
S3 One Zone-IA30 daysImmediateNon-critical infrequent data
S3 Intelligent-TieringNoneImmediate–hoursUnknown or changing access patterns
S3 Glacier Instant90 daysMillisecondsArchive with instant retrieval
S3 Glacier Flexible90 daysMinutes–hoursArchive, flexible retrieval
S3 Glacier Deep Archive180 daysHoursLong-term compliance archive

About these practice questions

Courseiva writes every DEA-C01 question from scratch — 1,321 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This DEA-C01 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the DEA-C01 exam.