Bird
0
0

Which AWS CLI command is used to assume a role for temporary access?

easy📝 Configuration Q12 of 15
AWS - Identity and Access Management
Which AWS CLI command is used to assume a role for temporary access?
Aaws sts assume-role
Baws iam create-role
Caws s3 ls
Daws ec2 start-instances
Step-by-Step Solution
Solution:
  1. Step 1: Identify the correct command for role assumption

    The AWS CLI command to assume a role is aws sts assume-role.
  2. Step 2: Eliminate unrelated commands

    Commands like aws iam create-role create roles but do not assume them; others manage services unrelated to role assumption.
  3. Final Answer:

    aws sts assume-role -> Option A
  4. Quick Check:

    Assume role command = aws sts assume-role [OK]
Quick Trick: Assume role uses 'sts' service in CLI [OK]
Common Mistakes:
  • Using 'iam create-role' instead of 'sts assume-role'
  • Confusing service commands like s3 or ec2
  • Typing incorrect command syntax

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes