Azure Blob Storage – Access Tiers, Lifecycle and Leases · AZ-204: Developing Solutions for Microsoft Azure Develop for Azure Storage

A storage account contains block blobs under the logs/ prefix. The requirement is to move each blob to Cool after 30 days since its last modification…

Practice question from Azure Blob Storage – Access Tiers, Lifecycle and Leases (AZ-204: Developing Solutions for Microsoft Azure Develop for Azure Storage), with the correct answer and a step-by-step solution.

medium · MCQ · Q-34289F

A storage account contains block blobs under the logs/ prefix. The requirement is to move each blob to Cool after 30 days since its last modification, move it to Archive after 90 days, and delete it after 365 days. Which lifecycle management policy action configuration satisfies the requirement?

  1. A.{"baseBlob":{"tierToCool":{"daysAfterModificationGreaterThan":30},"tierToArchive":{"daysAfterModificationGreaterThan":90},"delete":{"daysAfterModificationGreaterThan":365}}}Correct answer
  2. B.{"baseBlob":{"tierToCool":{"daysAfterModificationGreaterThan":90},"tierToArchive":{"daysAfterModificationGreaterThan":30},"delete":{"daysAfterModificationGreaterThan":365}}}
  3. C.{"baseBlob":{"tierToCool":{"daysAfterModificationGreaterThan":30},"tierToArchive":{"daysAfterModificationGreaterThan":365},"delete":{"daysAfterModificationGreaterThan":90}}}
  4. D.{"baseBlob":{"tierToCool":{"daysAfterModificationGreaterThan":30},"tierToArchive":{"daysAfterModificationGreaterThan":90}}}

Solution

Lifecycle actions use the number of days since the blob was last modified. The policy must specify Cool at 30 days, Archive at 90 days, and deletion at 365 days. In a complete policy, a filter would also restrict the rule to block blobs with the logs/ prefix.

More from Azure Blob Storage – Access Tiers, Lifecycle and Leases

All of Azure Blob Storage – Access Tiers, Lifecycle and Leases

Practise more Develop for Azure Storage

Sign up free for adaptive practice on this chapter, with instant feedback and hints on every question.

Start practising free

Free to start · No credit card needed