A developer is troubleshooting a hotel reservation system. A backend microservice runs an AWS Lambda function that processes booking requests. The function is configured to connect to an Amazon Aurora PostgreSQL database deployed in private subnets within a custom VPC. After successfully updating the database, the function makes an HTTPS call to a third-party SMS gateway to send confirmation messages. During testing, database updates succeed, but the Lambda function execution fails. The Amazon CloudWatch logs show that the HTTPS request to the external SMS gateway times out, leading to a function-level timeout error: `Task timed out after seconds`. The VPC configurations are as follows: the Lambda function is associated with the same private subnets as the Aurora database; an Internet Gateway is attached to the VPC; the route tables for the private subnets have a default route () pointing directly to the Internet Gateway; and the security group associated with the Lambda function allows all outbound traffic (). Which two actions should the developer take to resolve this network connectivity issue?
- Deploy a NAT Gateway in a public subnet of the VPC.Cevap
- Update the route table of the private subnets to direct traffic destined for to the NAT Gateway.Cevap
- CMove the Lambda function configuration to use the public subnets of the VPC that have a direct route to the Internet Gateway.
- DEnable the public IP mapping configuration on the Elastic Network Interfaces (ENIs) created by the Lambda function.
- EIncrease the Lambda function timeout configuration to minutes to accommodate the connection attempts.