0
0
Azurecloud~30 mins

Storage tiers (Hot, Cool, Archive) in Azure - Mini Project: Build & Apply

Choose your learning style9 modes available
Storage tiers (Hot, Cool, Archive)
📖 Scenario: You work for a company that stores different types of files in Azure Blob Storage. Some files are accessed frequently, some less often, and some rarely. To save money, you want to organize these files into different storage tiers: Hot for frequent access, Cool for infrequent access, and Archive for rarely accessed files.
🎯 Goal: Create an Azure Storage account configuration that defines three containers, each using a different storage tier: Hot, Cool, and Archive. This setup will help the company optimize costs based on how often files are accessed.
📋 What You'll Learn
Create a dictionary called storage_containers with container names as keys and their storage tiers as values.
Add a variable called default_tier set to 'Hot' to use as a fallback tier.
Write a loop that creates a new dictionary container_settings with container names as keys and a dictionary of settings including the tier.
Add a final configuration dictionary called storage_account_config that includes the container_settings and a property account_tier set to 'Standard'.
💡 Why This Matters
🌍 Real World
Cloud storage costs vary by how often data is accessed. Using storage tiers helps companies save money by placing data in the right tier based on usage.
💼 Career
Cloud engineers and administrators often configure storage accounts with tiering to optimize costs and performance.
Progress0 / 4 steps
1
Create the initial storage containers dictionary
Create a dictionary called storage_containers with these exact entries: 'images': 'Hot', 'videos': 'Cool', 'archives': 'Archive'.
Azure
Need a hint?

Use curly braces to create a dictionary with the exact keys and values.

2
Add a default storage tier variable
Add a variable called default_tier and set it to the string 'Hot'.
Azure
Need a hint?

Just assign the string 'Hot' to the variable named default_tier.

3
Create container settings with tiers
Write a for loop using variables container and tier to iterate over storage_containers.items(). Inside the loop, add entries to a new dictionary called container_settings where each key is the container name and the value is a dictionary with a key 'tier' set to the tier value.
Azure
Need a hint?

Initialize an empty dictionary before the loop. Then add each container with its tier inside the loop.

4
Add final storage account configuration
Create a dictionary called storage_account_config with two keys: 'containers' set to container_settings and 'account_tier' set to the string 'Standard'.
Azure
Need a hint?

Use curly braces to create the dictionary with the exact keys and values.