AWS Certified Solutions Architect – Professional (SAP-C02) — Question 124

An AWS partner company is building a service in AWS Organizations using its organization named org1. This service requires the partner company to have access to AWS resources in a customer account, which is in a separate organization named org2. The company must establish least privilege security access using an API or command line tool to the customer account.

What is the MOST secure way to allow org1 to access resources in org2?

Answer options

Correct answer: D

Explanation

Option D is the most secure approach as it involves creating an IAM role with a trust policy that includes an external ID, ensuring that only the intended partner can assume the role. Option A is insecure because sharing access keys compromises account security. Option B is also less secure, as it involves creating an IAM user, which can lead to credential exposure. Option C lacks the external ID, making it less secure than Option D.