Databricks-Spark-Assoc Using Spark SQL • Set 3
Databricks-Spark-Assoc Using Spark SQL Practice Test 3 — 15 questions with explanations. Free, no signup.
A data engineer is building a Spark SQL job that reads a JSON file where each line is a separate record. The schema is variable, and many fields are missing in some records. The engineer wants to ensure that the query does not fail due to malformed records and that missing fields are treated as null. Which approach should be used when creating the DataFrame?
Choose an answer to begin — your selection is scored in the full session.
15 questions · instant feedback and full explanations after every question.