exam questions

Exam AWS Certified Machine Learning - Specialty All Questions

View all questions & answers for the AWS Certified Machine Learning - Specialty exam

Exam AWS Certified Machine Learning - Specialty topic 1 question 188 discussion

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?

  • 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.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
VinceCar
Highly Voted 1 year, 11 months ago
Selected Answer: B
https://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms-training-algo-dockerfile.html
upvoted 5 times
...
AIWave
Most Recent 8 months, 3 weeks ago
Selected Answer: D
The /opt/ml directory is the default directory where SageMaker expects the training script and other related files to be located. The script at location above is triggered by setting environment variable SAGEMAKER_PROGRAM and *not* through an ENTRYPOINT in docker file
upvoted 1 times
...
loict
1 year, 2 months ago
Selected Answer: B
A. NO - There is no server here, we do training not inference B. YES C. NO - path to training data is externally provided, not hardcoded in the image D. NO - /opt/ml/train is the working directory of the ENTRYPOINT
upvoted 1 times
...
Mickey321
1 year, 2 months ago
Selected Answer: B
Amazon SageMaker supports bringing custom training algorithms by using Docker containers, which are software packages that can contain all the dependencies and configurations needed to run an application. Dockerfile is a text file that contains the instructions for building a Docker image, which is a snapshot of a Docker container. ENTRYPOINT is an instruction in the Dockerfile that specifies the default executable or command that will run when the container is started. By specifying the training program in the ENTRYPOINT instruction, the ML specialist can ensure that Amazon SageMaker can run the training program automatically when it creates and runs a Docker container for the training job.
upvoted 2 times
...
wjohnny
1 year, 11 months ago
Selected Answer: B
https://docs.aws.amazon.com/sagemaker/latest/dg/adapt-training-container.html In Step 2, it is mentioned to use this instruction on dockerfile: # Defines train.py as script entrypoint ENV SAGEMAKER_PROGRAM train.py
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago