Which of the following is true while using an IAM role to grant permissions to applications running on Amazon EC2 instances?
All applications on the instance share the same role, but different permissions.
All applications on the instance share multiple roles and permissions.
Multiple roles are assigned to an EC2 instance at a time.
Only one role can be assigned to an EC2 instance at a time.
Explanations:
While all applications on an EC2 instance can access the same IAM role, they do not share different permissions. The role provides a uniform set of permissions for all applications running on that instance.
An EC2 instance cannot share multiple IAM roles simultaneously. Only one IAM role can be attached to an instance at a time, meaning all applications must use the same permissions defined by that role.
An EC2 instance cannot have multiple roles assigned to it at the same time. Only one role can be associated with the instance, which governs the permissions for all applications running on it.
An EC2 instance can only have one IAM role assigned at a time. This single role defines the permissions for all applications running on that instance.