nerdexam
DatabricksDatabricks

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

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

The correct answer is C: storesDF.take(3). See the full explanation below for the reasoning.

Performing Basic DataFrame Actions

Question

Which of the following code blocks returns the first 3 rows of DataFrame storesDF?

Options

  • AstoresDF.top_n(3)
  • BstoresDF.n(3)
  • CstoresDF.take(3)
  • DstoresDF.head(3)
  • EstoresDF.collect(3)

Topics

#PySpark#DataFrame API#Data Retrieval#Action Operations

Community Discussion

No community discussion yet for this question.

Full DATABRICKS-CERTIFIED-ASSOCIATE-DEVELOPER-FOR-APACHE-SPARK PracticeBrowse All DATABRICKS-CERTIFIED-ASSOCIATE-DEVELOPER-FOR-APACHE-SPARK Questions