nerdexam
Amazon

SAP-C02 · Question #446

A company's solutions architect is reviewing a new internally developed application in a sandbox AWS account. The application uses an AWS Auto Scaling group of Amazon EC2 instances that have an IAM in

Sign in or unlock SAP-C02 to reveal the answer and full explanation for question #446. The question stem and answer options stay visible for context.

Submitted by luis.pe· Mar 6, 2026Continuous Improvement for Existing Solutions

Question

A company's solutions architect is reviewing a new internally developed application in a sandbox AWS account. The application uses an AWS Auto Scaling group of Amazon EC2 instances that have an IAM instance profile attached. Part of the application logic creates and accesses secrets from AWS Secrets Manager. The company has an AWS Lambda function that calls the application API to test the functionality. The company also has created an AWS CloudTrail trail in the account. The application's developer has attached the SecretsManagerReadWnte AWS managed IAM policy to an IAM role. The IAM role is associated with the instance profile that is attached to the EC2 instances. The solutions architect has invoked the Lambda function for testing. The solutions architect must replace the SecretsManagerReadWnte policy with a new policy that provides least privilege access to the Secrets Manager actions that the application requires. What is the MOST operationally efficient solution that meets these requirements?

Options

  • AGenerate a policy based on CloudTrail events for the IAM role. Use the generated policy output to
  • BCreate an analyzer in AWS Identity and Access Management Access Analyzer. Use the IAM
  • CUse the aws cloudtrail lookup-events AWS CLI command to filter and export CloudTrail events
  • DUse the IAM policy simulator to generate an IAM policy for the IAM role. Use the newly generated

Unlock SAP-C02 to see the answer

You've previewed enough free SAP-C02 questions. Unlock SAP-C02 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full SAP-C02 Practice