Security

Which AWS STS operation lets an authenticated IAM principal obtain temporary credentials for an IAM role?

Show the answer

Correct answerC. AssumeRole

AWhy not this: GetCallerIdentity returns information about the current caller without issuing credentials.

BWhy not this: GetFederationToken creates a federated user session rather than assuming a specified IAM role.

CWhy this is right: AssumeRole returns temporary credentials for a role that the caller is authorized to assume.

DWhy not this: GetSessionToken creates temporary credentials for an IAM user, not a session for a specified role.

AssumeRole returns temporary credentials for an authorized role session. GetSessionToken provides temporary credentials for the calling IAM user rather than assuming a role.