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 86 discussion

A Machine Learning Specialist wants to bring a custom algorithm to Amazon SageMaker. The Specialist implements the algorithm in a Docker container supported by Amazon SageMaker.
How should the Specialist package the Docker container so that Amazon SageMaker can launch the training correctly?

  • A. Modify the bash_profile file in the container and add a bash command to start the training program
  • B. Use CMD config in the Dockerfile to add the training program as a CMD of the image
  • C. Configure the training program as an ENTRYPOINT named train
  • D. Copy the training program to directory /opt/ml/train
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
Paul_NoName
Highly Voted 3 years, 1 month ago
C seems correct as per documentations.
upvoted 17 times
...
[Removed]
Highly Voted 3 years, 1 month ago
I would answer C: https://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms-training-algo-dockerfile.html "To configure a Docker container to run as an executable, use an ENTRYPOINT instruction in a Dockerfile. SageMaker overrides any default CMD statement in a container by specifying the train argument after the image name"
upvoted 14 times
...
awsemort
Most Recent 9 months ago
Selected Answer: C
I thought it was D, but it is C. It's not D because we copy the TRAINING code into /opt/ml/code/train.py
upvoted 2 times
...
MaximusDecimus
9 months ago
In Docker, the ENTRYPOINT instruction is used to specify the executable that should be run when the container starts. However, Amazon SageMaker expects the training script to be launched by specific commands provided by SageMaker itself, rather than relying solely on the Docker container's ENTRYPOINT. The convention for using Docker containers with Amazon SageMaker is to copy the training script and associated resources to specific directories within the container, such as /opt/ml/code, and let SageMaker manage the execution of the training process. I would go with D
upvoted 1 times
...
cyberfriends
1 year ago
Selected Answer: C
C is correct
upvoted 1 times
...
Mickey321
1 year, 2 months ago
Selected Answer: C
C is correct
upvoted 1 times
...
JK1977
1 year, 5 months ago
Selected Answer: C
Amazon SageMaker requires that a custom algorithm container has an executable named train that runs your training program. This executable can be configured as an ENTRYPOINT in the Dockerfile, which specifies the default command to run when the container is launched.
upvoted 3 times
...
JK1977
1 year, 5 months ago
Selected Answer: B
Amazon SageMaker requires that a custom algorithm container has an executable named train that runs your training program. This executable can be configured as an ENTRYPOINT in the Dockerfile, which specifies the default command to run when the container is launched.
upvoted 1 times
...
Dota_addict
1 year, 5 months ago
Selected Answer: D
you are all wrong, it is D based on,https://docs.aws.amazon.com/sagemaker/latest/dg/adapt-training-container.html
upvoted 1 times
...
oso0348
1 year, 7 months ago
Selected Answer: C
To package a Docker container for use with Amazon SageMaker, the training program should be configured as an ENTRYPOINT named train in the Dockerfile. This means that the training program will be automatically executed when the container is launched by Amazon SageMaker, and it can be passed command-line arguments to specify hyperparameters or other training settings.
upvoted 1 times
...
AjoseO
1 year, 8 months ago
Selected Answer: C
The recommended option to package the Docker container for Amazon SageMaker is to configure the training program as an ENTRYPOINT named train. This is because ENTRYPOINT allows you to specify a command that will always be executed when the Docker container is run, ensuring that the training program will always run when the container is launched by Amazon SageMaker. Additionally, naming the ENTRYPOINT "train" is a convention used by Amazon SageMaker to identify the main training script.
upvoted 1 times
...
tsangckl
1 year, 11 months ago
Selected Answer: C
It's C
upvoted 1 times
...
gnolam
2 years, 1 month ago
C for sure as per AWS docs: > In your Dockerfile, use the exec form of the ENTRYPOINT instruction: > ENTRYPOINT ["python", "k-means-algorithm.py"]
upvoted 1 times
...
Juka3lj
3 years, 1 month ago
C is correct
upvoted 1 times
...
Aashi22
3 years, 1 month ago
option C https://github.com/awsdocs/amazon-sagemaker-developer-guide/blob/master/doc_source/your-algorithms-training-algo-dockerfile.md
upvoted 1 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