Quiz 10 Question 18 of 20

Rather than compacting small files after the fact with a scheduled OPTIMIZE job, an engineer wants Spark to avoid generating excessive small files in the first place when it writes results from a nightly transformation of loan-tracking records into a Lakehouse table. Which approach addresses the problem at write time rather than after the fact?

Select an answer to reveal the explanation.

Motivation