Courseiva
Machine Learning Implementation and OperationsmediumMultiple SelectObjective-mapped

MLS-C01 Practice Question: Machine Learning Implementation and Operations

Which TWO configuration steps are necessary to deploy a custom Docker container for training in Amazon SageMaker? (Choose two.)

⚠ Common exam trap

Test-takers frequently confuse the requirements for a training container versus an inference container, thinking that exposing an API endpoint or pushing to Docker Hub is necessary for training, when SageMaker strictly enforces the `/opt/ml` directory contract and uses Amazon ECR for image storage.

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

Implement the train function in the container that saves model artifacts to /opt/ml/model

Amazon SageMaker expects the training container to save model artifacts to the `/opt/ml/model` directory, which SageMaker automatically copies to Amazon S3 after training completes. This is a required contract for any custom training container used with SageMaker.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Expose a REST API endpoint for inference

    Why it's wrong here

    Training containers do not need to expose endpoints.

  • Implement the train function in the container that saves model artifacts to /opt/ml/model

    Why this is correct

    SageMaker expects the model to be saved in /opt/ml/model.

  • Define a Docker Compose file to manage multi-container training

    Why it's wrong here

    SageMaker does not use Docker Compose.

  • Include a training script that reads hyperparameters from /opt/ml/input/config/hyperparameters.json

    Why this is correct

    SageMaker passes hyperparameters in this file.

  • Push the container image to Docker Hub

    Why it's wrong here

    SageMaker requires the image to be in Amazon ECR.

Quick reference

AWS S3 Storage Class Comparison

Storage ClassMin DurationRetrievalUse Case
S3 StandardNoneImmediateFrequently accessed data
S3 Standard-IA30 daysImmediateInfrequent access, rapid retrieval
S3 One Zone-IA30 daysImmediateNon-critical infrequent data
S3 Intelligent-TieringNoneImmediate–hoursUnknown or changing access patterns
S3 Glacier Instant90 daysMillisecondsArchive with instant retrieval
S3 Glacier Flexible90 daysMinutes–hoursArchive, flexible retrieval
S3 Glacier Deep Archive180 daysHoursLong-term compliance archive

About these practice questions

One of 1,672 original MLS-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 →

How Courseiva writes practice questions · Editorial policy

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.