AWS Certified Machine Learning – Specialty — Question 189
A machine learning (ML) specialist wants to bring a custom training algorithm to Amazon SageMaker. The ML specialist implements the algorithm in a Docker container that is supported by SageMaker.
How should the ML specialist package the Docker container so that SageMaker can launch the training correctly?
Answer options
- A. Specify the server argument in the ENTRYPOINT instruction in the Dockerfile.
- B. Specify the training program in the ENTRYPOINT instruction in the Dockerfile.
- C. Include the path to the training data in the docker build command when packaging the container.
- D. Use a COPY instruction in the Dockerfile to copy the training program to the /opt/ml/train directory.
Correct answer: B
Explanation
The correct answer is B because specifying the training program in the ENTRYPOINT instruction tells SageMaker how to start the training process when launching the container. Options A, C, and D are incorrect as they either do not address the training initiation or involve unnecessary steps that do not ensure proper execution of the training algorithm.