exam questions

Exam AWS Certified Machine Learning - Specialty All Questions

View all questions & answers for the AWS Certified Machine Learning - Specialty exam

Exam AWS Certified Machine Learning - Specialty topic 1 question 190 discussion

A healthcare company is using an Amazon SageMaker notebook instance to develop machine learning (ML) models. The company's data scientists will need to be able to access datasets stored in Amazon S3 to train the models. Due to regulatory requirements, access to the data from instances and services used for training must not be transmitted over the internet.

Which combination of steps should an ML specialist take to provide this access? (Choose two.)

  • A. Configure the SageMaker notebook instance to be launched with a VPC attached and internet access disabled.
  • B. Create and configure a VPN tunnel between SageMaker and Amazon S3.
  • C. Create and configure an S3 VPC endpoint Attach it to the VPC.
  • D. Create an S3 bucket policy that allows traffic from the VPC and denies traffic from the internet.
  • E. Deploy AWS Transit Gateway Attach the S3 bucket and the SageMaker instance to the gateway.
Show Suggested Answer Hide Answer
Suggested Answer: AC 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
dunhill
Highly Voted 1 year, 11 months ago
I think the answer is CD.
upvoted 9 times
angus
1 year, 7 months ago
A is wrong. SageMaker notebook does not need to have internet access disabled.
upvoted 2 times
...
VinceCar
1 year, 11 months ago
Agree. The setting should be relevant to S3 and VPC, not the notebook.
upvoted 3 times
drcok87
1 year, 8 months ago
if notebook is not within vpc, then having s3 bucket policy to allow traffic only from vpc will block notebook to get data from s3. A C
upvoted 1 times
...
...
...
Amit11011996
Highly Voted 1 year, 11 months ago
Selected Answer: AC
A and C seems fine
upvoted 9 times
...
delfoxete
Most Recent 8 months, 4 weeks ago
Selected Answer: CD
CD is right
upvoted 1 times
...
akgarg00
11 months, 1 week ago
AD is the answer While creating Sagemaker notebook instances we have to decide on the access (via VPC and/or direct internet). Here we will select access only from VPC. The same VPC should become a requirement to access S3 bucket via S3 bucket policy. C would have been fine but fails to mention creation of S3 access points and those access points can be restricted to VPC.
upvoted 1 times
...
backbencher2022
1 year ago
Selected Answer: AC
A&C as explained in this blog as well - https://aws.amazon.com/blogs/machine-learning/secure-amazon-s3-access-for-isolated-amazon-sagemaker-notebook-instances/
upvoted 2 times
...
loict
1 year, 1 month ago
Selected Answer: CD
A. NO - Notebook must run in a VPC (SageMaker will provision an instance), but with a private subnet there is no need to disable internet traffic B. NO - VPN tunnel is to encrypt traffic with the Internet C. YES - Endpoint will prevent S3 traffic to flow over the internet D. YES - Create an S3 bucket policy that allows traffic from the VPC and denies traffic from the internet. E. NO - AWS Transit Gateway is for multiple VPCs
upvoted 2 times
...
Mickey321
1 year, 2 months ago
Selected Answer: AC
By configuring the SageMaker notebook instance to be launched with a VPC attached and internet access disabled, the data scientists can access the resources within the VPC, such as Amazon EFS or Amazon EC2 instances, without exposing them to the internet1. This also prevents the notebook instance from accessing any resources outside the VPC, such as Amazon S3, unless a VPC endpoint is configured2. By creating and configuring an S3 VPC endpoint and attaching it to the VPC, the data scientists can access the datasets stored in Amazon S3 from the notebook instance using private IP addresses. The S3 VPC endpoint is a gateway endpoint that routes the traffic between the VPC and Amazon S3 within the AWS network, without requiring an internet gateway or a NAT device3. This also enhances the security and performance of the data access1.
upvoted 1 times
...
vbal
1 year, 3 months ago
CD : Question is about make S3 Data not accessible from Internet & VPC Endpoint Only.
upvoted 1 times
ccpmad
1 year, 3 months ago
S3 by default is not public, you don't have to deny traffic from internet. Just not make it public.
upvoted 1 times
...
...
cox1960
1 year, 6 months ago
Selected Answer: CD
the requirements are about providing secure access from notebooks to S3, nothing else.
upvoted 1 times
...
ZSun
1 year, 6 months ago
the answer is C,D. Firstly, the VPC need to connect with S3 through gateway endpoint, check "https://docs.aws.amazon.com/vpc/latest/privatelink/vpc-endpoints-s3.html" secondly, after connection is created, we need to define the policy from s3 side. restrict access to s3 only from specified VPC or VPC endpoint. "https://docs.aws.amazon.com/vpc/latest/privatelink/vpc-endpoints-s3.html#bucket-policies-s3" the confusion about A is tricky. Ideally, you need to create sagemaker in private subnet with no internet access. But I assume the question "access to the data from instances and services" only requires the process from obtaining data from s3, you don't need to specify the requirement about data egress from training service(even though disable internet connection from sagemaker is crucial)
upvoted 1 times
...
blanco750
1 year, 7 months ago
Selected Answer: AC
A and C are correct. To disable direct internet access, you can specify a VPC for your notebook instance. By doing so, you prevent SageMaker from providing internet access to your notebook instance. As a result, the notebook instance can't train or host models unless your VPC has an interface endpoint (AWS PrivateLink) or a NAT gateway and your security groups allow outbound connections. https://docs.aws.amazon.com/sagemaker/latest/dg/appendix-notebook-and-internet-access.html https://docs.aws.amazon.com/sagemaker/latest/dg/notebook-interface-endpoint.html D is wrong. Bucket policy cant be used to deny internet access. It can only enforce access from VPC or VPC endpoint
upvoted 2 times
ZSun
1 year, 6 months ago
your statement "Bucket policy cant be used to deny internet access" is completely wrong, you can either specify "Allow" or "Deny" in bucket policy, check "https://docs.aws.amazon.com/vpc/latest/privatelink/vpc-endpoints-s3.html#bucket-policies-s3" You can create a bucket policy that restricts access to a specific endpoint by using the aws:sourceVpce condition key.
upvoted 1 times
...
...
Chelseajcole
1 year, 8 months ago
Selected Answer: CD
You can use Amazon S3 bucket policies to control access to buckets from specific virtual private cloud (VPC) endpoints, or specific VPCs. This section contains example bucket policies that can be used to control Amazon S3 bucket access from VPC endpoints. Notebook doesn’t need to be created within Vpc
upvoted 1 times
Maaayaaa
1 year, 6 months ago
The question requires to access to the data from instances and services used for training must not be transmitted over the internet. So the traffic has to go through the VPC endpoints, thus the notebook has to live in the VPC.
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago