Courseiva

DEA-C01 Data Ingestion and Transformation Practice Question

A data engineer is configuring an AWS Glue ETL job that reads from an Amazon S3 source with many small JSON files and writes to Amazon S3 in Parquet. The job runs slowly and produces many tiny output files. The engineer wants to improve throughput and reduce the number of output files without changing the source data layout. (Choose two.)

⚠ Common exam trap

The trap here is assuming that adding more DPUs will consolidate output files, when output file count is determined by write-time partitions, not by worker capacity.

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

✓

Call coalesce or repartition on the DataFrame before writing the Parquet output.

Small input files cause per-object overhead that slows reads, and the output file count equals the number of write-time partitions. Grouping input files with the groupFiles option consolidates reads, while repartitioning or coalescing the DataFrame before writing reduces the number of output partitions. Together these improve throughput and produce fewer, larger Parquet files without altering the source layout.

Answer analysis

Option-by-option breakdown

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

  • ✓

    Call coalesce or repartition on the DataFrame before writing the Parquet output.

    Why this is correct

    Repartitioning or coalescing the DataFrame controls how many partitions exist at write time, and each partition produces one output file. Reducing partitions before the write consolidates output into fewer, larger Parquet files, which improves downstream query performance and directly addresses the many-tiny-output-files problem.

  • ✓

    Enable the AWS Glue groupFiles option to coalesce input files during the read.

    Why this is correct

    The groupFiles read option lets AWS Glue combine multiple small input objects into a single in-memory partition, which reduces task overhead and improves read throughput for many small JSON files. Since the source layout is unchanged, this addresses the small-file read problem directly and is the intended mechanism for this scenario.

  • ✗

    Increase the number of Glue DPUs allocated to the job.

    Why it's wrong here

    Adding DPUs increases parallel capacity but does not reduce the number of output files and can even increase them because more tasks write independently. It may improve speed for large inputs, but with many tiny files the bottleneck is per-file overhead, and output file count is governed by partitioning and repartitioning, not worker count.

  • ✗

    Enable AWS Glue job bookmarks to skip previously processed files.

    Why it's wrong here

    Job bookmarks track processed S3 objects across runs to avoid reprocessing, which helps incremental loads but does not affect read throughput for a single run or the number of output files produced. Enabling bookmarks here would not resolve the small-file performance or output fragmentation problems described.

  • ✗

    Convert the output format from Parquet to CSV to reduce file count.

    Why it's wrong here

    Switching to CSV does not change how Spark partitions data and writes one file per partition, so the file count remains the same while losing Parquet's columnar compression and predicate pushdown benefits. This degrades analytics performance and does not solve the small-file issue, so it is the wrong direction.

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

One of 1,321 original DEA-C01 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official Amazon Web Services exam blueprint

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.