Explain blob access tiers and lifecycle management.
IntermediateConceptStorage, Key Vault and Monitoring
Answer
Tiers: Hot (frequent access), Cool (30-day minimum), Cold (90-day minimum), Archive (180-day minimum, offline; rehydration takes hours). Lower tiers: cheaper storage, more expensive reads and early-deletion charges.
Lifecycle policies move or delete blobs automatically:
{"rules":[{"name":"logs","enabled":true,"type":"Lifecycle","definition":{
"filters":{"blobTypes":["blockBlob"],"prefixMatch":["logs/"]},
"actions":{"baseBlob":{"tierToCool":{"daysAfterModificationGreaterThan":30},
"tierToArchive":{"daysAfterModificationGreaterThan":90},
"delete":{"daysAfterModificationGreaterThan":365}}}}}]}
az storage account management-policy create --account-name stshoplogs -g rg --policy @policy.json
More on Storage, Key Vault and Monitoring
What types of storage accounts and services exist?BeginnerWhat are the storage redundancy options?BeginnerWhat is a SAS token and what are the types?IntermediateHow do you lock down a storage account?IntermediateWhat protects blobs from accidental deletion?IntermediateWhat is Azure Key Vault and what does it store?Beginner