Question 448:
You write a Lambda function that needs to connect to an RDS MySQL database. You use a CD pipeline to deploy the Lambda function in the same VPC subnet as the RDS database so that they can communicate. However, you find that the deployed Lambda function is not able to connect to the internet. How would you resolve this problem?
Answer options:
A.Modify the pipeline to deploy the Lambda function in the default VPC rather than the same VPC as RDS. B.Configure a NAT gateway in the VPC and route the outbound traffic to the NAT gateway. C.Deploy the Lambda function outside of the custom VPC.D.Open the outgoing port in the Lambda function access control list.