nerdexam
DatabricksDatabricks

DATABRICKS-CERTIFIED-ASSOCIATE-DEVELOPER-FOR-APACHE-SPARK · Question #26

DATABRICKS-CERTIFIED-ASSOCIATE-DEVELOPER-FOR-APACHE-SPARK Question #26: Real Exam Question with Answer & Explanation

Sign in or unlock DATABRICKS-CERTIFIED-ASSOCIATE-DEVELOPER-FOR-APACHE-SPARK to reveal the answer and full explanation for question #26. The question stem and answer options stay visible for context.

Spark DataFrame Persistence

Question

The code block shown below contains an error. The code block is intended to cache DataFrame storesDF only in Spark's memory and then return the number of rows in the cached DataFrame. Identify the error. Code block: storesDF.cache().count()

Options

  • AThe cache() operation caches DataFrames at the MEMORY_AND_DISK level by default - the
  • BThe cache() operation caches DataFrames at the MEMORY_AND_DISK level by default - the
  • CThe storesDF DataFrame has not been checkpointed - it must have a checkpoint in order to be
  • DDataFrames themselves cannot be cached - DataFrame storesDF must be cached as a table.
  • EThe cache() operation can only cache DataFrames at the MEMORY_AND_DISK level (the

Unlock DATABRICKS-CERTIFIED-ASSOCIATE-DEVELOPER-FOR-APACHE-SPARK to see the answer

You've previewed enough free DATABRICKS-CERTIFIED-ASSOCIATE-DEVELOPER-FOR-APACHE-SPARK questions. Unlock DATABRICKS-CERTIFIED-ASSOCIATE-DEVELOPER-FOR-APACHE-SPARK for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#Spark Caching#Storage Levels#DataFrame Persistence#Spark API
Full DATABRICKS-CERTIFIED-ASSOCIATE-DEVELOPER-FOR-APACHE-SPARK PracticeBrowse All DATABRICKS-CERTIFIED-ASSOCIATE-DEVELOPER-FOR-APACHE-SPARK Questions