- A
The S3 bucket has a bucket policy that denies access from the SageMaker service.
Why wrong: While possible, the error is more commonly due to missing execution role permissions.
- B
The SageMaker execution role used for the training job does not have S3 access permissions.
The training job uses its own execution role, which must be granted S3 access.
- C
The training script is using an incorrect S3 bucket name.
Why wrong: A wrong bucket name would cause a NoSuchBucket error, not AccessDenied.
- D
The SageMaker training job is not configured to use the S3 VPC endpoint.
Why wrong: S3 access via VPC endpoint does not require IAM changes; the endpoint itself does not grant permissions.
Quick Answer
The most likely cause is that the SageMaker execution role used for the training job does not have S3 access permissions. This is because SageMaker separates the IAM role attached to the notebook instance, which handles interactive development, from the execution role that governs the training job’s runtime environment. Even if the notebook role has full S3 access, the training job runs under its own execution role, and an AccessDenied error means that role lacks the required s3:GetObject or s3:ListBucket actions for the specific bucket. On the AWS Certified Machine Learning Specialty MLS-C01 exam, this scenario tests your understanding of SageMaker’s role-based architecture and the common pitfall of confusing notebook roles with execution roles. A frequent trap is assuming that granting permissions to the notebook instance automatically extends to training jobs. Remember the memory tip: “Notebook for you, execution for the job”—the execution role is a separate identity that must be explicitly granted S3 permissions for training to succeed.
MLS-C01 Practice Question: Machine Learning Implementation and Operations
This MLS-C01 practice question tests your understanding of machine learning implementation and operations. The scenario asks you to isolate a root cause — eliminate options that address a different problem before choosing. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
A company is using Amazon SageMaker to train a model with a custom algorithm. The training script reads data from an S3 bucket using boto3. The training job fails with an 'AccessDenied' error when trying to access the S3 bucket. The IAM role attached to the SageMaker notebook instance has full S3 access. What is the most likely cause?
Clue words in this question
Noticing these words before you look at the options changes how you read each choice.
Clue:
"most likely"Why it matters: Probability qualifier — the question wants the most probable cause or outcome, not a guaranteed one. Eliminate low-probability options.
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 SageMaker execution role used for the training job does not have S3 access permissions.
The IAM role attached to the SageMaker notebook instance is used for interactive development, but training jobs run under a separate SageMaker execution role. Even if the notebook role has full S3 access, the training job's execution role must also have explicit S3 permissions. The 'AccessDenied' error indicates that the execution role lacks the necessary s3:GetObject or s3:ListBucket actions for the S3 bucket.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
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 has a bucket policy that denies access from the SageMaker service.
Why it's wrong here
While possible, the error is more commonly due to missing execution role permissions.
- ✓
The SageMaker execution role used for the training job does not have S3 access permissions.
Why this is correct
The training job uses its own execution role, which must be granted S3 access.
Clue confirmation
The clue word "most likely" in the question point toward this answer.
Related concept
Read the scenario before looking for a memorised answer.
- ✗
The training script is using an incorrect S3 bucket name.
Why it's wrong here
A wrong bucket name would cause a NoSuchBucket error, not AccessDenied.
- ✗
The SageMaker training job is not configured to use the S3 VPC endpoint.
Why it's wrong here
S3 access via VPC endpoint does not require IAM changes; the endpoint itself does not grant permissions.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates confuse the IAM role attached to the SageMaker notebook instance with the execution role used by the training job, assuming they are the same or that permissions propagate automatically.
Detailed technical explanation
How to think about this question
SageMaker training jobs use an IAM execution role (specified in the CreateTrainingJob API call) to assume permissions for accessing resources like S3. The notebook instance role is separate and only applies to the notebook environment. Under the hood, SageMaker uses AWS Security Token Service (STS) to assume the execution role and generate temporary credentials for the training container. A common real-world scenario is when a data scientist grants full S3 access to the notebook role but forgets to attach the same policy to the execution role, leading to failures in production pipelines.
KKey Concepts to Remember
- Read the scenario before looking for a memorised answer.
- Find the constraint that changes the correct option.
- Eliminate answers that are true in general but not in this case.
TExam Day Tips
- Watch for words such as best, first, most likely and least administrative effort.
- Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A media company stores terabytes of video archives that are accessed once a year for audit purposes. Moving these objects to a cold storage tier (Azure Archive, S3 Glacier, or Google Nearline) costs a fraction of hot storage. Questions like this test whether you understand storage tiers, access frequency tradeoffs, and retrieval latency requirements.
What to study next
Got this wrong? Here's your next step.
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
- →
Machine Learning Implementation and Operations — study guide chapter
Learn the concepts, then practise the questions
- →
Machine Learning Implementation and Operations practice questions
Targeted practice on this topic area only
- →
All MLS-C01 questions
1,755 questions across all exam domains
- →
AWS Certified Machine Learning Specialty MLS-C01 study guide
Full concept coverage aligned to exam objectives
- →
MLS-C01 practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related MLS-C01 practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Data Engineering practice questions
Practise MLS-C01 questions linked to Data Engineering.
Machine Learning Implementation and Operations practice questions
Practise MLS-C01 questions linked to Machine Learning Implementation and Operations.
Modeling practice questions
Practise MLS-C01 questions linked to Modeling.
Exploratory Data Analysis practice questions
Practise MLS-C01 questions linked to Exploratory Data Analysis.
MLS-C01 fundamentals practice questions
Practise MLS-C01 questions linked to MLS-C01 fundamentals.
MLS-C01 scenario practice questions
Practise MLS-C01 questions linked to MLS-C01 scenario.
MLS-C01 troubleshooting practice questions
Practise MLS-C01 questions linked to MLS-C01 troubleshooting.
Practice this exam
Start a free MLS-C01 practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this MLS-C01 question test?
Machine Learning Implementation and Operations — This question tests Machine Learning Implementation and Operations — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: The SageMaker execution role used for the training job does not have S3 access permissions. — The IAM role attached to the SageMaker notebook instance is used for interactive development, but training jobs run under a separate SageMaker execution role. Even if the notebook role has full S3 access, the training job's execution role must also have explicit S3 permissions. The 'AccessDenied' error indicates that the execution role lacks the necessary s3:GetObject or s3:ListBucket actions for the S3 bucket.
What should I do if I get this MLS-C01 question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
Are there clue words in this question I should notice?
Yes — watch for: "most likely". Probability qualifier — the question wants the most probable cause or outcome, not a guaranteed one. Eliminate low-probability options.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Last reviewed: Jun 11, 2026
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.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.