ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 335 - SOA-C02 discussion

Report
Export

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?

A.
Create an AWS PrivateLink interface endpoint for the Lambda function. Connect to the database using its private endpoint.
Answers
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.
Answers
B.
Connect the Lambda function to the database VPC. Connect to the database using its private endpoint.
C.
Attach an 1AM role to the Lambda function with read permissions to the database.
Answers
C.
Attach an 1AM 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.
Answers
D.
Move the database to a public subnet. Use security groups for secure access.
Suggested answer: B

Explanation:

To resolve the issue of an AWS Lambda function unable to connect to a database that has been moved to a private subnet, the Lambda function needs to be connected to the same VPC as the database. This is done by configuring the Lambda function with VPC access. This involves specifying the VPC, subnets, and security groups for the Lambda function so that it can communicate with the database using its private endpoint. Option B is correct as it directly addresses the issue without compromising security. AWS documentation on configuring VPC access for Lambda provides guidance on this setup Configuring VPC Access for Lambda.

asked 16/09/2024
DATA 7 DATA7
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first