Courseiva
mediumMultiple Choice

MLA-C01 Practice Question: A machine learning engineer is using AWS Glue ETL…

A machine learning engineer is using AWS Glue ETL to transform a large dataset stored in Amazon S3. The transformation involves joining two tables on a high-cardinality column and aggregating results. The job is running slowly and the engineer needs to improve performance. Which optimization technique should the engineer apply?

⚠ Common exam trap

MLA-C01 often tests the misconception that throwing more workers at a slow Glue job solves performance problems, when the real issue is shuffle-heavy joins that require bucketing or partition pruning.

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

✓

Use bucketing on the join key for both tables

Bucketing on the join key for both tables co-locates rows with the same key into the same bucket files, which allows Spark to perform a bucketed join that avoids a full shuffle of the large dataset. This dramatically reduces network I/O and speeds up joins on high-cardinality columns.

Answer analysis

Option-by-option breakdown

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

  • ✗

    Increase the number of workers and memory allocation

    Why it's wrong here

    Adding workers and memory scales the cluster but does not address the skewed shuffle that a high-cardinality join creates, so straggler tasks persist. It is tempting because under-provisioned clusters do slow jobs, and this would be correct for genuinely resource-starved workloads.

  • ✓

    Use bucketing on the join key for both tables

    Why this is correct

    Bucketing partitions both tables by hash of the join key into a fixed number of buckets, so matching keys land in the same bucket. This lets Glue process each bucket pair independently, avoiding a full shuffle of the high-cardinality column and cutting join and aggregation time.

  • ✗

    Use Spark SQL instead of the DynamicFrame API

    Why it's wrong here

    Spark SQL and the DynamicFrame API both compile to the same Spark execution engine, so swapping APIs leaves the shuffle cost of the high-cardinality join unchanged. It is tempting because SQL feels declarative, but the correct fix targets the shuffle itself, such as salting the join key.

  • ✗

    Convert the job to use Python Shell

    Why it's wrong here

    Python Shell jobs run single-threaded on one instance and cannot distribute a high-cardinality join or aggregation across a cluster, so the job stays slow. It is tempting for lightweight scripts and small datasets, where a full Spark cluster is unnecessary overhead.

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 665 original MLA-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 MLA-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 MLA-C01 exam.