Skip to main content
  1. Public practice questions
  2. AZ-104 Practice Exams | Azure Administrator Associate
  3. AZ-104 Practice Exam 15

Question 43 — AZ-104 Practice Exam 15

You manage a GPv2 storage account holding millions of objects. Compliance requires that marketing assets under the prefix images/ stay online but shift to a cooler tier after 30 days of no access and to an offline tier after 180 days, while previous versions older than 90 days must be removed. The policy must not touch temp/ data. Which configurations satisfy the requirements? (Select three answers)

  1. Use an If condition with More than (days ago) = 30 based on last access/modify and a Then action to Move to Cool for blobs under the images/ prefix.

  2. Add a second rule with More than (days ago) = 180 and a Then action to Move to Archive for the same images/ prefix.

  3. Configure a rule action to Delete previous versions when More than (days ago) = 90.

  4. Apply the policy at the account level with no filters so it also includes temp/ data.

  5. Switch the account to GPv1 to enable version pruning features.

Correct answers

  1. Use an If condition with More than (days ago) = 30 based on last access/modify and a Then action to Move to Cool for blobs under the images/ prefix.

  2. Add a second rule with More than (days ago) = 180 and a Then action to Move to Archive for the same images/ prefix.

  3. Configure a rule action to Delete previous versions when More than (days ago) = 90.

Explanations

Correct:
Use an If condition with More than (days ago) = 30… Move to Cool for images/. The If/Then model with prefix filtering transitions only the targeted objects after 30 days of inactivity.
Add a second rule with More than (days ago) = 180… Move to Archive. Archive is the offline tier; a separate rule handles the later transition.
Configure a rule action to Delete previous versions at 90 days. Lifecycle rules can delete previous versions at a different age than current versions.

Wrong:
Apply the policy at the account level with no filters… This would include temp/, violating the requirement to exclude it. Use a prefix or tag filter.
Switch the account to GPv1… Lifecycle management is supported for GPv2 and Blob Storage accounts, not GPv1.