Exam Certified Associate Developer for Apache Spark All QuestionsBrowse all questions from this exam
Question 175

Which of the following describes why garbage collection in Spark is important?

    Correct Answer: C

    Garbage collection in Spark is important because Spark jobs will fail or run slowly if memory is not available for new objects to be created. Garbage collection helps by releasing memory occupied by objects that are no longer in use, thus freeing up space for new objects and ensuring efficient memory management. This process is crucial for maintaining the performance and stability of Spark jobs.

Discussion
f728f7fOption: C

C is correct. Garbage in JVM is about releasing memory of objects that are no longer used so that new objects can be created