What if your data could organize itself to save you money and time without you lifting a finger?
Why Storage tiers (Hot, Cool, Archive) in Azure? - Purpose & Use Cases
Imagine you have a huge photo album stored on your computer. Some photos you look at every day, some only once in a while, and some you just want to keep safe but never really see. You try to keep all these photos in the same folder, using the same space and speed for all.
Storing all files the same way means you pay the same price and wait the same time to open a file, even if you rarely use it. This wastes money and slows down your work. Manually moving files between different storage types is confusing and easy to forget.
Storage tiers like Hot, Cool, and Archive automatically organize your files based on how often you use them. Hot is for daily use, Cool for occasional access, and Archive for long-term storage. This saves money and keeps your files ready when you need them.
Store all files in one folder, pay same cost and speed for all
Use Hot tier for daily files, Cool for rare files, Archive for long-term files
You can save money and speed up access by storing data in the right place based on how often you use it.
A company keeps customer support files in Hot storage for quick access, old invoices in Cool storage, and yearly backups in Archive storage to save costs.
Manual storage wastes money and time.
Storage tiers organize data by usage frequency.
This leads to cost savings and better performance.
Practice
Solution
Step 1: Understand storage tier purposes
The Hot tier is designed for data that is accessed often and requires fast retrieval.Step 2: Compare with other tiers
Cool tier is for infrequent access, Archive is for rarely accessed data, and Premium is a performance option but not a tier for access frequency.Final Answer:
Hot tier -> Option DQuick Check:
Frequent access = Hot tier [OK]
- Confusing Cool tier with Hot tier
- Thinking Archive tier is for frequent access
- Assuming Premium tier is a storage access tier
Solution
Step 1: Identify correct command for blob tier
The command to set a blob's tier isaz storage blob set-tier.Step 2: Choose correct tier parameter
To set the Archive tier, use--tier Archive. Setting tier on storage account level is invalid.Final Answer:
az storage blob set-tier --tier Archive -> Option CQuick Check:
Blob tier set with az storage blob set-tier [OK]
- Trying to set tier on storage account instead of blob
- Using wrong command like az storage blob update
- Confusing tier names or casing
{
"rules": [
{
"name": "moveToCool",
"type": "Lifecycle",
"definition": {
"actions": {
"baseBlob": {
"tierToCool": { "daysAfterModificationGreaterThan": 30 }
}
},
"filters": { "blobTypes": ["blockBlob"] }
}
}
]
}What happens to blobs older than 30 days?
Solution
Step 1: Analyze lifecycle rule action
The rule specifiestierToCoolfor blobs modified more than 30 days ago.Step 2: Understand effect on blobs
Blobs older than 30 days are automatically moved to the Cool tier to save cost.Final Answer:
They are moved to Cool tier -> Option BQuick Check:
30+ days old blobs -> Cool tier [OK]
- Assuming blobs move to Archive instead of Cool
- Thinking blobs are deleted by this rule
- Confusing tierToCool with tierToHot
Solution
Step 1: Recall Archive tier scope
Archive tier is applied per blob, not at the storage account level.Step 2: Understand error cause
Trying to set Archive tier on the whole account causes an error because it's unsupported.Final Answer:
Archive tier can only be set on individual blobs, not on the whole account -> Option AQuick Check:
Archive tier scope = per blob [OK]
- Thinking Archive tier needs special enablement
- Assuming Archive tier requires Premium account
- Confusing Archive tier with file share tiers
Solution
Step 1: Identify access frequency and cost needs
Videos are rarely accessed and cost minimization is priority, so Archive tier fits best.Step 2: Consider retrieval delay tolerance
Archive tier retrieval can take hours, which is acceptable here.Step 3: Evaluate other options
Hot tier is costly, Cool tier is more expensive than Archive, Premium is for performance, not cost saving.Final Answer:
Store videos directly in Archive tier -> Option AQuick Check:
Rare access + low cost = Archive tier [OK]
- Choosing Hot or Premium tier for rarely accessed data
- Using Cool tier without moving to Archive
- Ignoring retrieval delay tolerance
Ready to prove it?
Pass the test and this pattern moves unknown
