Bird
0
0

Which AWS CLI command is used to create a new ECS cluster?

easy📝 Configuration Q12 of 15
AWS - ECS and Fargate
Which AWS CLI command is used to create a new ECS cluster?
Aaws ecs create-cluster --cluster-name MyCluster
Baws ec2 create-cluster --name MyCluster
Caws s3 create-bucket --bucket MyCluster
Daws ecs start-cluster --name MyCluster
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct service and command

    The ECS service uses aws ecs create-cluster to create clusters.
  2. Step 2: Check command syntax

    The correct syntax includes --cluster-name to name the cluster.
  3. Final Answer:

    aws ecs create-cluster --cluster-name MyCluster -> Option A
  4. Quick Check:

    Create ECS cluster = aws ecs create-cluster [OK]
Quick Trick: Use 'aws ecs create-cluster' to make ECS clusters [OK]
Common Mistakes:
  • Using EC2 or S3 commands instead of ECS
  • Using 'start-cluster' which is not a valid command
  • Incorrect parameter names like --name instead of --cluster-name

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes