Ultimate access to all questions.
Upgrade Now 🚀
Sign in to unlock AI tutor
Which of the following code blocks attempts to cache only the partitions of DataFrame storesDF in Spark's memory?
storesDF
A
storesDF.cache(StorageLevel.MEMORY_ONLY).count()
B
storesDF.persist().count()
C
storesDF.cache().count()
D
storesDF.persist(StorageLevel.MEMORY_ONLY).count()
E
storesDF.persist("MEMORY_ONLY").count()