Complete the code to specify the AWS service used to run containers.
service = "[1]"
The correct service to run containers on AWS is ECS (Elastic Container Service).
Complete the code to define the container orchestration tool AWS offers.
orchestration_tool = "[1]"
AWS offers EKS (Elastic Kubernetes Service) as its managed Kubernetes orchestration tool.
Fix the error in the code to correctly launch a container task on AWS.
task_definition = client.register_task_definition(family='my-task', containerDefinitions=[[1]])
The container definition requires 'name' and 'image' keys exactly. 'image_url', 'container_name', or 'img' are incorrect keys.
Fill both blanks to create a dictionary that maps container names to their CPU shares and memory limits.
container_resources = { '[1]': [2] }The container name is 'app' and the resource limits are CPU 256 units and 512 MB memory.
Fill all three blanks to define a service that runs 3 tasks of a container named 'api' with a load balancer.
service_config = {
'serviceName': '[1]',
'desiredCount': [2],
'loadBalancers': [[3]]
}The service name is 'api-service', desired count is 3 tasks, and the load balancer configuration includes the target group ARN, container name, and port.