Identity and Access Management

An EC2 API request fails and returns an encoded authorization failure message. Which action should an authorized administrator use to inspect the additional authorization details?

Show the answer

Correct answerD. AWS STS DecodeAuthorizationMessage

AWhy not this: ValidatePolicy checks policy documents for findings; it does not decode authorization failure messages.

BWhy not this: SimulatePrincipalPolicy evaluates permissions for a simulated request rather than decoding the returned message.

CWhy not this: LookupEvents retrieves CloudTrail events rather than decoding an encoded authorization failure message.

DWhy this is right: DecodeAuthorizationMessage exposes the encoded authorization details when the caller has the required permission.

AWS STS DecodeAuthorizationMessage decodes authorization details returned by supported AWS API failures and requires sts:DecodeAuthorizationMessage permission. IAM policy simulation evaluates supplied requests; it does not decode an encoded failure message.