Question 350
A Spark notebook transforms large JSON logs in Fabric. The current environment exhibits the following problem: Spark writes many tiny files and queries slow down. Which approach best satisfies this requirement?
Explanation
Correct Answer
Optimize Delta file layout after heavy small-batch writes. File compaction reduces metadata and file-open overhead.
Incorrect Answers
Partition-specific data arrives late but overwrite deletes all historical partitions. Targeted writes preserve unaffected partitions.
A join multiplies events because the dimension key isn't unique. Join cardinality determines row counts.
Nested JSON fields are malformed in a subset of files. Schema control prevents arbitrary inference drift and lost exceptions.