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

A data scientist is using an Amazon SageMaker notebook instance and needs to securely access data stored in a specific Amazon S3 bucket.
How should the data scientist accomplish this?

  • A. Add an S3 bucket policy allowing GetObject, PutObject, and ListBucket permissions to the Amazon SageMaker notebook ARN as principal.
  • B. Encrypt the objects in the S3 bucket with a custom AWS Key Management Service (AWS KMS) key that only the notebook owner has access to.
  • C. Attach the policy to the IAM role associated with the notebook that allows GetObject, PutObject, and ListBucket operations to the specific S3 bucket.
  • D. Use a script in a lifecycle configuration to configure the AWS CLI on the instance with an access key ID and secret.
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
tgaos
Highly Voted 2 years, 5 months ago
Agree with the Answer C. Attach the policy to the IAM roal associated with the notebook.
upvoted 9 times
...
salads
Highly Voted 2 years, 2 months ago
Selected Answer: C
c is the right answer
upvoted 8 times
...
rav009
Most Recent 5 months, 2 weeks ago
Selected Answer: C
Amazon SageMaker notebook ARN , I don't think there is such a thing. So A is not right . So C
upvoted 1 times
...
CloudHandsOn
9 months, 3 weeks ago
Selected Answer: C
C. Attach policy to IAM role associated with the notebook: This is a standard and recommended approach in AWS. By attaching a policy to the IAM role that the SageMaker notebook instance assumes, you can precisely control the notebook's access to the specific S3 bucket. This method follows the AWS best practice of using IAM roles for managing permissions and also allows for easier management and scalability. A. Add an S3 bucket policy: This approach involves modifying the S3 bucket policy to grant permissions directly to the SageMaker notebook instance's ARN. While this method can effectively grant access, it is less flexible and scalable compared to using IAM roles. It directly ties the bucket's access policy to a specific resource (the notebook instance), which might not be ideal for managing access in a larger environment.
upvoted 1 times
...
Mickey321
1 year, 2 months ago
Selected Answer: C
The best way for the data scientist to securely access data stored in a specific Amazon S3 bucket from an Amazon SageMaker notebook instance is option C, attach the policy to the IAM role associated with the notebook that allows GetObject, PutObject, and ListBucket operations to the specific S3 bucket. By doing so, the data scientist can use IAM role-based access control to grant permissions to the notebook instance to access the S3 bucket without exposing any credentials or keys. The data scientist can also limit the scope of the permissions to only the necessary operations and resources, following the principle of least privilege.
upvoted 1 times
...
ccpmad
1 year, 3 months ago
Selected Answer: C
Option A suggests adding an S3 bucket policy, but it is not the recommended way to grant permissions to specific IAM roles associated with SageMaker notebook instances. Bucket policies are generally used for granting cross-account access or public access, not for specifying access for specific IAM roles.
upvoted 1 times
...
tigercorp
1 year, 3 months ago
An IAM policy cannot attach to an ARN. An IAM policy can only attach to an IAM role or an IAM user. So the answer is C
upvoted 2 times
...
mirik
1 year, 3 months ago
Selected Answer: A
A - we allow access to specific notebook. AIM role policy can be global and related to all user notebooks.
upvoted 1 times
mirik
1 year, 3 months ago
On the other hand, in C they state "specific S3 bucket" and in the A - only "an S3 bucket". Maybe in A they add global policy to allow access to all S3 buckets?
upvoted 1 times
...
...
ZSun
1 year, 6 months ago
AC are both correct answer, but A is better than C, mostly due to the limitation of IAM policy. IAM policies: The maximum size of an IAM policy document is 6,144 characters. You can attach up to 10 policies to an IAM user, role, or group.
upvoted 1 times
...
AjoseO
1 year, 8 months ago
Selected Answer: C
Option C ensures that the notebook instance is granted permission to access the S3 bucket without the need to provide credentials. Option A is incorrect because it suggests adding a bucket policy that grants permission to a specific IAM principal, which is less secure than granting permission to an IAM role.
upvoted 1 times
ZSun
1 year, 6 months ago
I dont agree with this. Restrict bucket access only to limited principal is much secure than grant specific IAM prinicap. Restrict specific principal eliminate other visits, but grant specific IAM user permission does not exclude other visit.
upvoted 1 times
...
...
Shailendraa
2 years, 1 month ago
12-sep exam
upvoted 4 times
...
[Removed]
2 years, 4 months ago
C is correct
upvoted 4 times
...
edvardo
2 years, 5 months ago
Selected Answer: A
Quoting the book "Data Science on AWS": "Generally, we would use IAM identity-based policies if we need to define permissions for more than just S3, or if we have a number of S3 buckets, each with different permissions requirements. We might want to keep access control policies in the IAM environment. We would use S3 bucket policies if we need a simple way to grant cross-account access to our S3 environment without using IAM roles, or if we reach the size limit for our IAM policy. We might want to keep access control policies in the S3 environment." A would be the choice then.
upvoted 3 times
VinceCar
1 year, 11 months ago
For A, only some operations are allowed, no specified users or roles have been granted this permission for these operations.
upvoted 1 times
...
dunhill
1 year, 12 months ago
I am not sure but in question we don't have cross-account situation?
upvoted 1 times
...
colin1919
2 years ago
Based on this logic indeed A would be better.
upvoted 1 times
...
...
ayatkhrisat
2 years, 5 months ago
Selected Answer: B
B is the answer
upvoted 1 times
VinceCar
1 year, 11 months ago
Only "securely access" is required, not encryption.
upvoted 1 times
...
...
bluer1
2 years, 6 months ago
A - for me
upvoted 2 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