0
0
AWScloud~30 mins

EKS vs ECS decision in AWS - Hands-On Comparison

Choose your learning style9 modes available
EKS vs ECS Decision Guide
📖 Scenario: You are a cloud architect helping a small company decide how to run their containerized applications on AWS. They want to understand the difference between Amazon Elastic Kubernetes Service (EKS) and Amazon Elastic Container Service (ECS) to choose the best option for their needs.
🎯 Goal: Build a simple decision helper using Python that stores key features of EKS and ECS, sets a preference based on workload type, and outputs the recommended service.
📋 What You'll Learn
Create a dictionary with exact features of EKS and ECS
Add a variable to hold the workload type preference
Use a conditional statement to select the recommended service
Output the final recommendation as a string
💡 Why This Matters
🌍 Real World
Choosing the right AWS container service helps companies run their applications efficiently and cost-effectively.
💼 Career
Cloud architects and DevOps engineers often decide between EKS and ECS based on workload needs and team expertise.
Progress0 / 4 steps
1
Create a dictionary with EKS and ECS features
Create a dictionary called services with two keys: 'EKS' and 'ECS'. Each key should map to a list of exact features as strings. For 'EKS', use ['Managed Kubernetes', 'Supports custom schedulers', 'More complex setup']. For 'ECS', use ['AWS native', 'Simpler to use', 'Supports Fargate'].
AWS
Need a hint?

Use a dictionary with keys 'EKS' and 'ECS'. Each key has a list of features as values.

2
Add a workload type preference variable
Add a variable called workload_type and set it to the string 'complex' to represent the type of workload you want to run.
AWS
Need a hint?

Set workload_type exactly to the string 'complex'.

3
Write logic to select recommended service
Write an if statement that checks if workload_type is equal to 'complex'. If yes, set a variable called recommended_service to 'EKS'. Otherwise, set recommended_service to 'ECS'.
AWS
Need a hint?

Use if workload_type == 'complex': to decide the recommended service.

4
Output the recommended service
Add a line that sets a variable called output to the string "Recommended service is: " concatenated with the value of recommended_service.
AWS
Need a hint?

Use string concatenation to create the output message.