How should an Amazon EC2 instance be granted access to an Amazon S3 bucket in accordance with security best practices?
A. Hard code an IAM user's secret key and access key directly in the application, and upload the file.
B. Store the IAM user's secret key and access key in a text file on the EC2 instance, read the keys, then upload the file.
C. Have the EC2 instance assume a role to obtain the privileges to upload the file.
D. Modify the S3 bucket policy so that any service can upload to it at any time.
How should an Amazon EC2 instance be granted access to an Amazon S3 bucket in accordance with security best practices?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
How should an Amazon EC2 instance be granted access to an Amazon S3 bucket in accordance with security best practices?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!