A model was deployed to a SageMaker endpoint inside a VPC with two private subnets and one security group. The model needs to download from and upload to an S3 bucket without any traffic traversing the internet. Which option satisfies this requirement?
Choose an answer
Tap an option to check your answer.
Correct answer: Create a gateway VPC endpoint. Configure an endpoint policy that restricts access to the S3 bucket. Configure route tables to redirect any traffic to the S3 bucket through the endpoint..
Why this is the answer
A gateway VPC endpoint is the correct choice for privately connecting to S3 from within a VPC without traversing the internet. It acts as a target for a route in your route tables for S3 traffic, ensuring all communication stays within the AWS network. An endpoint policy can then be attached to restrict access to specific S3 buckets. NAT gateways allow instances in private subnets to connect to the internet or other AWS services, but they are not designed for private S3 access and would involve internet traversal. Interface VPC endpoints are used for other AWS services (like EC2, SageMaker API) and use elastic network interfaces, not for S3. Gateway Load Balancer VPC endpoints are for deploying, scaling, and managing third-party virtual appliances, not for direct S3 connectivity.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed