SOA-C02 · Question #717
A company deploys AWS infrastructure in a VPC that has an internet gateway. The VPC has public subnets and private subnets. An Amazon RDS for MySQL DB instance is deployed in a private subnet. An…
The correct answer is C. Deploy a NAT gateway. Update the private subnet's route table to route all traffic to the NAT D. Create an interface endpoint for Amazon SQS in the VPC. A NAT gateway with a route from the private subnet lets the Lambda function reach SQS’s public An interface VPC endpoint for SQS provides private connectivity to SQS without internet. Either restores outbound access so the publish call succeeds.
Question
A company deploys AWS infrastructure in a VPC that has an internet gateway. The VPC has public subnets and private subnets. An Amazon RDS for MySQL DB instance is deployed in a private subnet. An AWS Lambda function uses the same private subnet and connects to the DB instance to query data. A developer modifies the Lambda function to require the function to publish messages to an Amazon Simple Queue Service (Amazon SQS) queue. After these changes, the Lambda function times out when it tries to publish messages to the SQS queue. Which solutions will resolve this issue? (Choose two.)
Options
- AReconfigure the Lambda function so that the function is not connected to the VPC.
- BDeploy an RDS proxy. Configure the Lambda function to connect to the DB instance through the
- CDeploy a NAT gateway. Update the private subnet's route table to route all traffic to the NAT
- DCreate an interface endpoint for Amazon SQS in the VPC.
- ECreate a gateway endpoint for Amazon SQS in the VPC.
How the community answered
(32 responses)- A3% (1)
- B6% (2)
- C81% (26)
- E9% (3)
Explanation
A NAT gateway with a route from the private subnet lets the Lambda function reach SQS’s public An interface VPC endpoint for SQS provides private connectivity to SQS without internet. Either restores outbound access so the publish call succeeds.
Topics
Community Discussion
No community discussion yet for this question.