Bird
0
0

What is the expected output when running this command?

medium📝 service behavior Q13 of 15
AWS - Identity and Access Management
What is the expected output when running this command?
aws sts assume-role --role-arn arn:aws:iam::123456789012:role/demo --role-session-name testSession
AA JSON with temporary security credentials including AccessKeyId, SecretAccessKey, and SessionToken.
BAn error saying 'role not found' because the ARN is invalid.
CA list of all IAM users in the account.
DA confirmation message that the role was created.
Step-by-Step Solution
Solution:
  1. Step 1: Understand the command output

    The aws sts assume-role command returns temporary credentials in JSON format.
  2. Step 2: Analyze options

    Only 'A JSON with temporary security credentials including AccessKeyId, SecretAccessKey, and SessionToken.' correctly describes the expected JSON output with temporary keys. Others describe errors or unrelated outputs.
  3. Final Answer:

    A JSON with temporary security credentials including AccessKeyId, SecretAccessKey, and SessionToken. -> Option A
  4. Quick Check:

    Assume-role output = temporary credentials JSON [OK]
Quick Trick: Assume-role returns temporary keys in JSON [OK]
Common Mistakes:
  • Expecting role creation confirmation instead of credentials
  • Confusing assume-role output with user listing
  • Assuming error without verifying ARN

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes