A machine learning engineer is using Amazon SageMaker to train a model. They want to use a custom training script. Which of the following are required to use a custom script?

Answer

The script must be compatible with the SageMaker training toolkit, The script must define a training function

Explanation

Custom scripts must be compatible with the SageMaker training toolkit and define a training function. They do not need to be in a Docker container, uploaded to S3, or written in Python (though Python is common).

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list