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? (Choose two.)
A. Modify the default configuration for the Lambda function to associate it with an Amazon VPC private subnet.
B. Modify the default network access control list to allow outbound traffic.
C. Add a NAT Gateway to the VPC.
D. Modify the default configuration of the Lambda function to associate it with a VPC public subnet.
E. Add an environmental variable to the Lambda function to allow outbound internet access.
Which steps must be taken to allow the function to access both the RDS resource and the public endpoint? (Choose two.)
A. Modify the default configuration for the Lambda function to associate it with an Amazon VPC private subnet.
B. Modify the default network access control list to allow outbound traffic.
C. Add a NAT Gateway to the VPC.
D. Modify the default configuration of the Lambda function to associate it with a VPC public subnet.
E. Add an environmental variable to the Lambda function to allow outbound internet access.