
Answer-first summary for fast verification
Answer: Configure a lifecycle management policy for the storage account to automatically delete files that exceed the retention period.
Option D is the correct answer. Configuring a lifecycle management policy for the storage account allows you to automatically delete files that exceed the retention period, ensuring that the data retention policy is enforced. Option A is incorrect because moving files to a separate storage account does not enforce the retention policy. Option B is incorrect because it requires manual intervention and does not provide a real-time solution. Option C is incorrect because while Azure Event Grid can be used for event-driven scenarios, it does not provide a direct mechanism for enforcing data retention policies.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You are responsible for implementing a data retention policy for a large dataset stored in Azure Data Lake Storage Gen2. Which of the following approaches should you use to enforce the retention policy?
A
Use Azure Data Factory to periodically move older files to a separate storage account based on their age.
B
Implement a custom script that periodically scans the files and moves the ones that exceed the retention period to a separate folder for deletion.
C
Use Azure Event Grid to trigger a custom function that deletes the files that exceed the retention period.
D
Configure a lifecycle management policy for the storage account to automatically delete files that exceed the retention period.
No comments yet.