DatabricksDatabricks
DATABRICKS-CERTIFIED-ASSOCIATE-DEVELOPER-FOR-APACHE-SPARK · Question #39
DATABRICKS-CERTIFIED-ASSOCIATE-DEVELOPER-FOR-APACHE-SPARK Question #39: Real Exam Question with Answer & Explanation
The correct answer is C: 4, 6, 2, 3. See the full explanation below for the reasoning.
Writing DataFrames to Storage
Question
In what order should the below lines of code be run in order to write DataFrame storesDF to file path filePath as parquet and partition by values in column division? Lines of code: 1. .write() \ 2. .partitionBy("division") \ 3. .parquet(filePath) 4. .storesDF \ 5. .repartition("division") 6. .write \ 7. .path(filePath, "parquet")
Options
- A4, 1, 2, 3
- B4, 1, 5, 7
- C4, 6, 2, 3
- D4, 1, 5, 3
- E4, 6, 2, 7
Topics
#Spark DataFrame API#Data Writing#Parquet Format#Data Partitioning
Community Discussion
No community discussion yet for this question.