🔥 3-day streak
Microsoft Fabric Data Engineer Associate100 / 144
Question 100 of 144

A data engineer ingests daily CSV extracts from a partner into a Fabric lakehouse using a PySpark notebook. Over time, the partner occasionally adds new columns to later files, but historical files keep the older, narrower schema. When the engineer reads all files at once with spark.read.csv() and a wildcard path, some rows lose data from the newer columns. The engineer must combine all files into a single Delta table that preserves every column that has ever appeared, filling missing values with nulls where a file lacked a column. Which approach best handles this schema drift?

Reviewed for accuracy · Report an issueNext question