0 votes
in AWS by

You've developed a set of scripts using AWS Lambda. These scripts need to access EC2 Instances in a VPC. Which of the following needs to be done to ensure that the AWS Lambda function can access the resources in the VPC? Choose 2 answers from the options given below.

1 Answer

0 votes
by

Answer - A and C.

Options B and D are incorrect since you have to mention the Subnet and Security IDs for the Lambda function to access the resources in the VPC.The AWS Documentation mentions the following.

You can enable AWS Lambda to access resources in a Virtual Private Cloud (VPC)

Your Lambda functions can now access Amazon RDS databases, Amazon Redshift data warehouses, Amazon ElasticCache nodes, and other endpoints that are accessible only from within a particular VPC (e.g., web service running on EC2)

You must provide additional VPC-specific configuration information such as VPC subnet IDs and security group IDs in order to enable your Lambda functions to access resources in an Amazon VPC.

Related questions

0 votes
asked Apr 26 in AWS by DavidAnderson
0 votes
asked Apr 17 in AWS by DavidAnderson
...