Q40
Single choice
A data engineer is troubleshooting two different pipeline failures: Pipeline A fails with a java.lang.OutOfMemoryError is immediately thrown after the command display(df.collect()) is called on a 100GB dataset. Pipeline B fails during a wide transformation (a join of two large tables) with an ExecutorLostFailure error message, indicating executor memory exhaustion during shuffle.
Which action should the data engineer take to fix these two issues?