Bird
0
0

Why does this command fail?

medium📝 Debug Q7 of 15
AWS - CLI
Why does this command fail?
aws s3 ls --output json
with error: 'Unknown output format: json'
AJSON output is not supported by AWS CLI
BThe AWS CLI version is outdated
CThe command requires additional parameters
DThe 'aws s3' command does not support --output option
Step-by-Step Solution
Solution:
  1. Step 1: Understand 'aws s3' command limitations

    The 'aws s3' high-level commands do not support the --output option.
  2. Step 2: Reason about error cause

    Using --output json with 'aws s3 ls' causes an error because it's unsupported.
  3. Final Answer:

    The 'aws s3' command does not support --output option -> Option D
  4. Quick Check:

    'aws s3' commands ignore --output option [OK]
Quick Trick: 'aws s3api' supports --output; 'aws s3' does not [OK]
Common Mistakes:
  • Trying --output with 'aws s3' commands
  • Assuming all AWS CLI commands support --output

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes