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

Certified Associate Developer for Apache Spark Exam - Question 175


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

Show Answer
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

1 comment
Sign in to comment
f728f7fOption: C
Jul 9, 2024

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