ExamQuestions.com

Register
Login
AWS Certified Solutions Architect Professional Exam Questions

Amazon

AWS Certified Solutions Architect Professional

464 / 465

Question 464:

You have deployed a new Lambda Function and an RDS MySQL database. The Lambda is not configured in any VPC and has internet access. As the Lambda Function needs to communicate with the RDS database to fetch data, you configure the Lambda Function in the private subnet where the database resides. However, after that, the Lambda Function has lost the internet connection. How would you resolve this problem?

Answer options:

A.In the VPC private subnet, route the outbound traffic to a NAT gateway in a public subnet.
B.Create VPC endpoints for all the services that the Lambda Function needs to access.
C.Do not attach the VPC access to the Lambda Function as, by default, the Lambda Function has the internet access.
D.Attach an Internet gateway to the public subnet of the VPC. Modify the route table to use the internet gateway for all inbound and outbound traffic.