AWS Certified Solutions Architect – Professional — Question 752

An external audit of a company's serverless application reveals IAM policies that grant too many permissions. These policies are attached to the company's AWS Lambda execution roles. Hundreds of the company's Lambda functions have broad access permissions, such as full access to Amazon S3 buckets and Amazon DynamoDB tables. The company wants each function to have only the minimum permissions that the function needs to complete its task.

A solutions architect must determine which permissions each Lambda function needs.

What should the solutions architect do to meet this requirement with the LEAST amount of effort?

Answer options

Correct answer: B

Explanation

AWS Identity and Access Management Access Analyzer can automatically analyze AWS CloudTrail logs to generate fine-grained, least-privilege IAM policies, which minimizes manual effort compared to writing custom scripts or using Amazon EMR. Amazon CodeGuru is designed for code quality and performance profiling, not for generating IAM policies. Therefore, using IAM Access Analyzer with CloudTrail logging provides the most automated and least-effort path to secure the Lambda execution roles.