Soru

Zorluk: OrtaImplement Azure Blob Storage Lifecycle Management and Retention Policies

An organization uses a Standard General Purpose v2 (GPv2) storage account to store telemetry data. You need to configure an Azure Blob Storage lifecycle management policy. The policy must move all block blobs in the `telemetry` container to the Archive tier if they have not been modified for more than 9090 days. Additionally, the policy must only apply to blobs that have a blob index tag named `Project` with a value of `Alpha`.

Which JSON policy definition should you use?

  1. {
    "rules": [
    {
    "enabled": true,
    "name": "ArchiveTelemetry",
    "type": "Lifecycle",
    "definition": {
    "actions": {
    "baseBlob": {
    "tierToArchive": {
    "daysAfterModificationGreaterThan": 90
    }
    }
    },
    "filters": {
    "blobTypes": [ "blockBlob" ],
    "prefixMatch": [ "telemetry/" ],
    "blobIndexMatch": [
    {
    "name": "Project",
    "op": "==",
    "value": "Alpha"
    }
    ]
    }
    }
    }
    ]
    }
    Cevap
  2. B
    {
    "rules": [
    {
    "enabled": true,
    "name": "ArchiveTelemetry",
    "type": "Lifecycle",
    "definition": {
    "actions": {
    "baseBlob": {
    "tierToArchive": {
    "daysAfterModificationGreaterThan": 90
    }
    }
    },
    "filters": {
    "blobTypes": [ "blockBlob" ],
    "prefixMatch": [ "telemetry/" ],
    "blobIndexMatch": [
    {
    "name": "project",
    "op": "==",
    "value": "alpha"
    }
    ]
    }
    }
    }
    ]
    }
  3. C
    {
    "rules": [
    {
    "enabled": true,
    "name": "ArchiveTelemetry",
    "type": "Lifecycle",
    "definition": {
    "actions": {
    "baseBlob": {
    "tierToArchive": {
    "daysAfterModificationGreaterThan": 90
    }
    }
    },
    "filters": {
    "blobTypes": [ "blockBlob" ],
    "prefixMatch": [ "telemetry/" ],
    "blobIndexMatch": [
    {
    "name": "Project",
    "op": "==",
    "value": "Alpha"
    }
    ]
    },
    "security": {
    "authorization": "SasToken",
    "sasToken": "?sv=2025-04-08&ss=b&srt=o&sp=rwd"
    }
    }
    }
    ]
    }
  4. D
    {
    "rules": [
    {
    "enabled": true,
    "name": "ArchiveTelemetry",
    "type": "Lifecycle",
    "definition": {
    "actions": {
    "baseBlob": {
    "tierToArchive": {
    "daysAfterModificationGreaterThan": 90,
    "ignoreActiveLease": true
    }
    }
    },
    "filters": {
    "blobTypes": [ "blockBlob" ],
    "prefixMatch": [ "telemetry/" ],
    "blobIndexMatch": [
    {
    "name": "Project",
    "op": "==",
    "value": "Alpha"
    }
    ]
    }
    }
    }
    ]
    }

Cevap

The correct policy definition contains the action tierToArchive with daysAfterModificationGreaterThan set to 90, matches block blobs within the telemetry container, and configures the case-sensitive blobIndexMatch filter matching Project with Alpha.
The correct JSON policy uses the proper actions and filters block layout. It maps the daysAfterModificationGreaterThan parameter to 90 days, targets the block blobs in the telemetry container, and strictly adheres to the case-sensitive blob index tag filter parameters.

Adım Adım Çözüm

1
Identify the target action and condition.
The action is to archive blobs (tierToArchive) and the condition is modification time older than 90 days (daysAfterModificationGreaterThan set to 90).
This matches the storage tiering requirements for GPv2 storage accounts.
2
Establish the filters for target container and blob index tags.
The prefix filter points to telemetry/ and the blobIndexMatch filter specifies name as Project and value as Alpha.
Blob index tags are case-sensitive, so the exact casing specified in the scenario must be preserved in the policy JSON.
3
Ensure the JSON schema conforms to Azure Storage requirements.
The policy should only contain valid properties defined in the Azure Lifecycle Management schema, excluding any credentials or unsupported lease parameters.
Adding unauthorized blocks or unknown keys like ignoreActiveLease causes schema validation errors.

Anahtar Kavram

Azure Blob Storage Lifecycle Management policy definition with blob index tag filtering.
Bu soruyu puanla