Skip to content
DEA
Development and Ingestion
medium
Question 7 of 60

A data engineer writes the following PySpark code to read CSV files from a Unity Catalog volume:\n\n
\ndf = (spark.read\n  .format(\csv\)\n  .option(\header\, True)\n  .option(\inferSchema\, True)\n  .load(\/Volumes/main/raw/landing/\))\n
\n\nWhat does inferSchema=True cause Spark to do?

AValidates that the CSV schema matches a predefined schema stored in Unity Catalog
BPerforms an extra scan of the data to automatically determine column data types
CLoads the schema from the most recent Auto Loader checkpoint
DRaises an error if any column contains null values

Educational Content — CertQnA practice questions are written against official exam objectives, covering the same domains tested on the real exam. All content is original and independent — not actual exam questions, not affiliated with any certification vendor. Learn more about our content policy

Discussion

Be the first to share your understanding of this concept

⚠️ Discussion is for concept clarification only. Do not share or request actual exam questions or answers.

Sign in to join the discussion