Bird
0
0

Given this AWS CLI command:

medium📝 Predict Output Q13 of 15
AWS - S3 Fundamentals
Given this AWS CLI command:
aws s3 cp file.txt s3://my-bucket/
What happens after running it?
ADeletes file.txt from the bucket named my-bucket
BDownloads file.txt from the bucket named my-bucket
CUploads file.txt to the bucket named my-bucket
DLists contents of my-bucket
Step-by-Step Solution
Solution:
  1. Step 1: Understand the 'cp' command in AWS CLI

    'cp' means copy. Here it copies a local file to the S3 bucket.
  2. Step 2: Analyze source and destination

    Source is local file 'file.txt', destination is 's3://my-bucket/', so it uploads the file.
  3. Final Answer:

    Uploads file.txt to the bucket named my-bucket -> Option C
  4. Quick Check:

    aws s3 cp local to s3 = upload [OK]
Quick Trick: 'cp' copies files; source to destination [OK]
Common Mistakes:
  • Confusing upload with download
  • Thinking 'cp' deletes files
  • Assuming it lists bucket contents

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes