Exam Certified Associate Developer for Apache Spark All QuestionsBrowse all questions from this 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)

    Correct Answer: D

    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
Sowwy1Option: C

C. 4, 3, 6