Databricks Certified Associate Developer For Apache Spark 30 · Free Practice Question Medium

Question 14

If we want to store RDD as serialized Java objects in the JVM and if the RDD does not fit in memory, store the partitions that don’t fit on disk, and read them from there when they’re needed, which storage level we need to choose ?
  • A MEMORY_AND_DISK
  • B

    MEMORY_AND_DISK_SER

  • C MEMORY_AND_DISK_2
  • D MEMORY_ONLY_2
Reveal correct answer

Correct answer: B

Explanation

https://spark.apache.org/docs/latest/api/python/reference/api/pyspark.StorageLevel.html#pyspark.StorageLevel


"Since the data is always serialized on the Python side, all the constants use the serialized formats."

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need