Complete the code to set the storage account's access tier to hot.
az storage account update --name myStorageAccount --resource-group myResourceGroup --access-tier [1]The --access-tier parameter sets the storage tier. 'hot' is for frequently accessed data.
Complete the code to create a lifecycle management rule that moves blobs to the cool tier after 30 days.
az storage account management-policy create --account-name myStorageAccount --resource-group myResourceGroup --policy '{"rules": [{"name": "moveToCool", "enabled": true, "type": "Lifecycle", "definition": {"actions": {"baseBlob": {"tierToCool": {"daysAfterModificationGreaterThan": [1], "filters": {"blobTypes": ["blockBlob"]}}}]}'
The rule moves blobs to the cool tier after 30 days of no modification.
Fix the error in the lifecycle policy JSON to correctly archive blobs after 180 days.
"actions": {"baseBlob": {"tierToArchive": {"daysAfterModificationGreaterThan": [1]
Archiving blobs after 180 days is the correct setting for long-term storage.
Fill both blanks to define a lifecycle rule that deletes blobs after 365 days and moves them to archive after 180 days.
"actions": {"baseBlob": {"tierToArchive": {"daysAfterModificationGreaterThan": [1], "delete": {"daysAfterModificationGreaterThan": [2]
The rule moves blobs to archive after 180 days and deletes them after 365 days.
Fill all three blanks to create a lifecycle policy that moves blobs to cool after 30 days, archive after 90 days, and deletes after 365 days.
"actions": {"baseBlob": {"tierToCool": {"daysAfterModificationGreaterThan": [1], "tierToArchive": {"daysAfterModificationGreaterThan": [2], "delete": {"daysAfterModificationGreaterThan": [3]
The lifecycle policy moves blobs to cool after 30 days, archive after 90 days, and deletes after 365 days.