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 516 discussion

A developer needs to configure an AWS Lambda function to make HTTP POST requests to an internal application. The application is in the same AWS account that hosts the function. The internal application runs on Amazon EC2 instances in a private subnet within a VPC.

Which solution will meet these requirements?

  • A. Configure a VPC endpoint to connect to the private subnet. Attach the endpoint to the Lambda function.
  • B. Attach the Lambda function to the VPC and to the private subnet.
  • C. Configure a VPN connection between the Lambda function and the private subnet. Attach the VPN to the Lambda function.
  • D. Configure the VPC route table to include the Lambda function’s IP address.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
xdeveloper
4 months ago
Selected Answer: B
When your Lambda function needs to access resources within a VPC, such as Amazon EC2 instances in a private subnet, you need to configure the Lambda function to run within that VPC. This is done by specifying the VPC, subnet(s), and security group(s) in the Lambda configuration. Once attached to the VPC and subnet, the Lambda function can make HTTP requests to the internal application running on the EC2 instances in the private subnet.
upvoted 3 times
...
YUICH
4 months, 1 week ago
Selected Answer: D
Lambda Function logs request information (e.g., timestamp, processing time, status) using the default logging mechanism. Create custom CloudWatch metrics in a specific namespace based on these logs.
upvoted 1 times
YUICH
4 months ago
Sorry I changed my opinion. The answer is B. Lambda functions do not have fixed IP addresses, making it impractical to add them to a route table. Instead, attaching the Lambda function to the VPC and configuring security groups appropriately is the recommended approach.
upvoted 3 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