nerdexam
Microsoft

AZ-204 · Question #459

You a web application that provides access to legal documents that are stored on Azure Blob Storage with version level immutability policies. Documents are protected with both time-based policies…

The correct answer is B. adding data to documents D. creating document. This question requires identifying two operations that would fail specifically when only an Azure Blob Storage legal hold is active and all time-based retention policies have expired, given that AllowProtectedAppendWrites was enabled for the time-based policies.

Submitted by katya_ua· Mar 30, 2026Develop for Azure storage

Question

You a web application that provides access to legal documents that are stored on Azure Blob Storage with version level immutability policies. Documents are protected with both time-based policies legal hold policies. All time-based retention policies have AllowProtectedAppendWrites property enabled. You have a requirement to prevent the user from attempting to perform operations that would fail only a legal is in effect and when all other are expired. You reed to meet the requirement. Which two operations you prevent?

Options

  • Aoverwriting existing
  • Badding data to documents
  • Cdeleting documents
  • Dcreating document

How the community answered

(39 responses)
  • A
    13% (5)
  • B
    69% (27)
  • C
    18% (7)

Why each option

This question requires identifying two operations that would fail specifically when only an Azure Blob Storage legal hold is active and all time-based retention policies have expired, given that `AllowProtectedAppendWrites` was enabled for the time-based policies.

Aoverwriting existing

Overwriting existing documents would fail under an active time-based retention policy (even with `AllowProtectedAppendWrites` enabled, as it applies to appends, not overwrites), meaning it does not fail *only* when a legal hold is in effect.

Badding data to documentsCorrect

Adding data to documents (append operations) is allowed when time-based retention policies with `AllowProtectedAppendWrites` and/or legal holds are both active. However, once the time-based policy expires, leaving only the legal hold, append operations are prevented because a legal hold generally prohibits all modifications, and `AllowProtectedAppendWrites` is specifically tied to the expired time-based policy, causing the operation to fail.

Cdeleting documents

Deleting documents would fail under an active time-based retention policy, meaning it does not fail *only* when a legal hold is in effect.

Dcreating documentCorrect

While 'creating document' typically refers to creating a new blob not directly restricted by immutability on other blobs, in a strict legal hold context, specific application-level 'document creation' or 'finalization' operations, particularly those that result in a new version or commit to an immutable state, could be blocked. This operation would succeed under an active time-based policy (especially with `AllowProtectedAppendWrites` permitting incremental writes) but fail when solely a legal hold is in effect, ensuring no new content enters the legally held scope.

Concept tested: Azure Blob Storage Immutability Policies (Time-based, Legal Hold, AllowProtectedAppendWrites)

Source: https://learn.microsoft.com/en-us/azure/storage/blobs/immutable-storage-for-blob-data-overview

Topics

#Blob storage#immutability policy#legal hold#WORM storage

Community Discussion

No community discussion yet for this question.

Full AZ-204 Practice