Bird
0
0

Which AWS CLI command correctly creates an S3 bucket named my-bucket-123 in the us-east-1 region?

easy📝 Configuration Q3 of 15
AWS - S3 Fundamentals
Which AWS CLI command correctly creates an S3 bucket named my-bucket-123 in the us-east-1 region?
Aaws s3api create-bucket --bucket my-bucket-123 --region us-east-1 --create-bucket-configuration LocationConstraint=us-east-1
Baws s3api create-bucket --bucket my-bucket-123
Caws s3api create-bucket --bucket my-bucket-123 --create-bucket-configuration LocationConstraint=us-east-1
Daws s3api create-bucket --bucket my-bucket-123 --region us-east-1
Step-by-Step Solution
Solution:
  1. Step 1: Understand region parameter for us-east-1

    For us-east-1, LocationConstraint is not required and must be omitted.
  2. Step 2: Check command syntax

    aws s3api create-bucket --bucket my-bucket-123 --region us-east-1 correctly creates the bucket in us-east-1 without LocationConstraint.
  3. Final Answer:

    aws s3api create-bucket --bucket my-bucket-123 --region us-east-1 -> Option D
  4. Quick Check:

    us-east-1 creation omits LocationConstraint = B [OK]
Quick Trick: No LocationConstraint needed for us-east-1 region [OK]
Common Mistakes:
MISTAKES
  • Adding LocationConstraint for us-east-1 causes error
  • Omitting region parameter
  • Using incorrect syntax for create-bucket

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes