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 43 discussion

A Data Science team within a large company uses Amazon SageMaker notebooks to access data stored in Amazon S3 buckets. The IT Security team is concerned that internet-enabled notebook instances create a security vulnerability where malicious code running on the instances could compromise data privacy.
The company mandates that all instances stay within a secured VPC with no internet access, and data communication traffic must stay within the AWS network.
How should the Data Science team configure the notebook instance placement to meet these requirements?

  • A. Associate the Amazon SageMaker notebook with a private subnet in a VPC. Place the Amazon SageMaker endpoint and S3 buckets within the same VPC.
  • B. Associate the Amazon SageMaker notebook with a private subnet in a VPC. Use IAM policies to grant access to Amazon S3 and Amazon SageMaker.
  • C. Associate the Amazon SageMaker notebook with a private subnet in a VPC. Ensure the VPC has S3 VPC endpoints and Amazon SageMaker VPC endpoints attached to it.
  • D. Associate the Amazon SageMaker notebook with a private subnet in a VPC. Ensure the VPC has a NAT gateway and an associated security group allowing only outbound connections to Amazon S3 and Amazon SageMaker.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
DonaldCMLIN
Highly Voted 2 years, 7 months ago
NAT gateway COULD GO OUT TO THE INTERNET AND DOWNLOAD BACK MALICIOUS D. IS NOT A GOOD ANSWER. THE SAFE ONE IS ANSWER C. ASSOCIATE WITH VPC_ENDPOINT AND S3_ENDPOINT
upvoted 35 times
...
BigEv
Highly Voted 2 years, 7 months ago
C is correct We must use the VPC endpoint (either Gateway Endpoint or Interface Endpoint)to comply with this requirement "Data communication traffic must stay within the AWS network". https://docs.aws.amazon.com/sagemaker/latest/dg/notebook-interface-endpoint.html
upvoted 23 times
...
loict
Most Recent 8 months ago
Selected Answer: C
A. NO - We don't place a S3 bucket in a VPC, it is always in AWS Service Account B. NO - without an S3 VPC endpoint, traffic will go through the Internet C. YES - we need endpoints for both SageMaker and S3 to avoid Internet traffic D. NO - we need endpoints for both SageMaker and S3 to avoid Internet traffic
upvoted 2 times
...
Mickey321
8 months, 2 weeks ago
Selected Answer: C
Option C
upvoted 1 times
...
kaike_reis
9 months, 2 weeks ago
Selected Answer: C
C is the correct. A is not so correct, because it's possible to communicate two different VPCs inside AWS network (which is not optimized).
upvoted 1 times
...
AjoseO
1 year, 3 months ago
Selected Answer: C
This configuration would meet the company's requirements for security, as the notebook instance would be placed within a private subnet in a VPC, and data communication traffic would stay within the AWS network through the use of VPC endpoints for S3 and Amazon SageMaker. Additionally, the VPC would not have internet access, further reducing the security risk.
upvoted 2 times
...
rb39
1 year, 7 months ago
C - "and data communication traffic must stay within the AWS network." that discards D
upvoted 2 times
...
StelSen
2 years, 6 months ago
Answer should be C. Because, Security team don't want Internet Access, Option-D has NAT and will get to Internet somehow. Also connecting S3 and SageMaker EC2 instance via VPC endpoints is best way to secure the resources.
upvoted 4 times
...
cloud_trail
2 years, 6 months ago
Using a NAT gateway is the old way to do it. Option C is the way to do it now. https://cloudacademy.com/blog/vpc-endpoint-for-amazon-s3/#:~:text=Accessing%20S3%20the%20old%20way%20%28without%20VPC%20Endpoint%29,has%20no%20access%20to%20any%20outside%20public%20resources
upvoted 2 times
...
harmanbirstudy
2 years, 6 months ago
"and data communication traffic must stay within the AWS network" , NAT gateway will always go over the Internet to access S3.with NAT you can put your instances in private subnet and NAT itself in public subnet , but still in order to access S3 it will go over the internet. SO answer cannot be D. -- C is the only correct option here , as S3 VPC endpoints is a real thing "google it" and it sole purpose is to create route from VPC endpoint to S3 , without going over the Internet.
upvoted 3 times
...
scuzzy2010
2 years, 6 months ago
C is correct answer. D is only applicable -"If your model needs access to an AWS service that doesn't support interface VPC endpoints or to a resource outside of AWS, create a NAT gateway and configure your security groups to allow outbound connections. " https://docs.aws.amazon.com/sagemaker/latest/dg/host-vpc.html
upvoted 3 times
...
v24143
2 years, 6 months ago
D is correct
upvoted 1 times
...
krakow1234
2 years, 6 months ago
Answer is D, read third paragraph https://docs.aws.amazon.com/sagemaker/latest/dg/appendix-notebook-and-internet-access.html
upvoted 1 times
...
Potato_Noodle
2 years, 6 months ago
NAT is the way that a VPC connect to internet and other ASW service when there is NO INTERNET ACCESS FOR VPC. Thus the answer is D.
upvoted 1 times
...
Th3Dud3
2 years, 6 months ago
"concerned that internet-enabled notebook instances create a security vulnerability where malicious code running on the instances could compromise data privacy." NAT Gateway does not mitigate this risk!
upvoted 2 times
yeetusdeleetus
2 years, 6 months ago
This is the correct answer. If this answer is confusing, study some of the associate exams before going for this one. VPC endpoint and NAT gateway are similar, but NAT gateway is for giving resources in the VPC the chance to initiate connections with the internet, whereas a VPC endpoint only allows it to go to other AWS services, which is the best solution for this question.
upvoted 2 times
...
...
Th3Dud3
2 years, 6 months ago
C: If you configure your VPC so that it doesn't have internet access, models that use that VPC do not have access to resources outside your VPC. If your model needs access to resources outside your VPC, provide access with one of the following options: If your model needs access to an AWS service that supports interface VPC endpoints, create an endpoint to connect to that service. For a list of services that support interface endpoints, see VPC Endpoints in the Amazon VPC User Guide. For information about creating an interface VPC endpoint, see Interface VPC Endpoints (AWS PrivateLink) in the Amazon VPC User Guide. If your model needs access to an AWS service that doesn't support interface VPC endpoints or to a resource outside of AWS, create a NAT gateway and configure your security groups to allow outbound connections. For information about setting up a NAT gateway for your VPC, see Scenario 2: VPC with Public and Private Subnets (NAT) in the Amazon Virtual Private Cloud User Guide.
upvoted 5 times
...
sebtac
2 years, 6 months ago
what is the difference between A & C? are both answers OK?
upvoted 1 times
jrff
1 year, 6 months ago
It is not enough for sagemaker to communicate to S3 if both of them are inside the same VPC. Sagamaker inside a VPC needs to create a endpoint to connect to other AWS services which has endpoint too.
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