Skip to main content
InterviewHubPRO
Section Overview
Q24

Question 24 of 50

Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

48%
Apache Spark Big Data (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

What are Delta Lake Time Travel, Vacuum, and Optimize (Z-Ordering)?

senior LevelPostgreSQL

In Simple Words:

  • Time Travel: Query previous table versions: spark.read.format("delta").option("versionAsOf", 5).load(path).
  • OPTIMIZE + Z-Order: Compresses small files into large 1 GB Parquet files and clusters data multidimensionally along Z-order curves for optimal partition skipping.
  • VACUUM: Permanently deletes historical Parquet files that are older than the retention threshold (default 7 days) to reclaim storage.