Certified Associate Developer for Apache Spark Exam QuestionsBrowse all questions from this exam

Certified Associate Developer for Apache Spark Exam - Question 145


In what order should the below lines of code be run in order to read a parquet at the file path filePath into a DataFrame?

Lines of code:

1. storesDF

2. .load(filePath, source = "parquet")

3. .read \

4. spark \

5. .read() \

6. .parquet(filePath)

Show Answer
Correct Answer: CD

To read a parquet file at the file path into a DataFrame, you start with spark, access the read method, and then call parquet with the file path. The correct order is spark, .read(), and .parquet(filePath).

Discussion

1 comment
Sign in to comment
Sowwy1Option: C
Apr 10, 2024

C. 4, 3, 6