Bird
0
0

A user tries to upload a file to S3 with the command: aws s3 cp data.csv s3://mybucket/ --storage-class GLACIER but gets an error. What is the likely cause?

medium📝 Debug Q14 of 15
AWS - S3 Fundamentals
A user tries to upload a file to S3 with the command: aws s3 cp data.csv s3://mybucket/ --storage-class GLACIER but gets an error. What is the likely cause?
AGLACIER is not a valid storage class for direct upload via this command.
BThe bucket name is invalid.
CThe file data.csv does not exist locally.
DThe AWS CLI version does not support storage classes.
Step-by-Step Solution
Solution:
  1. Step 1: Understand GLACIER upload restrictions

    GLACIER storage class cannot be used directly in 'aws s3 cp' uploads; use GLACIER via lifecycle or multipart upload.
  2. Step 2: Check other options

    Bucket name and file existence errors produce different messages; CLI supports storage classes.
  3. Final Answer:

    GLACIER is not a valid storage class for direct upload via this command. -> Option A
  4. Quick Check:

    Direct upload with GLACIER = error [OK]
Quick Trick: GLACIER needs lifecycle or special upload, not direct CLI copy [OK]
Common Mistakes:
  • Assuming GLACIER can be set directly on upload
  • Ignoring file existence errors
  • Blaming bucket name without checking

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes