MLS-C01 Modeling Practice Question
A machine learning team is using Amazon SageMaker to train a model using a custom Docker container. The training job fails with an error: 'Unable to write to /opt/ml/model'. The container does not have root access. What is the most likely cause?
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 container process does not have write permission to /opt/ml/model
SageMaker expects training containers to write the model artifact to /opt/ml/model. The container process must have write permissions to that directory. Root access is not required; the container runs with the 'sagemaker' user. The directory may not exist or permissions are wrong. The error indicates a write issue, likely permissions.
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 /opt/ml/model directory does not exist in the container
Why it's wrong here
SageMaker creates the directory, but if the container overrides it, it may not exist. However, the error is 'unable to write', not 'no such file'.
- ✗
The container is using an unsupported operating system
Why it's wrong here
SageMaker supports many OS, but the error is specific to write access.
- ✗
The container does not have internet access
Why it's wrong here
Internet access is not required to write to /opt/ml/model.
- ✓
The container process does not have write permission to /opt/ml/model
Why this is correct
The process user lacks write permissions to the directory.
Go deeper
Related to this question
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 →
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.