Bird
0
0

Which AWS CLI command correctly uploads a file named photo.jpg to a bucket called mybucket?

easy📝 Configuration Q12 of 15
AWS - S3 Fundamentals
Which AWS CLI command correctly uploads a file named photo.jpg to a bucket called mybucket?
Aaws s3 get photo.jpg s3://mybucket/
Baws s3 download photo.jpg s3://mybucket/
Caws s3 cp photo.jpg s3://mybucket/
Daws s3 remove photo.jpg s3://mybucket/
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct AWS CLI upload command

    The command to upload files to S3 is aws s3 cp followed by the local file and the bucket path.
  2. Step 2: Match command with given file and bucket

    Using aws s3 cp photo.jpg s3://mybucket/ uploads the file photo.jpg to the bucket mybucket.
  3. Final Answer:

    aws s3 cp photo.jpg s3://mybucket/ -> Option C
  4. Quick Check:

    Upload command = aws s3 cp [OK]
Quick Trick: Use 'aws s3 cp' to copy files to S3 bucket [OK]
Common Mistakes:
  • Using 'download' instead of 'cp' for upload
  • Confusing 'get' with upload command
  • Using 'remove' which deletes files

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes