Databricks Certified Associate Developer for Apache Spark — Question 53
Which of the following object types cannot be contained within a column of a Spark DataFrame?
Answer options
- A. DataFrame
- B. String
- C. Array
- D. null
- E. Vector
Correct answer: A
Explanation
A DataFrame cannot be stored in a column of another DataFrame because it represents a structured dataset, whereas String, Array, null, and Vector are valid data types that can be stored in a column. The other options are all scalar or structured types that Spark allows within DataFrame columns.