Bird
0
0

Which AWS CLI command syntax correctly uses a profile named dev-account to list S3 buckets?

easy📝 Configuration Q12 of 15
AWS - CLI
Which AWS CLI command syntax correctly uses a profile named dev-account to list S3 buckets?
Aaws s3 ls dev-account --profile
Baws --profile s3 ls dev-account
Caws --profile dev-account s3 ls
Daws s3 ls dev-account
Step-by-Step Solution
Solution:
  1. Step 1: Recall AWS CLI profile usage

    The correct syntax places --profile dev-account as a global option right after aws, before the service s3 ls.
  2. Step 2: Match syntax to options

    aws --profile dev-account s3 ls correctly uses the profile flag.
  3. Final Answer:

    aws --profile dev-account s3 ls -> Option C
  4. Quick Check:

    Correct flag placement = A [OK]
Quick Trick: --profile after aws, before service [OK]
Common Mistakes:
MISTAKES
  • Placing --profile after profile name
  • Swapping command and profile flag order
  • Omitting --profile flag

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes