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

A Machine Learning Specialist at a company sensitive to security is preparing a dataset for model training. The dataset is stored in Amazon S3 and contains
Personally Identifiable Information (PII).
The dataset:
✑ Must be accessible from a VPC only.
✑ Must not traverse the public internet.
How can these requirements be satisfied?

  • A. Create a VPC endpoint and apply a bucket access policy that restricts access to the given VPC endpoint and the VPC.
  • B. Create a VPC endpoint and apply a bucket access policy that allows access from the given VPC endpoint and an Amazon EC2 instance.
  • C. Create a VPC endpoint and use Network Access Control Lists (NACLs) to allow traffic between only the given VPC endpoint and an Amazon EC2 instance.
  • D. Create a VPC endpoint and use security groups to restrict access to the given VPC endpoint and an Amazon EC2 instance
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
rajs
Highly Voted 3 years, 6 months ago
Important things to note here is that 1. "The Data in S3 Needs to be Accessible from VPC" 2. "Traffic should not Traverse internet" To fulfill Requirement #2 we need a VPC endpoint To RESTRICT the access to S3/Bucket - Access allowed only from VPC via VPC Endpoint Even though Sagemaker uses EC2 - we are NOT asked to secure the EC2 :) So the answer is A
upvoted 41 times
...
sdsfsdsf
Highly Voted 3 years, 6 months ago
Between A & B, the answer should be A. From here: https://docs.aws.amazon.com/vpc/latest/userguide/vpc-endpoints-s3.html#vpc-endpoints-s3-bucket-policies We can see that we restrict access using DENY if sourceVpce (vpc endpoint), or sourceVpc (vpc) is not equal to our VPCe/VPC. So we are using a DENY (choice A) and not an ALLOW policy (choice B). Choices C, D we eliminate because they don't address S3 access at all.
upvoted 12 times
...
JonSno
Most Recent 2 months, 1 week ago
Selected Answer: A
Create a VPC endpoint and apply a bucket access policy that restricts access to the given VPC endpoint and the VPC. Why is this correct? VPC endpoint for S3 allows private connectivity between Amazon S3 and the VPC without using the public internet. Bucket access policy can be written to allow access only from this VPC endpoint. This ensures maximum security by: Preventing access from outside the VPC. Blocking public access.
upvoted 2 times
...
AjoseO
7 months ago
Selected Answer: A
In Option A, the Machine Learning Specialist would create a VPC endpoint for Amazon S3, which would allow traffic to flow directly between the VPC and Amazon S3 without traversing the public internet. Access to the S3 bucket containing PII can then be restricted to the VPC endpoint and the VPC using a bucket access policy. This would ensure that only instances within the VPC can access the data, and that the data does not traverse the public internet. Option B and D, allowing access from an Amazon EC2 instance, would not meet the requirement of not traversing the public internet, as the EC2 instance would be accessible from the internet. Option C, using Network Access Control Lists (NACLs) to allow traffic between only the VPC endpoint and an EC2 instance, would also not meet the requirement of not traversing the public internet, as the EC2 instance would still be accessible from the internet.
upvoted 1 times
...
loict
7 months ago
Selected Answer: A
A. YES - We first create a S3 endpoint in the VPC subnet so traffic does not flow through the Internet, then on the S3 bucket create an access policy that restricts access to the given VPC based on its ID B. NO - we don't want to be specific to an instance C. NO - the S3 bucket is on AWS network, you cannot change the NACL for it D. NO - not all instances in a VPC will necessarily have the same principal that can be specified in the policy
upvoted 2 times
...
Mickey321
1 year, 8 months ago
Selected Answer: A
Definetly A
upvoted 1 times
...
kaike_reis
1 year, 9 months ago
Selected Answer: A
Well, but removing methodology, only A remains: The question never cited EC2
upvoted 3 times
...
ADVIT
1 year, 10 months ago
Per https://docs.aws.amazon.com/AmazonS3/latest/userguide/example-bucket-policies-vpc-endpoint.html it's A
upvoted 1 times
...
exam887
2 years, 11 months ago
Selected Answer: A
The question do not mention EC2 at all, so should be A
upvoted 4 times
...
dunhill
3 years, 3 months ago
I think it should be B. Traning instance is a EC2 instance and need to be set an endpoint to load the data from S3.
upvoted 1 times
...
[Removed]
3 years, 5 months ago
Selected Answer: B
AWS security is a conservative security model, which implies that access are denied by default rather than granted by default. We have to explicitly allow access to a AWS resource. Additionally, B talks about allowing access FROM the VPC to S3 while A talks about allowing access from S3 to VPC (which is not what we need). So, B.
upvoted 2 times
cpal012
2 years, 1 month ago
Um, no. A VPC endpoint is outbound from the VPC to a supported AWS service.
upvoted 1 times
...
...
technoguy
3 years, 5 months ago
Will go with B
upvoted 1 times
...
spamicho
3 years, 5 months ago
Betting on B here, we should control access from VPC, not to VPC.
upvoted 1 times
...
achiko
3 years, 5 months ago
A! Restricting access to a specific VPC endpoint The following is an example of an Amazon S3 bucket policy that restricts access to a specific bucket, awsexamplebucket1, only from the VPC endpoint with the ID vpce-1a2b3c4d. The policy denies all access to the bucket if the specified endpoint is not being used. The aws:SourceVpce condition is used to specify the endpoint. https://docs.aws.amazon.com/AmazonS3/latest/userguide/example-bucket-policies-vpc-endpoint.html
upvoted 2 times
...
senseikimoji
3 years, 6 months ago
Can't be B. You simple cannot enable access to an endpoint to some selected instance. So A.
upvoted 1 times
Huy
3 years, 5 months ago
We shouldn't use private IP in bucket policy.
upvoted 1 times
...
cloud_trail
3 years, 5 months ago
B does not say enable access TO the VPC endpoint. It says to allow access FROM the endpoint. So B is the correct answer. A talks about restricting access TO the VPC endpoint, so that option is irrelevant. We're worried about access TO the S3 bucket, not access to the VPC. The question is not poorly-worded, but it is tricky and you need to read it carefully.
upvoted 1 times
...
...
yeetusdeleetus
3 years, 6 months ago
I also vote A.
upvoted 1 times
...
Thai_Xuan
3 years, 6 months ago
A found here "You can control which VPCs or VPC endpoints have access to your buckets by using Amazon S3 bucket policies. For examples of this type of bucket policy access control, see the following topics on restricting access." https://docs.aws.amazon.com/AmazonS3/latest/dev/example-bucket-policies-vpc-endpoint.html
upvoted 3 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