AWS Certified Machine Learning Engineer – Associate (MLA-C01) — Question 175

A company deployed an Amazon SageMaker AI ML model to an endpoint by calling the CreateModel API operation. The network that was established with the API call includes two private subnets and one security group.

The model must download data from an Amazon S3 bucket and must upload data to the S3 bucket. The traffic to the S3 bucket must not travel across the internet.

Which solution will meet these requirements?

Answer options

Correct answer: B

Explanation

The correct answer is B because a gateway VPC endpoint allows private connections to Amazon S3 without routing traffic over the internet, fulfilling the requirement for secure access. Option A is incorrect as a NAT gateway would route traffic over the internet, which is against the requirement. Options C and D are also incorrect because they use interface endpoints and gateway load balancers, which are not necessary for connecting to S3 securely when a gateway VPC endpoint suffices.