Azure Blob Lifecycle Policy Practice: What Happens to This Blob?

Unlimited Azure Blob lifecycle management practice. Each problem gives one blob and a lifecycle policy with two rules: tap what the next policy run does to the blob, then the early deletion charge. A wrong answer names the slip, such as running the first action listed instead of the least expensive.

1. What the next run does

2. Early deletion charge

How the policy decides

Blobs, paths and rule names are invented. Every account is general-purpose v2 with last access time tracking on, and soft delete and versioning off. Each problem is the next run after the policy took effect, which can take up to 24 hours.

Azure exam prep

Blob lifecycle management, storage tiers and storage redundancy are all in the AZ-104 study guide. Start with the free real exam questions, then get the full pack.

Microsoft AZ-104606 real exam questions · US$39
Free: 144 questionsGet the full pack

Lifecycle policy FAQ

Which action runs when more than one is due?

The least expensive one. Microsoft's example: a delete action is cheaper than tierToArchive, and tierToArchive is cheaper than tierToCool. A blob 100 days past its last change, under a rule that cools after 30 days and archives after 90, is archived.

Does a prefix need the container name?

Yes. A prefix must start with a container name, such as sample-container/blob1. Without a trailing slash, container1 matches every container whose name starts with container1, such as container11; container1/ matches only the container named container1.

Can a prefix use * or ? as a wildcard?

No. Prefixes don't support wildcards: * and ? are treated as plain characters, and prefix matching is case-sensitive.

Is a blob modified exactly 30 days ago moved by daysAfterModificationGreaterThan 30?

No. An action can run only when the number of days exceeds the number in the condition, so it needs more than 30 days.

Why are blobs not archived in a ZRS account?

The archive tier isn't supported for ZRS, GZRS or RA-GZRS accounts, so tierToArchive can't run there. Only LRS, GRS and RA-GRS accounts support moving blobs to archive.

Can a lifecycle policy tier append or page blobs?

No. Tiering is allowed only on block blobs. A rule can delete an append blob, but blobTypes takes only blockBlob or appendBlob, so no rule matches a page blob.

How is the early deletion charge worked out?

Leaving Cool before 30 days, Cold before 90 or Archive before 180, by deleting or moving the blob, is charged for the days still missing. A blob deleted after 21 days in Cool is charged 9 days; one moved out of Archive after 45 days is charged 135.

Can a lifecycle policy move an archived blob back to Hot or Cool?

No. You can't rehydrate an archived blob to an online tier by using lifecycle management policies.

How soon does a new or changed policy run?

It can take up to 24 hours for the changes to go into effect and for the first run to start.

Is this on the AZ-104 exam?

Yes. The AZ-104 study guide lists "Configure blob lifecycle management", "Configure storage tiers" and "Configure Azure Storage redundancy" under Implement and manage storage.

What does this drill leave out?

Blob index tag filters, versions and snapshots, hierarchical namespace, premium accounts, encryption scopes, immutable containers, enableAutoTierToHotFromCool and daysAfterLastTierChangeGreaterThan.

Sources
  • Microsoft Learn, Lifecycle management policy structure: rules can be disabled; filters are ANDed and only include; blobTypes is blockBlob or appendBlob; a prefix must start with a container name, is case-sensitive and has no wildcards; which actions each blob type and account supports; the least expensive action wins; an action can run when the days exceed the condition, counted from the last modified, creation or last access time.
  • Access tiers for blob data: the 30, 90 and 180 day minimums of Cool, Cold and Archive on general-purpose v2 accounts, the prorated early deletion charge and its two examples (9 days and 135 days), archive only on LRS, GRS and RA-GRS, and no rehydration by lifecycle policies.
  • Lifecycle management policy FAQ: container1 with and without a trailing slash, * and ? as plain characters, case-sensitive matching.
  • Lifecycle management overview, Policies that transition blobs between tiers and Policies that delete blobs: up to 24 hours to take effect, tiering only on block blobs, and the aging, archive after ingest and 365 day expiry examples. The drill's tests reproduce them.
  • Exam AZ-104 study guide (skills measured as of October 26, 2023): "Configure blob lifecycle management", "Configure storage tiers" and "Configure Azure Storage redundancy".
  • Checked 22 November 2026. The tool's own approach: two rules with one prefix and two baseBlob actions each; the least expensive action wins across both rules; tierToCold is never due next to another action, because the pages don't place it in the cost order; an action that can't run is only shown where the action that runs is cheaper. An independent re-solver agreed with the drill on 6,000 generated problems.

Checked 22 November 2026 against the Azure Blob Storage lifecycle management and access tier pages and the AZ-104 study guide on Microsoft Learn.

More free tools

All free tools