AWS Certified DevOps Engineer – Professional — Question 187

A company has provided an externally hosted third-party vendor product with access to the company's AWS account. The vendor product performs various AWS actions in the AWS account and requires various IAM permissions. The company granted the access by creating an IAM user, associating IAM policies and inserting the IAM user credentials into the vendor product.

A security review reveals that the vendor’s access is overly permissive. The company wants to apply the principle of least privilege and wants to continue giving the vendor permissions to perform only the actions that the vendor has performed in the last 6 months.

Which solution will meet these requirements with the LEAST effort?

Answer options

Correct answer: B

Explanation

The correct answer is B, as it allows the company to enforce a more restrictive permissions boundary without altering the existing IAM user policy directly. This method enables the vendor to perform only the actions they have used in the past, adhering to the principle of least privilege while maintaining the ability to modify permissions in the future. The other options either replace the IAM policy entirely or do not utilize a permissions boundary effectively.