CertLumen

Microsoft Fabric Data Engineer (DP-700) · Section 3 · 33% of the exam

Optimize a lakehouse table

One of the objectives of the Microsoft Certified: Fabric Data Engineer Associate (exam DP-700: Implementing Data Engineering Solutions Using Microsoft Fabric) exam, in the section “Monitor and optimize an analytics solution”. Here is what it covers, the points to remember and a question to try.

What it covers

Delta tables in a lakehouse are not self-maintaining. Small files, stale files and the wrong layout slow down Spark, the SQL analytics endpoint and Direct Lake. This lesson covers OPTIMIZE, V-Order, Z-order, liquid clustering, optimize write, auto compaction, VACUUM, partitioning and how to decide which to use for a given consumer.

Points to remember

  • Lakehouse Delta tables need explicit maintenance; the warehouse compacts automatically.
  • OPTIMIZE bin-packs files (1 GB default target); VACUUM removes unreferenced files after 7 days by default and does not improve read speed.
  • Portal path: right-click the table, Maintenance, Run now; recurring runs use the Lakehouse Maintenance pipeline activity (preview).
  • V-Order costs about 15 percent write time, is off by default in new workspaces, and mainly helps Direct Lake; OPTIMIZE ... VORDER rewrites existing files.
  • Session V-Order true overrides a write option or table property of false.

Try a question

Which statement about liquid clustering in Fabric is correct?

  1. AClustering is applied by OPTIMIZE (or auto compaction on Runtime 2.0), not by regular writes
  2. BIt can be combined with Hive-style partitioning on the same table
  3. CIt requires the clustering columns to be fixed permanently at the moment the table is first created
  4. DIt replaces the need to run VACUUM on the table
Show the answer

A. Liquid clustering is defined with CLUSTER BY and applied by OPTIMIZE, so a clustered table that is never optimized stays unclustered. It is incompatible with partitioning and Z-order, and clustering columns can be changed later with ALTER TABLE CLUSTER BY.

Written for practice in the style of the exam: never a question from the real exam.

In the course

The lesson Optimize a lakehouse table teaches this objective (about 50 minutes), and 21 practice questions test it. The course has lessons, exam-style questions, timed practice exams and an AI tutor for every objective, and a pass prediction that tells you when you're ready to book.

More in this section

← Previous objective · All 49 objectives · Next objective →