Serverless vs Container Decision
📖 Scenario: You are working as a cloud architect for a small company. They want to deploy a new web application. You need to decide whether to use a serverless service like AWS Lambda or a container service like AWS Fargate. To help make this decision, you will create a simple data structure to compare the two options based on cost, scalability, and maintenance effort.
🎯 Goal: Create a dictionary with the comparison data, add a threshold for cost, filter the options based on the threshold, and finalize the decision by selecting the best option.
📋 What You'll Learn
Create a dictionary named
deployment_options with exact keys and values for AWS Lambda and AWS FargateAdd a variable named
max_cost with the exact value 50Use a dictionary comprehension named
affordable_options to select options with cost less than max_costAdd a variable named
best_option that selects the option with the lowest maintenance effort from affordable_options💡 Why This Matters
🌍 Real World
Cloud architects often need to compare different deployment methods to choose the best fit for cost, scalability, and maintenance.
💼 Career
Understanding how to structure and filter deployment options helps in making informed decisions for cloud infrastructure design.
Progress0 / 4 steps