0
0
Azurecloud~30 mins

Container services comparison in Azure - Mini Project: Build & Apply

Choose your learning style9 modes available
Container Services Comparison in Azure
📖 Scenario: You are working as a cloud engineer for a company that wants to understand different container services offered by Azure. They want a simple comparison of key features to decide which service fits their needs best.
🎯 Goal: Create a dictionary in Python that lists three Azure container services with their key features. Then add a configuration variable to select a service to focus on. Next, write code to extract the features of the selected service. Finally, add a summary line that prints the selected service and its features.
📋 What You'll Learn
Create a dictionary called azure_container_services with keys: 'Azure Container Instances', 'Azure Kubernetes Service', and 'Azure App Service for Containers'.
Each key should map to a list of exactly three features as strings.
Create a variable called selected_service and set it to 'Azure Kubernetes Service'.
Create a variable called features that extracts the features list of the selected_service from the dictionary.
Create a variable called summary that combines the selected_service name and its features into a single descriptive string.
💡 Why This Matters
🌍 Real World
Cloud engineers often compare container services to choose the best fit for application deployment and management.
💼 Career
Understanding container service features helps in designing scalable and maintainable cloud infrastructure.
Progress0 / 4 steps
1
Create the Azure container services dictionary
Create a dictionary called azure_container_services with these exact keys and values: 'Azure Container Instances' with features 'Serverless containers', 'Quick startup', 'No orchestration'; 'Azure Kubernetes Service' with features 'Managed Kubernetes', 'Scalable', 'Supports complex apps'; and 'Azure App Service for Containers' with features 'PaaS container hosting', 'Built-in CI/CD', 'Easy deployment'.
Azure
Need a hint?

Use a Python dictionary with keys as service names and values as lists of features.

2
Select a container service to focus on
Create a variable called selected_service and set it exactly to the string 'Azure Kubernetes Service'.
Azure
Need a hint?

Assign the exact string to the variable selected_service.

3
Extract features of the selected service
Create a variable called features that gets the list of features for the selected_service from the azure_container_services dictionary.
Azure
Need a hint?

Use dictionary access with the variable selected_service as the key.

4
Create a summary string for the selected service
Create a variable called summary that combines the selected_service name and its features list into a single string in this exact format: "Azure Kubernetes Service features: Managed Kubernetes, Scalable, Supports complex apps". Use ', '.join(features) to join the features.
Azure
Need a hint?

Use an f-string to format the summary with the service name and joined features.