AWS Certified Machine Learning – Specialty — Question 137

A company provisions Amazon SageMaker notebook instances for its data science team and creates Amazon VPC interface endpoints to ensure communication between the VPC and the notebook instances. All connections to the Amazon SageMaker API are contained entirely and securely using the AWS network.
However, the data science team realizes that individuals outside the VPC can still connect to the notebook instances across the internet.
Which set of actions should the data science team take to fix the issue?

Answer options

Correct answer: B

Explanation

The correct answer is B because creating an IAM policy that restricts certain actions to only VPC endpoints ensures that access is limited to users within the VPC, preventing external access. Option A, while it modifies the security group, doesn't fully address the IAM permissions necessary for access control. Option C involves changing subnet types and may disrupt operations without solving the access issue. Option D, changing the network ACL, could potentially impact legitimate traffic within the VPC.