Bird
0
0

Which of the following is the correct way to specify the STANDARD_IA storage class in an AWS CLI command to upload a file?

easy📝 Configuration Q12 of 15
AWS - S3 Fundamentals
Which of the following is the correct way to specify the STANDARD_IA storage class in an AWS CLI command to upload a file?
Aaws s3 cp file.txt s3://bucket/ --storage-class=STANDARDIA
Baws s3 cp file.txt s3://bucket/ --storageclass STANDARD_IA
Caws s3 cp file.txt s3://bucket/ --storage-class STANDARD_IA
Daws s3 cp file.txt s3://bucket/ --storage-class=STANDARD-IA
Step-by-Step Solution
Solution:
  1. Step 1: Recall AWS CLI syntax for storage class

    The correct option uses '--storage-class' with underscore and exact class name.
  2. Step 2: Check each option for syntax errors

    aws s3 cp file.txt s3://bucket/ --storage-class STANDARD_IA matches correct syntax; others have typos or wrong format.
  3. Final Answer:

    aws s3 cp file.txt s3://bucket/ --storage-class STANDARD_IA -> Option C
  4. Quick Check:

    Correct flag and class name = aws s3 cp file.txt s3://bucket/ --storage-class STANDARD_IA [OK]
Quick Trick: Use '--storage-class' exactly with underscore [OK]
Common Mistakes:
MISTAKES
  • Misspelling the flag as '--storageclass'
  • Using dashes instead of underscores
  • Omitting the space after the flag

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes