Refer to the exhibit. A data engineer sees this output from the AWS CLI for a failed Glue job. The job uses 10 workers of Standard type. What is the MOST appropriate action to resolve the OutOfMemoryError?
Correct. Changing WorkerType to G.1X doubles the memory per worker (from 4 GB to 8 GB), resolving the OutOfMemoryError.
Why this answer
The OutOfMemoryError occurs because each Standard worker has a memory limit of 4 GB. Increasing MaxCapacity to 20 does not increase memory per worker when NumberOfWorkers is explicitly set; it only increases the total DPU allocation but the job still uses 10 workers each with 1 DPU. The correct solution is to change the worker type to G.1X, which provides 2 DPUs (8 GB memory) per worker, effectively doubling the memory per worker and resolving the error.
Option A (increase workers) adds parallelism but does not increase per-worker memory. Option B (reduce workers) decreases parallelism and may aggravate memory pressure. Option D (increase MaxCapacity) is ineffective when NumberOfWorkers is fixed.
Exam trap
Candidates often mistakenly think increasing MaxCapacity raises memory per worker, but when NumberOfWorkers is set, MaxCapacity only sets the maximum total DPU; the job still uses exactly the specified number of workers each with the default DPU for the worker type.