Security and Compliance

An application on Amazon EC2 needs to read objects from one S3 bucket without storing long-term credentials. What should a CloudOps engineer configure?

Show the answer

Correct answerB. An EC2 instance profile containing a role with the required S3 permissions

AWhy not this: IAM groups organize permissions for IAM users and cannot be associated with EC2 instances.

BWhy this is right: The instance profile makes role-based temporary credentials available to the application on the instance.

CWhy not this: Anonymous access exposes the objects instead of giving the application an authenticated identity.

DWhy not this: An IAM user access key is a long-term credential and would require storage and rotation.

An instance profile supplies an EC2 instance with an IAM role whose temporary credentials the application can use. An IAM user's access key is a long-term credential, even when its permissions are narrowly scoped.