AZ-104 Question 105
Select 2Your organization uses an Azure file share named 'SharedDocs' to store important documents. You need to ensure that accidentally deleted files can be recovered within 14 days, and any snapshots older than 30 days are automatically removed. Which two actions should you take to meet these requirements?
- A
Enable soft delete for file shares in the storage account and set the retention period to 14 days
- B
Configure a daily snapshot schedule with a 30-day retention policy in the file share settings
- C
Enable soft delete for blob containers with a 14-day retention period
- D
Create a new file share in a different storage account with default redundancy
Show answer and explanation
Correct answers: A, B
Explanation
To protect Azure file shares from accidental deletions, you must configure soft delete for file shares and set an appropriate retention period. Additionally, scheduling snapshots and defining a retention policy ensures that older snapshots are automatically removed, meeting both the recovery and retention requirements.
- A. Correct.
Enabling soft delete for file shares with a 14-day retention period ensures that deleted files can be recovered within that timeframe.
- B. Correct.
Configuring a snapshot schedule with a 30-day retention policy ensures you have consistent restore points, automatically removing older snapshots after 30 days.
- C. Incorrect.
Soft delete for blob containers does not apply to Azure file shares; it only protects blob data.
- D. Incorrect.
Creating a new file share with default redundancy does not address the requirements for snapshot retention or the ability to recover deleted files within a set period.