DP-700 · Question #35
You have a Fabric workspace that contains a lakehouse named Lakehouse1. Lakehouse1 contains a Delta table named Table1. You analyze Table1 and discover that Table1 contains 2,000 Parquet files of 1…
The correct answer is C. Run the OPTIMIZE and VACUUM commands. To minimize query time on a Delta table with many small Parquet files, you should consolidate them into larger files and then remove the obsolete ones.
Question
Options
- ADisable V-Order and run the OPTIMIZE command.
- BDisable V-Order and run the VACUUM command.
- CRun the OPTIMIZE and VACUUM commands.
- DEnable V-Order and run the OPTIMIZE command.
How the community answered
(30 responses)- A7% (2)
- B3% (1)
- C80% (24)
- D10% (3)
Why each option
To minimize query time on a Delta table with many small Parquet files, you should consolidate them into larger files and then remove the obsolete ones.
Disabling V-Order is generally not recommended for performance, and while OPTIMIZE helps, VACUUM is also needed for cleanup.
Disabling V-Order is generally not recommended, and VACUUM alone does not consolidate small files; it only removes unreferenced ones.
Running the OPTIMIZE command on the Delta table will consolidate the 2,000 small 1 MB Parquet files into fewer, larger files, significantly reducing metadata overhead and improving scan performance. Subsequently, running the VACUUM command will remove the old, unreferenced 1 MB files, freeing up storage and further optimizing the table for quicker queries.
While OPTIMIZE is correct, V-Order should generally be enabled for performance, not disabled, and VACUUM is still necessary to clean up old files.
Concept tested: Delta Lake table optimization (OPTIMIZE, VACUUM)
Source: https://learn.microsoft.com/en-us/fabric/data-warehouse/delta-lake-overview#delta-table-maintenance
Topics
Community Discussion
No community discussion yet for this question.