Design Secure Architectures
An application on Amazon EC2 needs Amazon S3 access without stored access keys. What should provide its AWS permissions?
Show the answer
Correct answerD. An IAM role attached through an instance profile
AWhy not this: A gateway endpoint provides connectivity to S3 but does not grant the application an IAM identity.
BWhy not this: An IAM user access key is a long-term credential that the application would need to store or retrieve.
CWhy not this: A user pool authenticates application users; it does not supply an EC2 application's AWS service credentials.
DWhy this is right: An instance profile makes an IAM role's temporary credentials available to applications on the instance.
An EC2 instance role supplies temporary credentials without storing long-term access keys. An S3 gateway endpoint provides a private network path, not an AWS identity or permissions.