A role's identity-policy simulation allows s3:GetObject and kms:Decrypt, but a cross-account download of an SSE-KMS object fails despite a bucket policy allowing the role. CloudTrail records a denied Decrypt request for the object's customer managed key. What should the engineer investigate first?
Show the answer
Correct answerD. The KMS key policy's cross-account permissions.
AWhy not this: The recorded failure is KMS Decrypt, and the bucket policy already permits the role's object access.
BWhy not this: The role has an active session making requests; session duration does not authorize KMS decryption.
CWhy not this: The evidence identifies a KMS authorization denial, not an object restoration or retrieval issue.
DWhy this is right: The key policy must authorize the external account or principal in addition to the caller's identity permissions.
Cross-account KMS access requires permission in both the caller's identity policy and the KMS key policy. CloudTrail identifies Decrypt as the failing operation, so an identity-policy simulation allowing access does not establish that the key authorizes it; the bucket policy governs S3 access, not KMS authorization.