exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

View all questions & answers for the AWS Certified Developer - Associate DVA-C02 exam

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 132 discussion

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?

  • A. Ensure that the network ACL allows outbound traffic to the public internet.
  • B. Ensure that the security group allows outbound traffic to the public internet.
  • C. Ensure that outbound traffic from the private subnet is routed to a public NAT gateway.
  • D. Ensure that outbound traffic from the private subnet is routed to a new internet gateway.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Dushank
Highly Voted 1 year, 1 month ago
Selected Answer: 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.
upvoted 6 times
...
65703c1
Most Recent 5 months ago
Selected Answer: C
C is the correct answer.
upvoted 1 times
...
SerialiDr
9 months, 2 weeks ago
Selected Answer: C
C. Ensure that outbound traffic from the private subnet is routed to a public NAT gateway: This is the most likely solution. Lambda functions in a private subnet require a NAT (Network Address Translation) gateway or NAT instance in a public subnet to access the public internet, as private subnets do not have direct internet access. The VPC route table associated with the private subnet needs to have a route that directs internet-bound traffic to the NAT gateway.
upvoted 2 times
...
Naj_64
1 year, 2 months ago
Selected Answer: C
NAT Gateway from a public subnet is required.
upvoted 1 times
...
cmonthatsme
1 year, 2 months ago
Selected Answer: C
The Lambda function is running in a private subnet of the VPC, it needs to send outbound traffic to the internet to reach the API endpoints. To enable this, a NAT gateway is required.
upvoted 1 times
...
Parsons
1 year, 2 months ago
Selected Answer: C
C is correct. with Lambda, You need an IP of NAT GW to be able to access public internet.
upvoted 1 times
...
cloudenthusiast
1 year, 2 months ago
Selected Answer: 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.
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago