Databricks Certified Associate Developer for Apache Spark 3.0 Exam Databricks-Certified-Associate-Developer-for-Apache-Spark-3.0 Question # 40 Topic 5 Discussion

Databricks Certified Associate Developer for Apache Spark 3.0 Exam Databricks-Certified-Associate-Developer-for-Apache-Spark-3.0 Question # 40 Topic 5 Discussion

Databricks-Certified-Associate-Developer-for-Apache-Spark-3.0 Exam Topic 5 Question 40 Discussion:
Question #: 40
Topic #: 5

Which of the following code blocks can be used to save DataFrame transactionsDf to memory only, recalculating partitions that do not fit in memory when they are needed?


A.

from pyspark import StorageLevel

transactionsDf.cache(StorageLevel.MEMORY_ONLY)


B.

transactionsDf.cache()


C.

transactionsDf.storage_level('MEMORY_ONLY')


D.

transactionsDf.persist()


E.

transactionsDf.clear_persist()


F.

from pyspark import StorageLevel

transactionsDf.persist(StorageLevel.MEMORY_ONLY)


Get Premium Databricks-Certified-Associate-Developer-for-Apache-Spark-3.0 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.