Bird
0
0

What will be the result of this AWS CLI command?

medium📝 service behavior Q13 of 15
AWS - S3 Fundamentals
What will be the result of this AWS CLI command?
aws s3 cp s3://mybucket/report.pdf ./
ADownloads report.pdf from the bucket to current folder
BUploads report.pdf from local to the bucket
CDeletes report.pdf from the bucket
DLists all files in the bucket
Step-by-Step Solution
Solution:
  1. Step 1: Understand the command structure

    The command aws s3 cp copies files. The source is s3://mybucket/report.pdf and destination is ./ (current folder).
  2. Step 2: Determine direction of copy

    Since source is S3 and destination is local, the file is downloaded from the bucket to the local folder.
  3. Final Answer:

    Downloads report.pdf from the bucket to current folder -> Option A
  4. Quick Check:

    Source S3 to local = download [OK]
Quick Trick: Source path starting with s3:// means download to local [OK]
Common Mistakes:
  • Thinking 'cp' always uploads
  • Confusing source and destination order
  • Assuming it deletes files

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes