AWS Certified Security – Specialty — Question 114

A company's Security Engineer has been tasked with restricting a contractor's IAM account access to the company's Amazon EC2 console without providing access to any other AWS services. The contractor's IAM account must not be able to gain access to any other AWS service, even if the IAM account is assigned additional permissions based on IAM group membership.
What should the Security Engineer do to meet these requirements?

Answer options

Correct answer: B

Explanation

The correct answer is B because using an IAM permissions boundary policy allows the Security Engineer to restrict the contractor's IAM account to only the permissions defined in the boundary, effectively preventing access to any other AWS services. Options A and C fail to restrict access beyond what is granted, and option D, while it denies other services, does not provide the necessary restrictions at the IAM account level.