0
0
AWScloud~30 mins

Services and tasks in AWS - Mini Project: Build & Apply

Choose your learning style9 modes available
AWS Services and Tasks Setup
📖 Scenario: You are setting up a simple AWS environment to manage compute and storage resources. You will create a dictionary to represent AWS services and their tasks, then configure a threshold for task limits, apply logic to filter services, and finally complete the setup with a summary configuration.
🎯 Goal: Build a Python dictionary representing AWS services and their tasks, configure a task limit, filter services based on the limit, and finalize the configuration for deployment.
📋 What You'll Learn
Create a dictionary named aws_services with specific AWS services and their tasks
Add a configuration variable named task_limit with a specific integer value
Use a dictionary comprehension to create filtered_services containing only services with tasks less than or equal to task_limit
Add a final key-value pair 'deployment_ready': True to the filtered_services dictionary
💡 Why This Matters
🌍 Real World
Managing AWS services and their tasks helps in organizing cloud resources efficiently and preparing configurations for deployment.
💼 Career
Cloud engineers and DevOps professionals often create and manage service configurations to automate and optimize cloud infrastructure.
Progress0 / 4 steps
1
Create AWS services dictionary
Create a dictionary called aws_services with these exact entries: 'EC2': 5, 'S3': 3, 'Lambda': 7, 'DynamoDB': 4
AWS
Need a hint?

Use curly braces to create a dictionary with keys as service names and values as task counts.

2
Add task limit configuration
Add a variable called task_limit and set it to the integer 5
AWS
Need a hint?

Assign the integer 5 to the variable named task_limit.

3
Filter services by task limit
Use a dictionary comprehension to create a new dictionary called filtered_services that includes only the services from aws_services with task counts less than or equal to task_limit
AWS
Need a hint?

Use a dictionary comprehension with for service, tasks in aws_services.items() and an if condition.

4
Complete configuration with deployment flag
Add a key-value pair 'deployment_ready': True to the filtered_services dictionary
AWS
Need a hint?

Use the dictionary key assignment syntax to add the new key and value.