Least-privilege S3 access for a SageMaker training job role

MLA-C02 Operating, Monitoring, and Securing ML and AI Solutions Medium Question 25 of 30

A company runs an Amazon SageMaker AI training job that reads training data from one Amazon S3 prefix and writes model artifacts to a second prefix in the same S3 bucket. A security review requires the execution role for the job to grant no more access than the job uses.

Which solution will meet this requirement?

Show answer and explanation

AAn inline policy granting s3:GetObject and s3:PutObject on the two prefixes

Granting the two actions the job performs on the two prefixes it touches is the only option that stops at what the job uses. AmazonSageMakerFullAccess reaches every bucket whose name contains sagemaker. An s3:* inline policy still permits delete and bucket-configuration calls across both prefixes, and a permissions boundary caps the ceiling without narrowing what the role is actually granted.

Source: docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-roles.html

Anonymous, no account needed. Your tally stays in this browser.

Next question Start 5 timed questions Browse all 30 original MLA-C02 practice questions