Bird
0
0

Which of the following is the correct syntax to specify a profile named 'dev' when using AWS CLI?

easy📝 Syntax Q3 of 15
AWS - CLI
Which of the following is the correct syntax to specify a profile named 'dev' when using AWS CLI?
Aaws s3 ls --profiles dev
Baws s3 ls -profile dev
Caws s3 ls --profile dev
Daws s3 ls -p dev
Step-by-Step Solution
Solution:
  1. Step 1: Understand AWS CLI profile option syntax

    The correct option to specify a profile is '--profile' followed by the profile name.
  2. Step 2: Identify the correct command usage

    The command 'aws s3 ls --profile dev' correctly uses the double dash and singular 'profile'.
  3. Final Answer:

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

    Profile option syntax = --profile [OK]
Quick Trick: Use --profile to specify AWS CLI profile name [OK]
Common Mistakes:
  • Using single dash instead of double dash
  • Using plural 'profiles' instead of 'profile'
  • Using shorthand -p which is invalid

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes