AZ-104 Question 111
Single answerYou manage an Azure Storage account with a container holding frequently updated transaction files. The business requires that each change to a blob be recoverable, even if a file is accidentally overwritten or deleted. Which action should you take to ensure that every modification creates a new version?
- A
Enable a hierarchical namespace for the storage account
- B
Enable blob versioning at the storage account level
- C
Create an access policy at the container level
- D
Configure a blob soft delete retention policy
Show answer and explanation
Correct answer: B
Explanation
To ensure each modification of a blob becomes a new version, you must enable blob versioning at the storage account level. While features like soft delete protect deleted blobs and a hierarchical namespace is useful for advanced data lake scenarios, they do not automatically version blobs upon modification.
- A. Incorrect.
Enabling a hierarchical namespace is primarily for Data Lake Storage Gen2 features, not for versioning existing blobs automatically.
- B. Correct.
Blob versioning must be explicitly enabled at the storage account level to ensure new versions are created whenever blobs are modified.
- C. Incorrect.
Creating an access policy can define permissions and expiration, but it does not handle versioning of blobs.
- D. Incorrect.
Soft delete protects deleted blobs, but it does not create versions when blobs are overwritten.