AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 14

A company hosts a security auditing application in an AWS account. The auditing application uses an IAM role to access other AWS accounts. All the accounts are in the same organization in AWS Organizations.
A recent security audit revealed that users in the audited AWS accounts could modify or delete the auditing application's IAM role. The company needs to prevent any modification to the auditing application's IAM role by any entity other than a trusted administrator IAM role.
Which solution will meet these requirements?

Answer options

Correct answer: A

Explanation

The correct answer is A because it implements a Service Control Policy (SCP) at the organizational level, which effectively restricts changes to the IAM role while allowing exceptions for the trusted administrator. Option B fails as it only allows changes in individual accounts, which could still lead to unauthorized modifications. Options C and D involve IAM permissions boundaries, which are not as effective in this scenario as SCPs for controlling access across multiple accounts within an organization.