← DP-203: Azure data engineering, historical path
DP-203 and Azure Data Engineer Associate retired March 31, 2025. Independent historical content without Microsoft affiliation, accreditation, or certification award. Editorial review without independent specialist verification. No live Azure changes or real banking operations were executed. Fictional cases do not represent internal policies of financial institutions. Trademarks belong to their respective owners.
06 / 6 · 40 MIN

Optimization, cost, and retention

Improve performance without losing correctness or recovery capability.

Concept and mechanism

Optimization starts with an observable hypothesis and a reproducible comparison. In an existing date-partitioned Delta table without liquid clustering, compaction with OPTIMIZE can reorganize small files while preserving logical results. For new designs, current documentation recommends evaluating liquid clustering; do not automatically copy the historical design.

VACUUM has a different purpose: removing eligible files no longer needed by retained versions. The log may still mention a version whose files no longer exist. Define data and history retention around recovery, maximum job duration, and delayed consumers. Storage savings do not establish that restoration remains possible.

Guided application

In Spark, one task much slower than its peers can indicate skew, especially when one key dominates rows. Investigate distribution before attributing all delay to insufficient capacity. Semantically valid projection and filtering before shuffle reduce moved data; indiscriminate caching can increase memory pressure.

Measure spill, task tails, volume, and results. In serverless SQL, reducing reads from 900 to 90 GB means 90% for that run, but does not guarantee the same reduction in latency or total platform cost. In a project, present FinOps with measured savings including optimization cost, and APS with effects on the operating window and recovery. Maintain rollback and reconciliation criteria during each experiment.

IN PRACTICE

Proposed retention is shorter than a job’s duration and the seven-day recovery commitment. Defer the change until a design preserving those requirements is demonstrated.

Common pitfalls

OPTIMIZE treated as backup; VACUUM treated as compaction; fewer bytes treated as equal gains across all metrics.

Related topics: Storage, distribution, and exploration · Incremental loads and recovery · Streams, time, and external effects

Take this idea with you

An improvement is established when performance, cost, and correctness are measured in the same context.

Create account

References

Microsoft and Azure are trademarks of the Microsoft group of companies. bigsavant.com is an independent preparation platform and is not affiliated with, associated with, sponsored, authorised or endorsed by Microsoft. Content and questions are original, are not official exam questions, and completing our tests does not award or guarantee any certification. Names are used only to identify the subject. All other trademarks belong to their respective owners.