Bird
0
0

What will be the output of this AWS CLI command?

medium📝 Predict Output Q13 of 15
AWS - CLI
What will be the output of this AWS CLI command?
aws s3api list-buckets --query 'Buckets[].Name' --output json
AA JSON array of bucket names
BA list of bucket creation dates
CAn error because of wrong syntax
DA plain text list of bucket names
Step-by-Step Solution
Solution:
  1. Step 1: Understand the command components

    The command uses list-buckets to get all buckets, with a query to extract only the bucket names.
  2. Step 2: Analyze the output format

    The --output json option formats the result as JSON, so the output is a JSON array of bucket names.
  3. Final Answer:

    A JSON array of bucket names -> Option A
  4. Quick Check:

    Query filters names, output json formats as JSON array [OK]
Quick Trick: Query filters data, output json formats it as JSON [OK]
Common Mistakes:
MISTAKES
  • Expecting plain text instead of JSON
  • Confusing bucket names with creation dates
  • Assuming syntax error due to query

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes