Bird
0
0

Which AWS CLI command correctly lists all S3 buckets using the profile named qa-profile?

easy📝 Configuration Q3 of 15
AWS - CLI
Which AWS CLI command correctly lists all S3 buckets using the profile named qa-profile?
Aaws s3 ls -p qa-profile
Baws s3 ls --profile qa-profile
Caws --profile=qa-profile s3 ls
Daws s3 ls profile=qa-profile
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct profile syntax

    The AWS CLI uses the flag --profile followed by the profile name without equals sign.
  2. Step 2: Verify command structure

    The correct command to list buckets is aws s3 ls --profile qa-profile.
  3. Final Answer:

    aws s3 ls --profile qa-profile -> Option B
  4. Quick Check:

    Use --profile flag correctly [OK]
Quick Trick: Use --profile followed by profile name without '=' [OK]
Common Mistakes:
MISTAKES
  • Using -p instead of --profile
  • Adding '=' after --profile
  • Passing profile as a command argument

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes