Add an interface VPC endpoint for Secrets Manager
Short answer
C An interface VPC endpoint for Secrets Manager keeps Lambda-to-Secrets-Manager traffic private and off the internet.
Question
Key Takeaways
Secrets Manager is reached via an interface (PrivateLink) endpoint, not a gateway endpoint. An interface endpoint gives private DNS and keeps Lambda-to-Secrets-Manager traffic off the public internet—the most secure option. A NAT gateway (A) or internet gateway (D) would route through the internet and contradict the no-internet design; a gateway endpoint (B) is for S3/DynamoDB and does not serve Secrets Manager. C is correct.
In a VPC with no internet, a Secrets Manager rotation Lambda in the VPC cannot reach the Secrets Manager endpoint. The most secure fix is an interface VPC endpoint (PrivateLink) for Secrets Manager, which keeps traffic on the AWS private network without needing internet, NAT, or an internet gateway. A gateway endpoint exists for S3/DynamoDB, not Secrets Manager; NAT/internet gateway would expose the VPC to the internet.
Common mistake: Choosing a gateway VPC endpoint (B)—gateway endpoints support only S3 and DynamoDB, not Secrets Manager. Choosing NAT/internet gateway (A/D)—they introduce internet routing, which is less secure and conflicts with the no-internet VPC. Interface endpoint (C) is the private, purpose-built path.
Expert Analysis
Why the Answer Is Correct
Secrets Manager is accessed through an interface (PrivateLink) VPC endpoint, which creates a private ENI with private DNS inside the VPC so the Lambda function reaches the service entirely on the AWS network—no internet, NAT, or internet gateway required. This is the most secure way to satisfy the no-internet design.
Why the Other Options Are Wrong
B (gateway endpoint) supports only S3 and DynamoDB, not Secrets Manager. A (NAT gateway) and D (internet gateway) route traffic to the public internet, which is less secure and violates the no-internet VPC. C is the private, purpose-built solution.
Community Comment Notes
Community voted C (100). Commenters quoted AWS docs: establish a private connection to Secrets Manager by creating an interface VPC endpoint. B was excluded as gateway endpoints do not cover Secrets Manager. C confirmed.
Official Reference
https://docs.aws.amazon.com/secretsmanager/latest/userguide/vpc-endpoint-overview.html
This link opens the official vendor documentation in a new tab.
Community Votes
100% of anonymous learners picked answer C. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 3 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 3
-
jade290 👍 4 Answered C"You can establish a private connection between your VPC and Secrets Manager by creating an interface VPC endpoint." https://docs.aws.amazon.com/secretsmanager/latest/userguide/vpc-endpoint-overview.html
-
Zek 👍 4C Similar quesstion: https://docs.aws.amazon.com/secretsmanager/latest/userguide/vpc-endpoint-overview.html
-
NimiBes 👍 1 Answered CI think C
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.