SOA-C02 · Question #464
A company has an application that uses a scheduled AWS Lambda function to retrieve datasets from external sources over the internet. The function is not associated with a VPC. The company is…
The correct answer is C. Reconfigure the Lambda function for VPC access. Add NAT gateways to the public subnets in the. Since the Lambda function needs to access the Amazon RDS DB instance in a private subnet while still accessing the internet, it should be configured to run within the VPC.
Question
A company has an application that uses a scheduled AWS Lambda function to retrieve datasets from external sources over the internet. The function is not associated with a VPC. The company is modifying the application to store the information that the Lambda function retrieves on an Amazon RDS DB instance in a private subnet. The VPC has two public subnets and two private subnets. A SysOps administrator must deploy a solution that allows the Lambda function to access the new database and continue to access the internet. Which solution meets these requirements?
Options
- ACreate a new Lambda function with VPC access and an Elastic IP address. Attach the function to
- BCreate a new Lambda function with VPC access and two public IP addresses. Attach the function
- CReconfigure the Lambda function for VPC access. Add NAT gateways to the public subnets in the
- DReconfigure the Lambda function for VPC access. Attach the function to the private subnets. Add
How the community answered
(34 responses)- A3% (1)
- B18% (6)
- C71% (24)
- D9% (3)
Explanation
Since the Lambda function needs to access the Amazon RDS DB instance in a private subnet while still accessing the internet, it should be configured to run within the VPC.
Topics
Community Discussion
No community discussion yet for this question.