Bird
0
0

What is the output of this command if the bucket my-bucket contains two files file1.txt and file2.txt?

medium📝 Predict Output Q13 of 15
AWS - CLI
What is the output of this command if the bucket my-bucket contains two files file1.txt and file2.txt?
aws s3 ls s3://my-bucket/
ALists the names and sizes of <code>file1.txt</code> and <code>file2.txt</code>
BShows an error: bucket not found
CLists only the bucket name <code>my-bucket</code>
DDeletes the files in the bucket
Step-by-Step Solution
Solution:
  1. Step 1: Understand the command purpose

    aws s3 ls s3://my-bucket/ lists objects inside the bucket my-bucket.
  2. Step 2: Predict the output for files in the bucket

    The command will show the file names and their sizes for file1.txt and file2.txt.
  3. Final Answer:

    Lists the names and sizes of file1.txt and file2.txt -> Option A
  4. Quick Check:

    List bucket contents = file names + sizes [OK]
Quick Trick: Use 'aws s3 ls s3://bucket/' to list files inside [OK]
Common Mistakes:
MISTAKES
  • Thinking it lists buckets instead of files
  • Expecting deletion or error output
  • Confusing bucket name listing with object listing

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes