Databricks Certified Associate Developer for Apache Spark — Question 136

Which of the following best describes the similarities and differences between the MEMORY_ONLY storage level and the MEMORY_AND_DISK storage level?

Answer options

Correct answer: D

Explanation

Option D accurately describes that MEMORY_ONLY keeps data in memory and recomputes what doesn't fit, while MEMORY_AND_DISK also stores in memory but saves overflow data to disk for retrieval. Other options either incorrectly state the behavior of MEMORY_ONLY or MEMORY_AND_DISK or incorrectly describe how data is managed across cluster nodes.