nerdexam
DatabricksDatabricks

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

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

The correct answer is E: 1. storesDF.storeId. See the full explanation below for the reasoning.

Transforming Data with Spark DataFrames

Question

The code block shown below should return a new DataFrame that is the result of an inner join between DataFrame storesDF and DataFrame employeesDF on column storeId and column employeeId. Choose the response that correctly fills in the numbered blanks within the code block to complete this task. Code block: storesDF.join(employeesDF, [__1__ == __2__, __3__ == __4__])

Options

  • A1. storesDF.storeId
  • B1. col("storeId")
  • C1. storeId
  • D1. col("storeId")
  • E1. storesDF.storeId

Topics

#Spark DataFrames#Joins#DataFrame API#Column Expressions

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