- A
The training script must save the model to /opt/ml/model/saved_model instead of /opt/ml/model.
Why wrong: Wrong: Saving to /opt/ml/model is correct; SageMaker uploads the entire directory.
- B
The SageMaker execution role does not have the s3:PutObject permission for the S3 bucket.
Correct: The role needs s3:PutObject to write to S3.
- C
The output_path parameter is incorrectly formatted; it should include a trailing slash.
Why wrong: Wrong: The output_path format is correct; trailing slash is optional.
- D
The TensorFlow estimator requires the model_dir parameter to be set to the S3 output path.
Why wrong: Wrong: model_dir is not a parameter of TensorFlow estimator; output_path is used.
Quick Answer
The answer is that the SageMaker execution role lacks the `s3:PutObject` permission for the S3 bucket. Even though the bucket policy allows write access from the role, the IAM role itself must explicitly grant the `s3:PutObject` action on the bucket—SageMaker evaluates both the identity-based policy (the role) and the resource-based policy (the bucket), and a missing permission on the role side will block the upload. On the AWS Certified Machine Learning Specialty MLS-C01 exam, this question tests your understanding of how SageMaker training jobs interact with S3: the framework automatically copies everything from `/opt/ml/model` to the `output_path` after training, so the script saving to the correct directory is not the issue. A common trap is assuming a permissive bucket policy is sufficient, but the execution role’s IAM policy is the primary gatekeeper. Memory tip: think “Role first, bucket second”—the role must have the write key before the bucket can unlock the door.
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 uses Amazon SageMaker to train machine learning models. The data science team has developed a training script that uses TensorFlow. They want to run the training job on a GPU instance (ml.p3.2xlarge) and store the model artifact in Amazon S3. The training job completes successfully, but the model artifact is not saved to S3. The team has confirmed that the S3 bucket policy allows write access from the SageMaker execution role. The training script uses the TensorFlow estimator with the following configuration:
``` tensorflow_estimator = TensorFlow( entry_point='train.py', role='arn:aws:iam::123456789012:role/SageMakerExecutionRole', instance_count=1, instance_type='ml.p3.2xlarge', output_path='s3://my-bucket/output', framework_version='2.3', py_version='py37', ) ```
The train.py script saves the model using `model.save('/opt/ml/model')`. What is the MOST likely reason the model artifact is not being saved to S3?
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 does not have the s3:PutObject permission for the S3 bucket.
The TensorFlow estimator's output_path specifies where the model artifact should be uploaded after training. However, SageMaker automatically uploads the contents of /opt/ml/model to S3 at the end of training. The script is saving to the correct directory. The issue is likely that the training script is not saving the model correctly or the training fails before saving. But given the job completes successfully, the most common cause is that the SageMaker execution role does not have permission to write to the S3 bucket. The bucket policy allows write access, but the IAM role may lack the necessary S3 permissions. Option C is correct because the role needs s3:PutObject permission on the bucket. Option A is incorrect because the output_path is correctly specified. Option B is incorrect because the script saves to the right directory. Option D is incorrect because the estimator does not have a 'model_dir' parameter that overrides the default; the default is /opt/ml/model.
Key principle: NAT direction and interface roles matter as much as the IP address mapping. Inside/outside designation controls which traffic is translated.
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 training script must save the model to /opt/ml/model/saved_model instead of /opt/ml/model.
Why it's wrong here
Wrong: Saving to /opt/ml/model is correct; SageMaker uploads the entire directory.
- ✓
The SageMaker execution role does not have the s3:PutObject permission for the S3 bucket.
Why this is correct
Correct: The role needs s3:PutObject to write to S3.
Clue confirmation
The clue word "most likely" in the question point toward this answer.
Related concept
Static NAT maps one inside address to one outside address.
- ✗
The output_path parameter is incorrectly formatted; it should include a trailing slash.
Why it's wrong here
Wrong: The output_path format is correct; trailing slash is optional.
- ✗
The TensorFlow estimator requires the model_dir parameter to be set to the S3 output path.
Why it's wrong here
Wrong: model_dir is not a parameter of TensorFlow estimator; output_path is used.
Common exam traps
Common exam trap: NAT rules depend on direction and matching traffic
NAT is not only about the public address. The inside/outside interface roles and the ACL or rule that matches traffic are just as important.
Trap categories for this question
Command / output trap
Wrong: The output_path format is correct; trailing slash is optional.
Detailed technical explanation
How to think about this question
NAT questions usually test address translation, overload/PAT behaviour, static mappings and whether the right traffic is being translated. Read the interface direction and address terms carefully.
KKey Concepts to Remember
- Static NAT maps one inside address to one outside address.
- PAT allows many inside hosts to share one public address using ports.
- Inside local and inside global describe the private and translated addresses.
- NAT ACLs identify traffic for translation, not always security filtering.
TExam Day Tips
- Identify inside and outside interfaces first.
- Check whether the scenario needs static NAT, dynamic NAT or PAT.
- Do not confuse NAT matching ACLs with normal packet-filtering intent.
Key takeaway
NAT direction and interface roles matter as much as the IP address mapping. Inside/outside designation controls which traffic is translated.
Real-world example
How this comes up in practice
A startup's cloud architect reviews their monthly bill and notices costs are higher than expected for a long-running batch job. Switching from on-demand instances to Reserved Instances — or using Spot/Preemptible VMs — can reduce compute costs by up to 72 %. Questions like this test whether you understand the tradeoffs between commitment, flexibility, and cost across cloud pricing models.
What to study next
Got this wrong? Here's your next step.
Review the four NAT address types (inside local, inside global, outside local, outside global), PAT port overload, and static vs dynamic NAT use cases. Then practise related MLS-C01 NAT questions on configuration and troubleshooting.
- →
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 — Static NAT maps one inside address to one outside address..
What is the correct answer to this question?
The correct answer is: The SageMaker execution role does not have the s3:PutObject permission for the S3 bucket. — The TensorFlow estimator's output_path specifies where the model artifact should be uploaded after training. However, SageMaker automatically uploads the contents of /opt/ml/model to S3 at the end of training. The script is saving to the correct directory. The issue is likely that the training script is not saving the model correctly or the training fails before saving. But given the job completes successfully, the most common cause is that the SageMaker execution role does not have permission to write to the S3 bucket. The bucket policy allows write access, but the IAM role may lack the necessary S3 permissions. Option C is correct because the role needs s3:PutObject permission on the bucket. Option A is incorrect because the output_path is correctly specified. Option B is incorrect because the script saves to the right directory. Option D is incorrect because the estimator does not have a 'model_dir' parameter that overrides the default; the default is /opt/ml/model.
What should I do if I get this MLS-C01 question wrong?
Review the four NAT address types (inside local, inside global, outside local, outside global), PAT port overload, and static vs dynamic NAT use cases. Then practise related MLS-C01 NAT questions on configuration and troubleshooting.
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?
Static NAT maps one inside address to one outside address.
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 →
Same concept, more angles
1 more ways this is tested on MLS-C01
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. A company is using Amazon SageMaker to train a machine learning model. The training job is configured to use the File mode to download data from S3 to the training instances. The training data is stored in a single S3 bucket with multiple prefixes. Which TWO actions are required to ensure the training job can access the data? (Choose TWO.)
hard- ✓ A.Grant the SageMaker execution role s3:GetObject permission for the data bucket.
- B.Configure the training job to use Pipe mode.
- ✓ C.Specify the S3 data channel with the correct prefix.
- D.Concatenate all data files into a single file.
- E.Convert the data to RecordIO-protobuf format.
Why A: Options A and D are correct. Option A: The IAM role must have s3:GetObject permission for the bucket. Option D: The input data channel must specify the S3 URI with the correct prefix. Option B is wrong because File mode does not require RecordIO. Option C is wrong because Pipe mode is not used. Option E is wrong because File mode does not require data in a single file.
Keep practising
More MLS-C01 practice questions
- A company is using Amazon Kinesis Data Streams to ingest real-time clickstream data. The data is consumed by a Lambda fu…
- A team is building a data pipeline to process terabytes of log data daily using Amazon EMR. The data arrives in 5-minute…
- A data science team is building a real-time fraud detection system. Transactions are streamed via Amazon Kinesis Data St…
- A company uses Amazon SageMaker to train and deploy machine learning models. The training data is stored in Amazon S3 (P…
- A data engineer is building a data pipeline to process user clickstream data. The data arrives as JSON files in an S3 bu…
- A data engineering team is designing a data lake on AWS for machine learning workloads. The data includes structured, se…
Last reviewed: Jun 20, 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.