
Answer-first summary for fast verification
Answer: Configure a soft delete policy for the blobs to prevent accidental deletion and implement a custom script to permanently delete the blobs that exceed the retention period.
Option D is the correct answer. Configuring a soft delete policy for the blobs provides an additional layer of protection against accidental deletion. Implementing a custom script to permanently delete the blobs that exceed the retention period ensures that the data retention policy is enforced. Option A is incorrect because Azure Lifecycle Management is used for optimizing storage costs, not for enforcing data retention policies. 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.
No comments yet.
You are responsible for implementing a data retention policy for a large dataset stored in Azure Blob Storage. Which of the following approaches should you use to enforce the retention policy?
A
Use Azure Lifecycle Management to automatically move older blobs to a cooler storage tier based on their age.
B
Implement a custom script that periodically scans the blobs and moves the ones that exceed the retention period to a separate container for deletion.
C
Use Azure Event Grid to trigger a custom function that deletes the blobs that exceed the retention period.
D
Configure a soft delete policy for the blobs to prevent accidental deletion and implement a custom script to permanently delete the blobs that exceed the retention period.