Bird
0
0

What will be the result of this AWS CLI command?

medium📝 Predict Output Q4 of 15
AWS - S3 Fundamentals
What will be the result of this AWS CLI command?
aws s3 cp ./image.png s3://photos-bucket/
ALists all files in photos-bucket
BUploads the local file image.png to the photos-bucket in S3
CDeletes image.png from photos-bucket
DDownloads image.png from photos-bucket to local directory
Step-by-Step Solution
Solution:
  1. Step 1: Understand the command structure

    'aws s3 cp' copies files. Source is local './image.png', destination is S3 bucket.
  2. Step 2: Determine action based on source and destination

    Copying from local to S3 means uploading the file.
  3. Final Answer:

    Uploads the local file image.png to the photos-bucket in S3 -> Option B
  4. Quick Check:

    Local to S3 = Upload [OK]
Quick Trick: Source local, destination S3 means upload [OK]
Common Mistakes:
  • Confusing upload with download
  • Thinking it deletes files
  • Assuming it lists files

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes