exam questions

Exam AWS Certified Solutions Architect - Professional All Questions

View all questions & answers for the AWS Certified Solutions Architect - Professional exam

Exam AWS Certified Solutions Architect - Professional topic 1 question 938 discussion

A company is running a serverless application that consists of several AWS Lambda functions and Amazon DynamoDB tables. The company has created new functionality that requires the Lambda functions to access an Amazon Neptune DB cluster. The Neptune DB cluster is located in three subnets in a VPC.
Which of the possible solutions will allow the Lambda functions to access the Neptune DB cluster and DynamoDB tables? (Choose two.)

  • A. Create three public subnets in the Neptune VPC, and route traffic through an internet gateway. Host the Lambda functions in the three new public subnets.
  • B. Create three private subnets in the Neptune VPC, and route internet traffic through a NAT gateway. Host the Lambda functions in the three new private subnets.
  • C. Host the Lambda functions outside the VPC. Update the Neptune security group to allow access from the IP ranges of the Lambda functions.
  • D. Host the Lambda functions outside the VPC. Create a VPC endpoint for the Neptune database, and have the Lambda functions access Neptune over the VPC endpoint.
  • E. Create three private subnets in the Neptune VPC. Host the Lambda functions in the three new isolated subnets. Create a VPC endpoint for DynamoDB, and route DynamoDB traffic to the VPC endpoint.
Show Suggested Answer Hide Answer
Suggested Answer: BE 🗳️

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
Jesuisleon
1 year, 11 months ago
Selected Answer: BE
C and D are out due to "Lambda functions always run inside VPCs owned by the Lambda service." https://docs.aws.amazon.com/lambda/latest/operatorguide/networking-vpc.html you can't run lambda outside an VPC
upvoted 2 times
Jesuisleon
1 year, 10 months ago
A is out because you can't connect Neptune via public internet, see https://docs.aws.amazon.com/neptune/latest/userguide/security-vpc.html
upvoted 1 times
...
...
SureNot
2 years, 5 months ago
Selected Answer: BE
You can configure a Lambda function to connect to private subnets in a virtual private cloud (VPC) in your AWS account
upvoted 2 times
...
janvandermerwer
2 years, 5 months ago
Selected Answer: BE
Agree with comments.
upvoted 2 times
...
AjayPrajapati
2 years, 5 months ago
Selected Answer: BE
B & E, private subnets for the DB. VPC end point works for dynamo not for neptune DB
upvoted 3 times
...
Ni_yot
2 years, 5 months ago
Selected Answer: BE
B and E. Lambda functions can only be hosted in a private subnet
upvoted 4 times
...
xxmike89
2 years, 6 months ago
Selected Answer: BE
NeptuneDB must in VPC ; wile DynamoDB must be outside VPC
upvoted 2 times
...
skywalker
2 years, 6 months ago
Selected Answer: BE
NeptuneDB must in VPC ; wile DynamoDB must be outside VPC Thus B and E Both allow connection to DynamoDB either via NAT or VPC endpoint... E will cost lesser since no outbound traffic .
upvoted 3 times
...
JayF88
2 years, 6 months ago
Selected Answer: BE
BE is correct
upvoted 2 times
...
JohnPi
2 years, 6 months ago
Selected Answer: BE
BE is correct for option D to work you need a Network Load Balancer
upvoted 2 times
JohnPi
2 years, 6 months ago
https://docs.aws.amazon.com/neptune/latest/userguide/security-vpc.html
upvoted 1 times
...
...
joancarles
2 years, 6 months ago
Selected Answer: BE
In order to connect the lambda with de Netptune, it should reside inside the VPC. How no there are an option with and endpoint and loadbalancer, I choose the private subnets, so B. The other response that cover the Dynamodb connection , remaining the lambdas in a private subnet, so my option is E In resume, BE
upvoted 3 times
...
Biden
2 years, 6 months ago
D is wrong - if Lambda is hosted outside VPC then why VPC endpoint is needed ? Vote for B&E !
upvoted 3 times
...
Trump2022
2 years, 7 months ago
Why not A?
upvoted 1 times
...
Cloudxie
2 years, 7 months ago
Amazon Neptune only allows connections from clients located in the same VPC as the Neptune cluster. D is wrong
upvoted 4 times
...
Biden
2 years, 7 months ago
Selected Answer: BD
Lambda needs access to the Neptune DB. Host Lambda within VPC in private subnet within Neptune VPC. OR Host Lambda outside VPC and access Neptune DB using VPC Endpoints
upvoted 1 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