AWS Certified SysOps Administrator – Associate — Question 318
A SysOps administrator is re-architecting an application. The SysOps administrator has moved the database from a public subnet, where the database used a public endpoint, into a private subnet to restrict access from the public network. After this change, an AWS Lambda function that requires read access to the database cannot connect to the database. The SysOps administrator must resolve this issue without compromising security.
Which solution meets these requirements?
Answer options
- A. Create an AWS PrivateLink interface endpoint for the Lambda function. Connect to the database using its private endpoint.
- B. Connect the Lambda function to the database VPC. Connect to the database using its private endpoint.
- C. Attach an IAM role to the Lambda function with read permissions to the database.
- D. Move the database to a public subnet. Use security groups for secure access.
Correct answer: A
Explanation
Creating an AWS PrivateLink interface endpoint for the Lambda function allows it to securely and privately connect to resources within the VPC using private IP addresses. This avoids exposing the database to the public internet while resolving the connectivity issue. Moving the database back to a public subnet or relying solely on IAM roles fails to address the network routing requirements securely.