
Ultimate access to all questions.
Your company is transitioning to using Amazon Elastic Container Service (ECS) for deploying its applications, and there is a need to automate this process. You are tasked with using the AWS Command Line Interface (CLI) to ensure that a service is created within the default ECS cluster. This service must maintain a minimum of ten running instances of a specified task definition.
Which of the following AWS CLI commands will achieve this requirement?
A
aws ecr create-service --service-name ecs-simple-service --task-definition ecs-demo --desired-count 10
B
aws ecs create-service --service-name ecs-simple-service --task-definition ecs-demo --desired-count 10
C
docker-compose create ecs-simple-service
D
aws ecs run-task --cluster default --task-definition ecs-demo