IAM Roles for EC2
IAM Roles for EC2 are a secure way to grant permissions to EC2 instances without using long-term credentials.
AWS manages temporary credentials automatically, rotating them periodically and limiting access to only the necessary permissions.
check_circleTherefore, the correct answer is: IAM Role attached to instance.
cancelThe option that says: Embed Access Keys in code is incorrect because Security risk. Keys can be leaked in source code.
cancelThe option that says: Make bucket public is incorrect because Violates least privilege. Exposes data to the world.
cancelThe option that says: Environment variables with credentials is incorrect because Relies on long-term credentials requiring manual rotation.