Courseiva
Machine Learning Implementation and OperationshardMultiple ChoiceObjective-mapped

MLS-C01 Practice Question: Machine Learning Implementation and Operations

Exhibit

Refer to the exhibit.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": "sagemaker:CreateTrainingJob",
      "Resource": "*"
    },
    {
      "Effect": "Allow",
      "Action": "s3:GetObject",
      "Resource": "arn:aws:s3:::my-bucket/*"
    }
  ]
}

A data scientist attempts to create a SageMaker training job using the IAM policy shown in the exhibit. The training job fails with an access denied error. What is the most likely cause?

⚠ Common exam trap

A common mix-up: candidates assume only GetObject and PutObject are needed for S3 read/write operations, overlooking that SageMaker's S3 client implicitly calls ListBucket to verify object existence and path resolution before performing data transfers.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

The IAM policy is missing the s3:ListBucket action

The IAM policy shown in the exhibit grants s3:GetObject and s3:PutObject actions but is missing the s3:ListBucket action. When SageMaker attempts to read or write objects in an S3 bucket, it first needs to list the bucket's contents to verify the object's existence and path. Without s3:ListBucket, the training job fails with an access denied error during the initial S3 operation.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • The S3 bucket policy does not grant access to the SageMaker service principal

    Why it's wrong here

    The error is from the IAM role, not bucket policy.

  • The IAM policy is missing the sagemaker:DescribeTrainingJob permission

    Why it's wrong here

    Describe is not needed to create a job.

  • The IAM policy is missing the s3:ListBucket action

    Why this is correct

    SageMaker needs ListBucket to read objects from the bucket.

  • The IAM policy is missing the s3:PutObject permission

    Why it's wrong here

    PutObject is for writing, not reading training data.

Quick reference

AWS S3 Storage Class Comparison

Storage ClassMin DurationRetrievalUse Case
S3 StandardNoneImmediateFrequently accessed data
S3 Standard-IA30 daysImmediateInfrequent access, rapid retrieval
S3 One Zone-IA30 daysImmediateNon-critical infrequent data
S3 Intelligent-TieringNoneImmediate–hoursUnknown or changing access patterns
S3 Glacier Instant90 daysMillisecondsArchive with instant retrieval
S3 Glacier Flexible90 daysMinutes–hoursArchive, flexible retrieval
S3 Glacier Deep Archive180 daysHoursLong-term compliance archive

About these practice questions

This MLS-C01 question is part of Courseiva's 1,672-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This MLS-C01 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the MLS-C01 exam.