Security and Compliance

An active IAM access key and its secret appear in a public repository. What is the primary security risk?

Show the answer

Correct answerC. An attacker can make requests with the IAM user's permissions

AWhy not this: Authenticated requests remain subject to applicable bucket policies and other authorization controls.

BWhy not this: Role assumption requires authorization and a compatible role trust policy.

CWhy this is right: The access key pair can authenticate AWS requests under the associated IAM user's permissions.

DWhy not this: KMS decryption requires authorization; possessing an access key does not grant access to every KMS key.

An exposed access key pair lets an attacker authenticate requests as the IAM user, subject to applicable permissions and controls. It does not automatically grant permission to assume arbitrary roles.