A serverless application uses AWS Lambda and DynamoDB. New functionality requires Lambda functions to access an Amazon Neptune DB cluster located across three subnets in a VPC. Which solutions will allow the Lambda functions to access both the Neptune cluster and DynamoDB? (Choose two.)
Choose an answer
Tap an option to check your answer.
Correct answer: Create three private subnets in the Neptune VPC and route internet-bound traffic through a NAT gateway. Configure the Lambda functions to run in those private subnets., Create three private subnets in the Neptune VPC and host the Lambda functions in those isolated private subnets. Create a VPC endpoint for DynamoDB and route DynamoDB traffic via that endpoint..
Why this is the answer
The first correct option allows Lambda functions to access the Neptune cluster within the VPC and DynamoDB (a public AWS service) via a NAT Gateway. Lambda functions in private subnets cannot directly access public internet services without a NAT Gateway. The second correct option also places Lambda functions in private subnets for Neptune access. It then uses a VPC endpoint for DynamoDB, ensuring secure and private access to DynamoDB without requiring a NAT Gateway for that specific service. The incorrect options are problematic. Hosting Lambda functions in public subnets is generally not recommended for security reasons and doesn't align with best practices for database access. Running Lambda functions outside the VPC and allowing access from their IP ranges is not feasible because Lambda's IP ranges are dynamic and not publicly documented. Creating a VPC endpoint for Neptune is not a valid solution for Lambda functions running outside the VPC, as Neptune is a VPC-bound service.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed