MLS-C01 Practice Question: Machine Learning Implementation and Operations
An ML team is using SageMaker Processing jobs to run feature engineering scripts. The scripts require a specific Python package not included in the default SageMaker image. How should the team provide this package?
⚠ Common exam trap
AWS often tests the misconception that runtime commands (like 'pip install' in the script) or external configuration files (like requirements.txt in S3) can modify the container environment, when in fact SageMaker Processing jobs require all dependencies to be pre-installed in the Docker image.
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
✓
Create a custom Docker image that includes the package and use it for the Processing job
SageMaker Processing jobs run in isolated Docker containers, and the default SageMaker images only include pre-installed packages. To add a custom Python package, the team must create a custom Docker image that includes the package (e.g., via a Dockerfile with 'pip install <package>'), then specify that image URI in the Processing job configuration. This ensures the package is available in the container environment before the script executes.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Include 'pip install <package>' in the processing script
Why it's wrong here
Works but slows down every run; not best practice.
- ✗
Use the SageMaker prebuilt deep learning container with the package
Why it's wrong here
Prebuilt containers may not have the required package.
- ✗
Place a requirements.txt file in the input data S3 bucket
Why it's wrong here
SageMaker does not automatically install from it.
- ✓
Create a custom Docker image that includes the package and use it for the Processing job
Why this is correct
Standard best practice for custom dependencies.
Go deeper
Related to this question
About these practice questions
Courseiva writes every MLS-C01 question from scratch — 1,672 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or 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.