DATABRICKS-CERTIFIED-ASSOCIATE-DEVELOPER-FOR-APACHE-SPARK · Question #160
DATABRICKS-CERTIFIED-ASSOCIATE-DEVELOPER-FOR-APACHE-SPARK Question #160: Real Exam Question with Answer & Explanation
Sign in or unlock DATABRICKS-CERTIFIED-ASSOCIATE-DEVELOPER-FOR-APACHE-SPARK to reveal the answer and full explanation for question #160. The question stem and answer options stay visible for context.
Question
The code block shown below contains an error. The code block is intended to create a single- column DataFrame from Python list years which is made up of integers. Identify the error. Code block: spark.createDataFrame(years, IntegerType)
Options
- AThe column name must be specified.
- BThe years list should be wrapped in another list like [years] to make clear that it is a column rather
- CThere is no createDataFrame operation in spark.
- DThe IntegerType call must be followed by parentheses.
- EThe IntegerType call should not be present - Spark can tell that list years is full of integers.
Unlock DATABRICKS-CERTIFIED-ASSOCIATE-DEVELOPER-FOR-APACHE-SPARK to see the answer
You've previewed enough free DATABRICKS-CERTIFIED-ASSOCIATE-DEVELOPER-FOR-APACHE-SPARK questions. Unlock DATABRICKS-CERTIFIED-ASSOCIATE-DEVELOPER-FOR-APACHE-SPARK for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.