hardMultiple ChoiceObjective-mapped
MLA-C01 Practice Question: A SageMaker endpoint is failing with the…
Exhibit
Refer to the exhibit. [ERROR] 2022-12-01 10:15:30,123 – model_server – ModelLoadFailed: Unable to load model from /opt/ml/model. Parsed error: FileNotFoundError: [Errno 2] No such file or directory: '/opt/ml/model/classes.txt' This log is from a SageMaker endpoint instance. The model was packaged as a tar.gz containing model.pth, classes.txt, and inference.py. The Docker container uses the SageMaker inference toolkit.
A SageMaker endpoint is failing with the exhibited error. What is the most likely cause of this error?
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 model archive uploaded to S3 does not contain the 'classes.txt' file.
The error indicates that 'classes.txt' is missing from /opt/ml/model. Most likely, the file was not included in the model archive or the archive was not extracted properly.
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 Docker container does not have the necessary IAM role to read the model artifacts.
Why it's wrong here
IAM role issue would cause a different error (e.g., AccessDenied) not a file not found.
- ✓
The model archive uploaded to S3 does not contain the 'classes.txt' file.
Why this is correct
If the file is missing from the tar.gz, the endpoint cannot find it.
- ✗
The inference script is referencing the wrong path for the model directory.
Why it's wrong here
The error clearly says the file does not exist, not a misconfiguration.
- ✗
The SageMaker endpoint does not have internet access to download the model from S3.
Why it's wrong here
Endpoint downloads model before starting; the error is about missing file, not network.
Go deeper
Related to this question
About these practice questions
One of 835 original MLA-C01 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This MLA-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 MLA-C01 exam.