ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 43 - MLS-C01 discussion

Report
Export

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.
Answers
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.
Answers
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.
Answers
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.
Answers
D.
Use a script in a lifecycle configuration to configure the AWS CLI on the instance with an access key ID and secret.
Suggested answer: C

Explanation:

The best way to securely access data stored in a specific Amazon S3 bucket from an Amazon SageMaker notebook instance is to attach a policy to the IAM role associated with the notebook that allows GetObject, PutObject, and ListBucket operations to the specific S3 bucket. This way, the notebook can use the AWS SDK or CLI to access the S3 bucket without exposing any credentials or requiring any additional configuration. This is also the recommended approach by AWS for granting access to S3 from SageMaker.References:

Amazon SageMaker Roles

Accessing Amazon S3 from a SageMaker Notebook Instance

asked 16/09/2024
Amy Sukkar
40 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first