- A
DESCRIBE HISTORY delta_table;
Why wrong: DESCRIBE HISTORY only shows the table's version history, it does not clean up old files.
- B
VACUUM delta_table RETAIN 30 HOURS;
VACUUM is the right command, but the retention parameter must be set to 30 DAYS, not 30 HOURS, to fulfill the 30-day requirement.
- C
OPTIMIZE delta_table;
Why wrong: OPTIMIZE compacts small files into larger ones but does not delete old versions.
- D
FSCK REPAIR TABLE delta_table;
Why wrong: FSCK REPAIR TABLE recovers metadata inconsistencies but does not affect file retention for time travel.
DP-203 VACUUM Practice Question
This DP-203 practice question tests your understanding of monitor and optimize data storage and processing. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. A key principle to apply: vACUUM. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
Your team uses Azure Databricks with Delta Lake for ETL. You notice that the Delta table's version history is growing rapidly, and query performance is degrading. You want to retain the ability to time travel for the last 30 days. Which Delta Lake command should you run?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
VACUUM delta_table RETAIN 30 HOURS;
None of the provided options is correct for retaining time travel capability for 30 days. The correct Delta Lake command is `VACUUM delta_table RETAIN 30 DAYS`. Option B incorrectly specifies `30 HOURS`, which retains only 30 hours. DESCRIBE HISTORY, OPTIMIZE, and FSCK REPAIR TABLE do not remove old versions to free space.
Key principle: VACUUM
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
DESCRIBE HISTORY delta_table;
Why it's wrong here
DESCRIBE HISTORY only shows the table's version history, it does not clean up old files.
- ✓
VACUUM delta_table RETAIN 30 HOURS;
Why this is correct
VACUUM is the right command, but the retention parameter must be set to 30 DAYS, not 30 HOURS, to fulfill the 30-day requirement.
Related concept
VACUUM
- ✗
OPTIMIZE delta_table;
Why it's wrong here
OPTIMIZE compacts small files into larger ones but does not delete old versions.
- ✗
FSCK REPAIR TABLE delta_table;
Why it's wrong here
FSCK REPAIR TABLE recovers metadata inconsistencies but does not affect file retention for time travel.
Common exam traps
Common exam trap: answer the scenario, not the keyword
Candidates often confuse VACUUM's retention parameter with days instead of hours, or mistakenly think OPTIMIZE removes old versions when it only compacts files.
Trap categories for this question
Command / output trap
DESCRIBE HISTORY only shows the table's version history, it does not clean up old files.
Detailed technical explanation
How to think about this question
Under the hood, VACUUM uses the Delta transaction log to identify files that are no longer referenced by any table version within the retention window, then deletes them from the underlying file system (e.g., ADLS Gen2 or S3). A subtle behavior is that VACUUM by default retains 7 days (168 hours), so specifying 30 HOURS (not days) is a deliberate trap—candidates must carefully read the unit. In real-world scenarios, if you set retention too low (e.g., 0 hours), you lose time travel capability entirely, which can break audit or rollback requirements.
KKey Concepts to Remember
- VACUUM
- Time Travel
TExam Day Tips
- Watch for words such as best, first, most likely and least administrative effort.
- Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
VACUUM
Real-world example
How this comes up in practice
A cloud solutions architect for a retail company is evaluating services for a new workload. The correct answer here reflects best practice for the specific scenario described — not a general cloud recommendation. VACUUM Cloud exam questions reward reading the constraint carefully: the same technology can be right or wrong depending on the use case.
What to study next
Got this wrong? Here's your next step.
Review vACUUM, then practise related DP-203 questions on the same topic to reinforce the concept.
- →
Monitor and optimize data storage and processing — study guide chapter
Learn the concepts, then practise the questions
- →
Monitor and optimize data storage and processing practice questions
Targeted practice on this topic area only
- →
All DP-203 questions
851 questions across all exam domains
- →
Microsoft Azure Data Engineer Associate DP-203 study guide
Full concept coverage aligned to exam objectives
- →
DP-203 practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related DP-203 practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Secure, monitor, and optimize data storage and data processing practice questions
Practise DP-203 questions linked to Secure, monitor, and optimize data storage and data processing.
Design and develop data processing practice questions
Practise DP-203 questions linked to Design and develop data processing.
Design and implement data security practice questions
Practise DP-203 questions linked to Design and implement data security.
Monitor and optimize data storage and processing practice questions
Practise DP-203 questions linked to Monitor and optimize data storage and processing.
Design and implement data storage practice questions
Practise DP-203 questions linked to Design and implement data storage.
Develop data processing practice questions
Practise DP-203 questions linked to Develop data processing.
DP-203 fundamentals practice questions
Practise DP-203 questions linked to DP-203 fundamentals.
DP-203 scenario practice questions
Practise DP-203 questions linked to DP-203 scenario.
DP-203 troubleshooting practice questions
Practise DP-203 questions linked to DP-203 troubleshooting.
Practice this exam
Start a free DP-203 practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this DP-203 question test?
Monitor and optimize data storage and processing — This question tests Monitor and optimize data storage and processing — VACUUM.
What is the correct answer to this question?
The correct answer is: VACUUM delta_table RETAIN 30 HOURS; — None of the provided options is correct for retaining time travel capability for 30 days. The correct Delta Lake command is `VACUUM delta_table RETAIN 30 DAYS`. Option B incorrectly specifies `30 HOURS`, which retains only 30 hours. DESCRIBE HISTORY, OPTIMIZE, and FSCK REPAIR TABLE do not remove old versions to free space.
What should I do if I get this DP-203 question wrong?
Review vACUUM, then practise related DP-203 questions on the same topic to reinforce the concept.
What is the key concept behind this question?
VACUUM
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Keep practising
More DP-203 practice questions
- You are designing a data storage solution for IoT sensor data. The data is written thousands of times per second and req…
- A data processing job in Azure Synapse Analytics writes results to a table in the dedicated SQL pool. After a failure, t…
- A multinational corporation uses Azure Data Lake Storage Gen2 to store petabytes of parquet files partitioned by date an…
- A company ingests streaming data from IoT devices into Azure Event Hubs. The data must be processed in near real-time to…
- Which THREE factors should be considered when choosing between Azure Stream Analytics and Azure Databricks for a real-ti…
- You are designing a data lake on Azure Data Lake Storage Gen2. The data will be used by both batch processing (Spark) an…
Last reviewed: Jun 11, 2026
This DP-203 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the DP-203 exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.