Soru

Zorluk: KolayImplement Azure Blob Storage Lifecycle Management and Retention Policies

You have a Standard General Purpose v2 (GPv2) storage account. You need to implement an Azure Blob Storage lifecycle management policy to automatically move block blobs to the Cool tier after 3030 days have elapsed since their last modification.

Which of the following JSON fragments contains the correct action and property names to achieve this?

  1. "actions": { "baseBlob": { "tierToCool": { "daysAfterModificationGreaterThan": 30 } } }Cevap
  2. B
    "actions": { "baseBlob": { "tiertocool": { "daysAfterModificationGreaterThan": 30 } } }
  3. C
    "actions": { "baseBlob": { "tierToCool": { "daysAfterLastModified": 30 } } }
  4. D
    "actions": { "baseBlob": { "tierToArchive": { "daysAfterModificationGreaterThan": 30 } } }

Cevap

The correct option is the one defining the action as 'tierToCool' and the property as 'daysAfterModificationGreaterThan' set to 3030.
The correct option specifies 'tierToCool' for moving the blob to the Cool tier and uses the correct schema property 'daysAfterModificationGreaterThan' to measure the age of the blob since its last modification.

Adım Adım Çözüm

1
Identify the target storage tier action
The requirement specifies moving the blobs to the Cool tier, which maps to the 'tierToCool' action in the policy schema.
Choosing the correct destination tier ensures compliance with the storage tiering requirements.
2
Identify the correct parameter to track time since modification
The Azure Blob Storage lifecycle policy uses 'daysAfterModificationGreaterThan' to evaluate the age of a blob based on its last modified timestamp.
Using non-standard properties like 'daysAfterLastModified' results in an invalid JSON schema validation error when uploading the policy.
3
Validate casing and syntax
Ensure camelCase is preserved for 'tierToCool' and 'daysAfterModificationGreaterThan'.
Azure Resource Manager (ARM) and Azure Storage APIs enforce strict case-sensitivity on policy actions.

Anahtar Kavram

Azure Blob Storage Lifecycle Management Policy Schema Rules
Tahmini Süre:45s
Bu soruyu puanla