Soru

Zorluk: OrtaImplement Azure Blob Storage Lifecycle Management and Retention Policies

An organization stores system logs in a Standard General Purpose v2 (GPv2) storage account. You are reviewing the following Azure Blob Storage lifecycle management policy:

{
"rules": [
{
"enabled": true,
"name": "log-retention-policy",
"type": "Lifecycle",
"definition": {
"actions": {
"baseBlob": {
"tierToCool": {
"daysAfterModificationGreaterThan": 30
},
"tierToArchive": {
"daysAfterModificationGreaterThan": 90
},
"delete": {
"daysAfterModificationGreaterThan": 180
}
}
},
"filters": {
"blobTypes": [ "blockBlob" ],
"prefixMatch": [ "logs/system-" ],
"blobIndexMatch": [
{
"name": "Environment",
"op": "==",
"value": "Production"
}
]
}
}
}
]
}

Which two of the following statements regarding the behavior and execution of this policy are true?

  1. The policy rule runs automatically once every 24 hours to transition and delete blobs that match the filter criteria.Cevap
  2. Only block blobs with index tags matching the exact case of key 'Environment' and value 'Production' are processed by this rule.Cevap
  3. C
    If a matching blob has an active write lease, the lifecycle management policy will fail to transition or delete that blob until the lease is broken or expires.
  4. D
    A Shared Access Signature (SAS) token with write and delete permissions must be generated and associated with the policy for the rules to execute.

Cevap

The policy rule runs automatically once every 24 hours to transition and delete matching blobs, and only block blobs with index tags matching the exact case of key 'Environment' and value 'Production' are processed.
The correct options are that the policy runs automatically once every 24 hours and that blob index tags are case-sensitive. Lifecycle management is a scheduled platform service running once a day, and the tag filters require exact casing match (e.g., 'Environment' and 'Production').

Adım Adım Çözüm

1
Evaluate the execution schedule of lifecycle management policies.
The policies are run automatically by the Azure platform once every 24 hours.
This is a platform-scheduled job and does not run continuously or instantly upon blob modification.
2
Analyze the case-sensitivity of the blob index tags filter.
Blob index tags are case-sensitive, so the policy will only match tags that exactly match 'Environment' and 'Production'.
Casing mismatch prevents the filter from evaluating to true.
3
Check the effect of active leases on lifecycle execution.
Active leases do not block platform-level lifecycle transitions or deletions.
Platform-initiated actions bypass client-held leases.
4
Determine authorization requirements.
No SAS token is required for native platform policies.
Azure manages the execution context internally.

Anahtar Kavram

Azure Blob Storage Lifecycle Management Execution and Filter Rules
Bu soruyu puanla