Topic 1 Question 132
A developer creates an AWS Lambda function that retrieves and groups data from several public API endpoints. The Lambda function has been updated and configured to connect to the private subnet of a VPC. An internet gateway is attached to the VPC. The VPC uses the default network ACL and security group configurations.
The developer finds that the Lambda function can no longer access the public API. The developer has ensured that the public API is accessible, but the Lambda function cannot connect to the API
How should the developer fix the connection issue?
Ensure that the network ACL allows outbound traffic to the public internet.
Ensure that the security group allows outbound traffic to the public internet.
Ensure that outbound traffic from the private subnet is routed to a public NAT gateway.
Ensure that outbound traffic from the private subnet is routed to a new internet gateway.
ユーザの投票
コメント(5)
- 正解だと思う選択肢: C
When a Lambda function is configured to connect to a VPC, it loses its default internet access. To allow the Lambda function to access the public internet, it must be connected to a private subnet in the VPC that is configured to route its traffic through a NAT Gateway (Network Address Translation Gateway).
The Internet Gateway is usually used to provide internet access to resources in the public subnet, but for resources in the private subnet, a NAT Gateway is required.
👍 3Dushank2023/09/09 - 正解だと思う選択肢: C
it leverages a NAT gateway, which is a service that enables instances in a private subnet to connect to the internet or other AWS services, but prevents the internet from initiating a connection with those instances.
👍 2cloudenthusiast2023/08/04 - 正解だと思う選択肢: C
C is correct. with Lambda, You need an IP of NAT GW to be able to access public internet.
👍 1Parsons2023/08/04
シャッフルモード