0
0
Azurecloud~30 mins

Serverless vs PaaS vs IaaS decision in Azure - Hands-On Comparison

Choose your learning style9 modes available
Serverless vs PaaS vs IaaS Decision
📖 Scenario: You are working for a small company that wants to deploy a web application. The company is unsure whether to use Serverless, Platform as a Service (PaaS), or Infrastructure as a Service (IaaS) on Azure. You will help by creating a simple decision helper using Python code that models the choice based on the application's needs.
🎯 Goal: Build a Python script that helps decide between Serverless, PaaS, and IaaS based on application requirements like scalability, control, and maintenance effort.
📋 What You'll Learn
Create a dictionary with application requirements and their values
Add a configuration variable to set a threshold for high scalability need
Write logic to decide the best Azure service type based on requirements
Output the final decision as a string variable
💡 Why This Matters
🌍 Real World
Companies often need to decide which cloud service model fits their application best. This project simulates that decision-making process.
💼 Career
Cloud architects and developers must understand service models and how to choose them based on application needs.
Progress0 / 4 steps
1
Create application requirements dictionary
Create a dictionary called app_requirements with these exact entries: 'scalability': 8, 'control': 3, and 'maintenance_effort': 2.
Azure
Need a hint?

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

2
Add scalability threshold configuration
Add a variable called high_scalability_threshold and set it to 7.
Azure
Need a hint?

This variable will help decide if the app needs very high scalability.

3
Write decision logic for service type
Write an if-elif-else block that sets a variable service_choice to 'Serverless' if app_requirements['scalability'] is greater than high_scalability_threshold, to 'PaaS' if app_requirements['control'] is greater than or equal to 5, and to 'IaaS' otherwise.
Azure
Need a hint?

Use comparison operators and indentation carefully for the decision structure.

4
Set final decision output variable
Create a variable called final_decision and set it to the string 'Recommended Azure service: ' concatenated with the service_choice variable.
Azure
Need a hint?

Use string concatenation with the + operator.