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
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
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
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
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
Hint
Call the function with the variable app_type and assign the result to selected_service.
Practice
(1/5)
1. Which Azure service is best suited for hosting a simple web application with minimal infrastructure management?
easy
A. Azure App Service
B. Azure Kubernetes Service (AKS)
C. Azure Functions
D. Azure Virtual Machines
Solution
Step 1: Understand service purpose
Azure App Service is designed for easy hosting of web apps without managing infrastructure.
Step 2: Compare with other options
AKS is for container orchestration, Functions are for event-driven code, and VMs require full management.
Final Answer:
Azure App Service -> Option A
Quick Check:
Simple web app hosting = Azure App Service [OK]
Hint: Simple web app? Choose App Service for easy hosting [OK]
Common Mistakes:
Choosing AKS for simple apps needing no container orchestration
Using Functions for always-on web apps
Selecting VMs when managed service suffices
2. Which Azure service is primarily designed for running event-driven code without managing servers?
easy
A. Azure Kubernetes Service (AKS)
B. Azure App Service
C. Azure Functions
D. Azure SQL Database
Solution
Step 1: Identify event-driven service
Azure Functions is a serverless compute service designed for event-driven code execution.
Step 2: Exclude other services
AKS manages containers, App Service hosts web apps, SQL Database stores data.
Final Answer:
Azure Functions -> Option C
Quick Check:
Event-driven code = Azure Functions [OK]
Hint: Event-driven code? Use Azure Functions [OK]
Common Mistakes:
Confusing AKS with serverless functions
Using App Service for event triggers
Selecting SQL Database as compute
3. You want to deploy a microservices app using containers with full control over scaling and networking. Which Azure service fits best?
medium
A. Azure Functions
B. Azure Kubernetes Service (AKS)
C. Azure App Service
D. Azure Logic Apps
Solution
Step 1: Analyze requirements
Microservices with containers needing control over scaling and networking require container orchestration.
Step 2: Match service capabilities
AKS provides Kubernetes orchestration with control; App Service and Functions are more managed and less flexible.
Final Answer:
Azure Kubernetes Service (AKS) -> Option B
Quick Check:
Container orchestration with control = AKS [OK]
Hint: Need container control? Pick AKS [OK]
Common Mistakes:
Choosing App Service for container orchestration
Using Functions for microservices with containers
Confusing Logic Apps with container hosting
4. A developer deployed a containerized app to Azure App Service but notices scaling and networking options are limited. What is the likely cause?
medium
A. Azure Functions must be enabled for scaling
B. Azure App Service requires manual VM scaling
C. The app needs to be deployed on Azure SQL Database
D. Azure App Service does not support container orchestration like AKS
Solution
Step 1: Understand service limits
Azure App Service supports containers but lacks full orchestration and advanced networking control.
Step 2: Identify correct cause
AKS provides container orchestration with scaling and networking control; App Service is more managed and limited.
Final Answer:
Azure App Service does not support container orchestration like AKS -> Option D
Quick Check:
Limited scaling in App Service = no full orchestration [OK]
Hint: Limited container control? App Service lacks orchestration [OK]
Common Mistakes:
Thinking Functions enable App Service scaling
Confusing SQL Database as app host
Assuming manual VM scaling is needed in App Service
5. A company wants to build a highly scalable API backend that triggers code on HTTP requests and other events, with minimal infrastructure management. Which Azure service should they choose and why?
hard
A. Azure Functions for event-driven, serverless execution with automatic scaling
B. Azure App Service for easy web app hosting with built-in scaling
C. Azure Virtual Machines for custom environment and manual scaling
D. Azure Kubernetes Service (AKS) for full control and container orchestration
Solution
Step 1: Analyze requirements
The company needs highly scalable API backend triggered by HTTP and other events with minimal management.
Step 2: Match service features
Azure Functions provide serverless, event-driven execution with automatic scaling and minimal infrastructure management.
Step 3: Exclude other options
AKS offers control but requires management; App Service is good but less event-driven; VMs need manual management.
Final Answer:
Azure Functions for event-driven, serverless execution with automatic scaling -> Option A