Medium1 markMultiple Choice

AWS SAP-C02 · Question 72 · Domain 2.1: Deployment Strategy

An architect is designing a serverless application using AWS Lambda. The function needs to access a database hosted in a private subnet of a VPC. When the Lambda function is attached to the VPC, it loses internet access and can no longer call the AWS Systems Manager Parameter Store API. How can this be fixed MOST securely?

Answer options:

A.

Attach an Elastic IP to the Lambda function.

B.

Move the Lambda function to a public subnet.

C.

Create a VPC Interface Endpoint (AWS PrivateLink) for Systems Manager in the private subnet.

D.

Deploy a NAT Gateway in the private subnet.

How to approach this question

Use VPC Endpoints for private AWS API access.

Full Answer

C.Create a VPC Interface Endpoint (AWS PrivateLink) for Systems Manager in the private subnet.✓ Correct
When a Lambda function is connected to a VPC, it routes all outbound traffic through the VPC. To access AWS services like SSM securely without a NAT Gateway and internet access, you should use VPC Interface Endpoints (PrivateLink).

Common mistakes

Trying to put a NAT Gateway in a private subnet.

Practice the full AWS Solutions Architect Professional SAP-C02 Practice Exam 2

75 questions · hints · full answers · grading

More questions from this exam