LinkedIn Amazon Web Services (AWS) Skill Assessment Quiz Answers

What does the following AWS CLI create-service command for ECS do?

Latest Update on 7th July, 2022 by Certification Course Answers

What does the following AWS CLI create-service command for ECS do?

aws ecs create-service \
 --cluster production \
 --service-name rest-api \
 --task-definition rest-api:1 \
 --desired-count 2 \
 --launch-type "FARGATE" \
 --network-configuration \
 "awsvpcConfiguration={subnets=[subnet-0b29129ab],securityGroups=[sg-0b29129ab]}"
  1.  changes the security groups of the running rest-api task
  2.  creates a cluster called production and launches two containers into Fargate with the rest-api task definition
  3.  launches two containers onto Fargate into the existing production cluster using the rest-api task definition
  4.  creates a service definition for the rest-api task; put two containers on the production cluster when launched ecs-cli up command

Correct Answer:

  •  launches two containers onto Fargate into the existing production cluster using the rest-api task definition

Latest Updates

No posts found in this category.