AWS Certified Security – Specialty (SCS-C02) — Question 175

A security engineer is designing an IAM policy for a script that will use the AWS CLI. The script currently assumes an IAM role that is attached to three AWS managed IAM policies: AmazonEC2FullAccess, AmazonDynamoDBFullAccess, and AmazonVPCFullAccess.

The security engineer needs to construct a least privilege IAM policy that will replace the AWS managed IAM policies that are attached to this role.

Which solution will meet these requirements in the MOST operationally efficient way?

Answer options

Correct answer: A

Explanation

Option A is correct because it efficiently uses AWS CloudTrail and IAM Access Analyzer to create a least privilege policy based on actual access patterns. The other options involve unnecessary steps or do not leverage the analytical capabilities of IAM Access Analyzer, making them less operationally efficient.