
Answer-first summary for fast verification
Answer: Attaching the correct IAM policy to the EC2 instance profile role
The correct answer is A. To allow an EC2 instance to write objects to an Amazon S3 bucket, the IAM policy that is attached to the EC2 instance profile role must be modified. This role provides the necessary permissions for the EC2 instances to interact with other AWS services, including Amazon S3. The other options are incorrect because session policies (Option B) are temporary and not typically used for long-term permission granting, AWS KMS key policies (Option C) are related to encryption rather than access permissions for writing objects to S3, and Amazon VPC endpoint policies (Option D) control access to AWS services within a VPC but do not directly grant write permissions to S3 buckets.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Which policy modification is required for an EC2 instance to write objects to an Amazon S3 bucket?
A
Attaching the correct IAM policy to the EC2 instance profile role
B
Applying the correct session policy to the EC2 instance role session
C
Attaching the correct AWS KMS key policy to the EC2 instance profile role
D
Configuring the Amazon VPC endpoint policy
No comments yet.