Interview Prep/Azure/Storage, Key Vault and Monitoring

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
Azure All Azure questions Roadmap: Azure core services

More on Storage, Key Vault and Monitoring