An application is running on an Amazon EC2 instance. A SysOps Administrator is tasked with allowing the application access to an Amazon S3 bucket. What should be done to ensure optimal security?
A.
Apply an S3 bucket policy to allow access from all EC2 instances.
B.
Create an IAM user and create a script to inject the credentials on boot.
C.
Create and assign an IAM role for Amazon S3 access to the EC2 instance.
D.
Embed an AWS credentials file for an IAM user inside the Amazon Machine Image (AMI).
Option C is the best choice for ensuring optimal security when granting an EC2 instance access to an S3 bucket. By creating an IAM role and attaching it to the EC2 instance, you provide temporary, automatically rotated security credentials to the application running on the EC2 instance.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
nicat
Highly Voted 2 years, 9 months agoalbert_kuo
Most Recent 11 months, 2 weeks agoaidenpearce01
2 years, 3 months agoleyty082
1 year, 5 months agoRicardoD
2 years, 8 months agoKhandakar420
2 years, 8 months agoChirantan
2 years, 8 months agoabhishek_m_86
2 years, 8 months agojackdryan
2 years, 8 months agomrbreeze
2 years, 8 months agojmad
2 years, 8 months agoImranR
2 years, 8 months agoMrDEVOPS
2 years, 8 months agoprofessor
2 years, 9 months ago