Bird
0
0

Which AWS CLI command correctly creates a new ECR repository named my-app?

easy📝 Configuration Q12 of 15
AWS - ECS and Fargate
Which AWS CLI command correctly creates a new ECR repository named my-app?
Aaws ecr make-repo --repository my-app
Baws ecr new-repository --name my-app
Caws ecr create-repository --repository-name my-app
Daws ecr init-repository --repo my-app
Step-by-Step Solution
Solution:
  1. Step 1: Recall AWS CLI syntax for ECR

    The correct command to create a repository is aws ecr create-repository --repository-name <name>.
  2. Step 2: Check options for correctness

    Options B, C, and D use invalid commands or flags not recognized by AWS CLI.
  3. Final Answer:

    aws ecr create-repository --repository-name my-app -> Option C
  4. Quick Check:

    Create repo command = aws ecr create-repository --repository-name my-app [OK]
Quick Trick: Use 'create-repository' with '--repository-name' flag [OK]
Common Mistakes:
  • Using incorrect command verbs like 'new' or 'make'
  • Wrong flag names like '--name' or '--repo'
  • Assuming 'init-repository' is valid

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes