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?
- A.{"baseBlob":{"tierToCool":{"daysAfterModificationGreaterThan":30},"tierToArchive":{"daysAfterModificationGreaterThan":90},"delete":{"daysAfterModificationGreaterThan":365}}}Correct answer
- B.{"baseBlob":{"tierToCool":{"daysAfterModificationGreaterThan":90},"tierToArchive":{"daysAfterModificationGreaterThan":30},"delete":{"daysAfterModificationGreaterThan":365}}}
- C.{"baseBlob":{"tierToCool":{"daysAfterModificationGreaterThan":30},"tierToArchive":{"daysAfterModificationGreaterThan":365},"delete":{"daysAfterModificationGreaterThan":90}}}
- 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
- A compliance application stores audit blobs that are rarely accessed. The organization must retain them for seven years and can wait severa…
- A .NET application acquires a 30-second lease on an existing block blob and receives leaseId. Another client must not update or delete the…
- A customer-support application must download a blob within seconds, but the blob is currently stored in the Archive tier. What should the a…
- A storage account must move blobs to the Cool tier after they have not been accessed for 14 days. The lifecycle policy should use the time…
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 freeFree to start · No credit card needed