Databricks Certified Associate Developer for Apache Spark — Question 166

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

Answer options

Correct answer: C

Explanation

The correct answer, C, highlights that garbage collection is crucial for freeing up memory, allowing for the creation of new objects, which is essential for Spark jobs to run efficiently. Options A and B focus on inaccuracies due to data, which are not directly related to the role of garbage collection. Options D and E address issues related to transformations and task execution rather than the importance of managing memory through garbage collection.