AWS Certified Solutions Architect – Professional — Question 46

An enterprise wants to use a third-party SaaS application. The SaaS application needs to have access to issue several API commands to discover Amazon EC2 resources running within the enterprise's account The enterprise has internal security policies that require any outside access to their environment must conform to the principles of least privilege and there must be controls in place to ensure that the credentials used by the SaaS vendor cannot be used by any other third party.
Which of the following would meet all of these conditions?

Answer options

Correct answer: C

Explanation

The correct answer is C because creating an IAM role for cross-account access allows the SaaS provider to assume the role with limited permissions, ensuring least privilege and preventing credential misuse. Option A grants excessive access, while option B creates a user with static credentials that could be misused. Option D is inappropriate as it pertains to EC2 instances rather than granting API access to a third-party application.