Bird
0
0

What will happen if you run this command?

medium📝 Predict Output Q5 of 15
AWS - S3 Fundamentals
What will happen if you run this command?
aws s3 cp s3://mybucket/data.csv ./data.csv
AThe file data.csv is downloaded from mybucket to the current directory
BThe file data.csv is uploaded from current directory to mybucket
CThe file data.csv is deleted from mybucket
DThe command lists all files in mybucket
Step-by-Step Solution
Solution:
  1. Step 1: Analyze the command source and destination

    Source is S3 path, destination is local file path, so it downloads the file.
  2. Step 2: Confirm the action matches download

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

    The file data.csv is downloaded from mybucket to the current directory -> Option A
  4. Quick Check:

    S3 to local = Download [OK]
Quick Trick: S3 source and local destination means download [OK]
Common Mistakes:
  • Mixing upload and download directions
  • Assuming delete instead of copy
  • Confusing with list command

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes