
Answer-first summary for fast verification
Answer: Update the IAM role with S3 read permission for immediate effect.
The correct answer is B. By adding the S3 read permission to the IAM role, the change will take effect automatically without requiring any further action. This ensures the least disruption since there's no need to terminate or restart the EC2 instance. Other options would involve unnecessary steps like terminating, hibernating, or restarting the instance, which are not needed in this scenario.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
An application on an EC2 instance fails to read from an S3 bucket due to a missing S3 read permission in the associated IAM role. What is the least disruptive solution to grant the application the required S3 read access?
A
Update the IAM role with S3 read permission, then terminate and relaunch the EC2 instance.
B
Update the IAM role with S3 read permission for immediate effect.
C
Update the IAM role with S3 read permission, then hibernate and restart the EC2 instance.
D
Add S3 read permission to the bucket and restart the EC2 instance.