Refer to the exhibit. This log snippet is from a failed AWS Glue job. The job processes a large dataset in memory. What is the MOST likely cause of the OutOfMemoryError?
Glue allocates memory per executor based on DPU count and worker type; a large in-memory dataset exceeding that allocation triggers OutOfMemoryError. Insufficient DPUs or an undersized worker type directly caps heap available to the job, so scaling them addresses the constraint stated in the stem.
Why this answer
An OutOfMemoryError in AWS Glue typically occurs when the allocated DPUs or worker type are insufficient for the in-memory processing of a large dataset. Option B is incorrect because unsupported file formats cause parsing errors, not memory errors. Option C is incorrect because mismatched keys in a join cause data skew or incorrect results, but not directly an OutOfMemoryError.
Option D is incorrect because too many partitions usually lead to small file overhead, not heap space exhaustion.