Jump into concepts and practice - no test required
or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Storage tier optimization
📖 Scenario: You work for a company that stores large amounts of data in Azure Blob Storage. To save costs, you want to organize your blobs into different storage tiers based on how often they are accessed.Azure Blob Storage offers three main tiers: Hot (frequently accessed), Cool (infrequently accessed), and Archive (rarely accessed). Your task is to create a configuration that assigns blobs to the correct tier.
🎯 Goal: Create an Azure Storage account configuration that defines three containers named hot-container, cool-container, and archive-container. Then, set the access tier for each container accordingly to optimize storage costs.
📋 What You'll Learn
Create three containers named hot-container, cool-container, and archive-container
Set the access tier of hot-container to Hot
Set the access tier of cool-container to Cool
Set the access tier of archive-container to Archive
💡 Why This Matters
🌍 Real World
Many companies store large amounts of data in the cloud and want to reduce costs by using storage tiers that match how often data is accessed.
💼 Career
Cloud engineers and DevOps professionals often configure storage accounts and containers with appropriate tiers to optimize costs and performance.
Progress0 / 4 steps
1
Create Azure Blob Storage containers
Create three Azure Blob Storage containers named hot-container, cool-container, and archive-container inside your storage account configuration.
Azure
Hint
Use azurerm_storage_container resource to create each container with the exact names.
2
Add storage account resource
Add an Azure Storage Account resource named example with Standard_LRS sku and StorageV2 kind. This will be the parent for your containers.
Azure
Hint
Use azurerm_storage_account resource with the exact name example and set the sku and kind as specified.
3
Set access tiers for containers
Set the access tier for hot-container to Hot, for cool-container to Cool, and for archive-container to Archive using the default_access_tier property in each container resource.
Azure
Hint
Add the default_access_tier property with the exact tier names to each container resource.
4
Add resource group configuration
Add an Azure Resource Group resource named example with location eastus. This resource group will contain your storage account.
Azure
Hint
Use azurerm_resource_group resource with the exact name example and location eastus.
Practice
(1/5)
1. Which Azure Storage tier is best for data that you access very often?
easy
A. Archive tier
B. Cool tier
C. Hot tier
D. Premium tier
Solution
Step 1: Understand storage tiers purpose
The Hot tier is designed for data accessed frequently, providing low latency and high throughput.
Step 2: Match access frequency to tier
Since the question asks for very often access, Hot tier fits best compared to Cool (infrequent) or Archive (rare).
Hint: Use 'az storage blob set-tier' to change tier [OK]
Common Mistakes:
Using incorrect command verbs like update-tier
Wrong parameter names like --container instead of --container-name
Mixing blob and container parameters
3. Given this Azure CLI command: az storage blob set-tier --tier Archive --container-name logs --name log1.txt --account-name mystorage What happens to the blob log1.txt after this command?
medium
A. Blob remains in Hot tier with no change
B. Blob is deleted permanently
C. Blob is copied to another container
D. Blob is moved to Archive tier and becomes offline until rehydrated
Solution
Step 1: Understand Archive tier behavior
Setting a blob to Archive tier moves it to a low-cost, offline storage. It cannot be read until rehydrated.
Step 2: Analyze command effect
The command sets the tier to Archive, so the blob becomes offline and inaccessible until restored.
Final Answer:
Blob is moved to Archive tier and becomes offline until rehydrated -> Option D
Quick Check:
Archive tier = offline storage [OK]
Hint: Archive tier blobs are offline until rehydrated [OK]
Common Mistakes:
Thinking Archive tier deletes the blob
Assuming blob stays accessible immediately
Confusing Archive with Hot tier
4. You run this command to change a blob's tier: az storage blob set-tier --tier Hot --container-name data --name file1.csv --account-name mystorage But you get an error saying the blob does not exist. What is the most likely cause?
medium
A. The blob name or container name is incorrect
B. The account name is invalid
C. The tier Hot is not supported
D. The Azure CLI is outdated
Solution
Step 1: Understand error meaning
An error stating the blob does not exist usually means the blob or container name is wrong or the blob was deleted.
Step 2: Check other options
Account name errors usually give different messages; Hot tier is valid; CLI outdated causes different errors.
Final Answer:
The blob name or container name is incorrect -> Option A
Quick Check:
Blob not found = wrong name [OK]
Hint: Check blob and container names first on 'not found' errors [OK]
Common Mistakes:
Assuming tier Hot is invalid
Blaming CLI version without checking names
Ignoring typo in blob or container names
5. You have a large dataset stored in Azure Blob Storage. You want to minimize costs but still access some data occasionally. Which tier strategy is best?
hard
A. Store frequently accessed data in Hot tier, infrequent in Cool, and rarely accessed in Archive
B. Store all data in Archive tier and never rehydrate
C. Store all data in Cool tier regardless of access frequency
D. Store all data in Hot tier for fastest access
Solution
Step 1: Understand tier cost and access trade-offs
Hot tier is expensive but fast, Cool is cheaper for infrequent access, Archive is cheapest but offline.
Step 2: Apply tier optimization best practice
Using Hot for frequent, Cool for infrequent, and Archive for rare access balances cost and performance.
Final Answer:
Store frequently accessed data in Hot tier, infrequent in Cool, and rarely accessed in Archive -> Option A
Quick Check:
Tier data by access frequency = Store frequently accessed data in Hot tier, infrequent in Cool, and rarely accessed in Archive [OK]
Hint: Match data access frequency to tier for cost savings [OK]