You are auditing security for a Lambda function that retrieves the latest changes from an Amazon Aurora database. Both Lambda and the DB are in the same VPC. Database credentials are provided through Lambda environment variables. The Lambda function aggregates data and writes it to an S3 bucket encrypted with SSE-KMS. Data must not traverse the Internet. If database credentials are compromised, the company wants to minimize impact. What should you recommend?
Choose an answer
Tap an option to check your answer.
Correct answer: Enable IAM database authentication on the Aurora DB cluster, update the Lambda function's IAM role to allow it to authenticate to the database via IAM database authentication, and create a gateway VPC endpoint for Amazon S3 in the VPC..
Why this is the answer
The correct option addresses all security requirements. Enabling IAM database authentication for Aurora eliminates the need to store static database credentials, minimizing impact if the Lambda function is compromised. Updating the Lambda function's IAM role to use this authentication method is crucial. Creating a gateway VPC endpoint for Amazon S3 ensures that data transfer to S3 remains within the AWS network and does not traverse the internet, fulfilling the requirement for private connectivity. The second incorrect option fails to ensure private S3 connectivity, as enforcing HTTPS alone does not prevent internet traversal. The third and fourth incorrect options, while improving credential management by using Parameter Store or Secrets Manager, still rely on static credentials (even if rotated) which are less secure than IAM database authentication, and the fourth option also fails to ensure private S3 connectivity.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed