Bird
0
0

After running the command:

medium📝 Predict Output Q4 of 15
AWS - Identity and Access Management
After running the command:
aws sts assume-role --role-arn arn:aws:iam::123456789012:role/ReadOnly --role-session-name Session1

which of the following is included in the output?
AA list of all roles in the account
BPermanent IAM user credentials
CTemporary security credentials including AccessKeyId, SecretAccessKey, and SessionToken
DAn error message indicating invalid session name
Step-by-Step Solution
Solution:
  1. Step 1: Understand assume-role output

    The command returns temporary security credentials for the assumed role.
  2. Step 2: Identify output components

    Output includes AccessKeyId, SecretAccessKey, SessionToken, and Expiration.
  3. Final Answer:

    Temporary security credentials including AccessKeyId, SecretAccessKey, and SessionToken -> Option C
  4. Quick Check:

    Assume-role returns temporary credentials [OK]
Quick Trick: Assume-role outputs temporary credentials, not permanent keys [OK]
Common Mistakes:
  • Expecting permanent credentials
  • Thinking it lists roles
  • Assuming error without cause

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes