AWS Certified Developer Associate (#149)

An AWS Lambda function must read data from an Amazon RDS MySQL database in a VPC and also reach a public endpoint over the internet to get additional data. Which steps must be taken to allow the function to access both the RDS resource and the public endpoint? (Select TWO.)

Modify the default configuration for the Lambda function to associate it with an Amazon VPC private subnet.
Modify the default network access control list to allow outbound traffic.
Add a NAT Gateway to the VPC.
Modify the default configuration of the Lambda function to associate it with a VPC public subnet.
Add an environmental variable to the Lambda function to allow outbound internet access.