You are configuring a lifecycle management policy for a Standard General Purpose v2 (GPv2) storage account to automate data tiering for diagnostic logs. The logs are stored as block blobs.
You define the following JSON policy rule:
{
"rules": [
{
"enabled": true,
"name": "ArchiveAndCleanupLogs",
"type": "Lifecycle",
"definition": {
"actions": {
"baseBlob": {
"tierToArchive": {
"daysAfterModificationGreaterThan": 30
},
"delete": {
"daysAfterModificationGreaterThan": 90
}
}
},
"filters": {
"blobTypes": [
"blockBlob"
],
"prefixMatch": [
"logs/daily"
],
"blobIndexMatch": [
{
"name": "environment",
"op": "==",
"value": "production"
}
]
}
}
}
]
}
Which two of the following statements regarding the behavior, configuration, and execution of this policy are correct?
- Blobs with the tag key 'Environment' (with a capital 'E') set to 'production' will not be transitioned or deleted by this rule because blob index tag names and values are case-sensitive.Answer
- BIf a matching blob has an active lease, you must add a leaseId property inside the delete action block of the JSON policy to allow the platform to delete the leased blob.
- The Azure storage platform executes the lifecycle management policy once every hours to evaluate the blobs and execute the defined actions.Answer
- DTo authorize the execution of the lifecycle rules, you must append a Shared Access Signature (SAS) token with write and delete permissions to the prefixMatch container path.