0
0
Azurecloud~10 mins

Storage tiers (Hot, Cool, Archive) in Azure - Step-by-Step Execution

Choose your learning style9 modes available
Process Flow - Storage tiers (Hot, Cool, Archive)
Data arrives
Choose storage tier
Hot
Fast access
Higher cost
Data stored accordingly
Data is stored in one of three tiers based on how often it is accessed: Hot for frequent use, Cool for less frequent, and Archive for rare access.
Execution Sample
Azure
storageTier = 'Hot'
if dataAccessFrequency == 'daily':
  storageTier = 'Hot'
elif dataAccessFrequency in ['weekly', 'monthly']:
  storageTier = 'Cool'
else:
  storageTier = 'Archive'
This code decides which storage tier to use based on data access frequency, grouping weekly and monthly as 'Cool'.
Process Table
StepData Access FrequencyCondition CheckedStorage Tier SetCost Implication
1DailydataAccessFrequency == 'daily'? YesHotHigher cost, fastest access
2Weeklydaily? No; weekly/monthly? YesCoolLower cost, slower access
3Yearlydaily? No; weekly/monthly? NoArchiveLowest cost, slowest access
4Monthlydaily? No; weekly/monthly? YesCoolLower cost, slower access
5Neverdaily? No; weekly/monthly? NoArchiveLowest cost, slowest access
💡 Storage tier chosen based on access frequency conditions.
Status Tracker
VariableStartAfter Step 1After Step 2After Step 3After Step 4After Step 5
storageTierundefinedHotCoolArchiveCoolArchive
dataAccessFrequencyundefinedDailyWeeklyYearlyMonthlyNever
Key Moments - 2 Insights
Why is 'Cool' tier chosen for monthly access instead of 'Hot'?
Because the condition checks if access is daily first; monthly access fails daily check but passes weekly/monthly check, so 'Cool' tier is selected as shown in execution_table row 4.
Why does 'Archive' tier have the lowest cost but slowest access?
'Archive' is designed for rarely accessed data, so it stores data cheaply but retrieval takes longer, as indicated in the cost implication column of execution_table rows 3 and 5.
Visual Quiz - 3 Questions
Test your understanding
Look at the execution_table, what storage tier is set when data is accessed weekly?
ACool
BArchive
CHot
DNone
💡 Hint
Check row 2 in execution_table where data access frequency is Weekly.
At which step does the condition for weekly/monthly become true for monthly access?
AStep 1
BStep 2
CStep 4
DStep 3
💡 Hint
Look at execution_table rows where monthly access is checked and condition is true.
If data access changes from yearly to daily, how does storageTier change according to variable_tracker?
AFrom Cool to Archive
BFrom Archive to Hot
CFrom Hot to Cool
DNo change
💡 Hint
Compare storageTier values for Yearly and Daily in variable_tracker.
Concept Snapshot
Storage tiers in Azure:
- Hot: frequent access, highest cost, fastest
- Cool: infrequent access (weekly/monthly), lower cost, slower
- Archive: rare access, lowest cost, slowest
Choose tier based on data access frequency
Switch tiers to optimize cost and performance
Full Transcript
This lesson shows how Azure storage tiers work by choosing Hot, Cool, or Archive based on how often data is accessed. Hot tier is for daily access with higher cost but fast retrieval. Cool tier is for weekly or monthly access with lower cost and slower retrieval. Archive tier is for rarely accessed data with lowest cost but slowest retrieval. The execution table traces decisions step-by-step for different access frequencies. Variable tracker shows how storageTier changes with dataAccessFrequency. Key moments clarify why monthly access uses Cool tier and why Archive is cheapest but slowest. The quiz tests understanding of tier selection and condition checks.