nerdexam
Microsoft

DP-700 · Question #65

You have a Fabric workspace that contains an eventstream named EventStream1. EventStream1 outputs events to a table in a lakehouse. You need to remove files that are older than seven days and are no…

The correct answer is A. VACUUM. To remove outdated and unused files from a Delta Lake table in a Lakehouse, specifically those older than a specified retention period, the VACUUM command is the appropriate choice.

Monitor and optimize an analytics solution

Question

You have a Fabric workspace that contains an eventstream named EventStream1. EventStream1 outputs events to a table in a lakehouse. You need to remove files that are older than seven days and are no longer in use. Which command should you run?

Options

  • AVACUUM
  • BCOMPUTE
  • COPTIMIZE
  • DCLONE

How the community answered

(36 responses)
  • A
    89% (32)
  • B
    3% (1)
  • C
    6% (2)
  • D
    3% (1)

Why each option

To remove outdated and unused files from a Delta Lake table in a Lakehouse, specifically those older than a specified retention period, the VACUUM command is the appropriate choice.

AVACUUMCorrect

The VACUUM command is used in Delta Lake to remove data files that are no longer referenced by the table's current or specified versions and are older than the retention threshold. This action helps reclaim storage space and improve query performance by cleaning up stale files.

BCOMPUTE

COMPUTE is not a standard Delta Lake command for file removal; it is typically associated with general data processing or transformation.

COPTIMIZE

OPTIMIZE is used to compact small files into larger ones to improve query performance but does not remove old, unreferenced files.

DCLONE

CLONE creates a copy of a table at a specific version and is not used for removing old files.

Concept tested: Delta Lake VACUUM command for data retention

Source: https://learn.microsoft.com/en-us/azure/databricks/delta/vacuum

Topics

#Lakehouse#Delta Lake#Data maintenance#VACUUM command

Community Discussion

No community discussion yet for this question.

Full DP-700 Practice