
Answer-first summary for fast verification
Answer: Relocate the Lambda function to the same VPC as the RDS, ensuring mutual security group allowances.
The correct answer is B. The issue is that the Lambda function cannot connect to the RDS database because they reside in different VPCs. Redeploying the Lambda function in the same VPC as the RDS instance will allow it to establish a direct connection, ensuring that proper routing and security group configurations are in place to permit traffic between the Lambda function and the RDS database.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
A developer encounters connectivity issues when a Lambda function, residing in the default VPC, attempts to access an RDS database in a separate VPC-A. What is the appropriate solution to establish connectivity?
A
Adjust the RDS security group to permit traffic from the Lambda function's environment.
B
Relocate the Lambda function to the same VPC as the RDS, ensuring mutual security group allowances.
C
Establish a Lambda-specific security group and configure the RDS security group for inbound traffic from this new group.
D
Generate an IAM role with permissions for RDS access and assign it to the Lambda function.
No comments yet.