AWS Certified Solutions Architect – Professional — Question 743

A solutions architect is auditing the security setup of an AWS Lambda function for a company. The Lambda function retrieves the latest changes from an Amazon Aurora database. The Lambda function and the database run in the same VPC. Lambda environment variables are providing the database credentials to the Lambda function.

The Lambda function aggregates data and makes the data available in an Amazon S3 bucket that is configured for server-side encryption with AWS KMS managed encryption keys (SSE-KMS). The data must not travel across the internet. If any database credentials become compromised, the company needs a solution that minimizes the impact of the compromise.

What should the solutions architect recommend to meet these requirements?

Answer options

Correct answer: A

Explanation

Option A is correct because IAM database authentication completely eliminates the need to store and manage database credentials, thereby minimizing the impact of credential compromise. Additionally, deploying a gateway VPC endpoint for Amazon S3 ensures that traffic between the Lambda function inside the VPC and Amazon S3 is routed entirely within the AWS network rather than over the public internet. Options B and D are incorrect because enforcing HTTPS does not prevent traffic from traversing the public internet, and Option C is less secure as it still relies on database passwords rather than passwordless IAM authentication.