nerdexam
Amazon

SAA-C03 · Question #213

A company wants to deploy an AWS Lambda function that will read and write objects to Amazon S3 bucket. The Lambda function must be connected to the company's VPC. The company must deploy the Lambda fu

The correct answer is C. Create a gateway VPC endpoint for the S3 bucket. D. Create an interface VPC endpoint for the S3 bucket.. Configure a VPC-connected Lambda function in private subnets to access S3 while blocking internet access.

Submitted by amina.ke· Mar 4, 2026Design Secure Architectures

Question

A company wants to deploy an AWS Lambda function that will read and write objects to Amazon S3 bucket. The Lambda function must be connected to the company's VPC. The company must deploy the Lambda function only to private subnets in the VPC. The Lambda function must not be allowed to access the internet. Which solutions will meet these requirements? (Select TWO.)

Options

  • ACreate a private NAT gateway to access the S3 bucket.
  • BAttach an Elastic IP address to the NAT gateway.
  • CCreate a gateway VPC endpoint for the S3 bucket.
  • DCreate an interface VPC endpoint for the S3 bucket.
  • ECreate a public NAT gateway to access the S3 bucket.

How the community answered

(30 responses)
  • A
    3% (1)
  • B
    7% (2)
  • C
    80% (24)
  • E
    10% (3)

Why each option

Configure a VPC-connected Lambda function in private subnets to access S3 while blocking internet access.

ACreate a private NAT gateway to access the S3 bucket.

A private NAT gateway provides outbound internet access from private subnets and does not enable private communication with AWS services like S3; it violates the 'no internet access' requirement for S3 communication.

BAttach an Elastic IP address to the NAT gateway.

Attaching an Elastic IP address is necessary for a public NAT gateway, which provides outbound internet access, directly conflicting with the requirement to block internet access.

CCreate a gateway VPC endpoint for the S3 bucket.Correct

A gateway VPC endpoint provides a secure and private connection directly from a VPC to Amazon S3, allowing the Lambda function to access S3 objects without needing to traverse the public internet.

DCreate an interface VPC endpoint for the S3 bucket.Correct

An interface VPC endpoint (powered by AWS PrivateLink) can also be used for private access to Amazon S3, providing a network interface within the private subnets for the Lambda function to connect to S3 without internet access.

ECreate a public NAT gateway to access the S3 bucket.

Creating a public NAT gateway enables outbound internet access from private subnets, which explicitly violates the requirement that the Lambda function must not be allowed to access the internet.

Concept tested: VPC endpoints for private S3 access

Source: https://docs.aws.amazon.com/vpc/latest/userguide/vpc-endpoints-s3.html

Community Discussion

No community discussion yet for this question.

Full SAA-C03 Practice