0
0
Azurecloud~30 mins

AKS vs App Service vs Functions decision in Azure - Hands-On Comparison

Choose your learning style9 modes available
AKS vs App Service vs Functions Decision Guide
📖 Scenario: You are working as a cloud architect for a company that wants to deploy a new web application. The company is unsure whether to use Azure Kubernetes Service (AKS), Azure App Service, or Azure Functions. Your task is to help them understand the differences and decide which service fits their needs best.
🎯 Goal: Build a simple decision helper in Python that stores key characteristics of AKS, App Service, and Functions, then helps decide which service to use based on application needs.
📋 What You'll Learn
Create a dictionary with exact keys 'AKS', 'App Service', and 'Functions' and their descriptions
Add a configuration variable called app_type with the value 'web', 'api', or 'event-driven'
Write a function called choose_service that returns the best service based on app_type
Add a final line that calls choose_service with app_type and stores the result in selected_service
💡 Why This Matters
🌍 Real World
Helps beginners understand when to use AKS, App Service, or Functions in Azure for different app needs.
💼 Career
Cloud architects and developers often decide which Azure compute service to use based on app requirements.
Progress0 / 4 steps
1
Create service descriptions dictionary
Create a dictionary called services with these exact entries: 'AKS' with value 'Container orchestration for complex apps', 'App Service' with value 'Managed platform for web apps', and 'Functions' with value 'Serverless event-driven compute'.
Azure
Need a hint?

Use a dictionary with keys exactly as 'AKS', 'App Service', and 'Functions'. Assign the exact string values given.

2
Add application type configuration
Add a variable called app_type and set it to the string 'web'.
Azure
Need a hint?

Just assign the string 'web' to the variable named app_type.

3
Write service selection function
Write a function called choose_service that takes app_type as input and returns 'App Service' if app_type is 'web', 'Functions' if app_type is 'event-driven', and 'AKS' if app_type is 'api'.
Azure
Need a hint?

Use if-elif statements to check app_type and return the correct service string.

4
Call function and store result
Add a line that calls choose_service with app_type and stores the result in a variable called selected_service.
Azure
Need a hint?

Call the function with the variable app_type and assign the result to selected_service.