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

A Machine Learning Specialist is packaging a custom ResNet model into a Docker container so the company can leverage Amazon SageMaker for training. The
Specialist is using Amazon EC2 P3 instances to train the model and needs to properly configure the Docker container to leverage the NVIDIA GPUs.
What does the Specialist need to do?

  • A. Bundle the NVIDIA drivers with the Docker image.
  • B. Build the Docker container to be NVIDIA-Docker compatible.
  • C. Organize the Docker container's file structure to execute on GPU instances.
  • D. Set the GPU flag in the Amazon SageMaker CreateTrainingJob request body.
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
vetal
Highly Voted 3 years, 7 months ago
https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-dg.pdf page 55: If you plan to use GPU devices, make sure that your containers are nvidia-docker compatible. Only the CUDA toolkit should be included on containers. Don't bundle NVIDIA drivers with the image. For more information about nvidia-docker, see NVIDIA/nvidia-docker. So the answer is B
upvoted 51 times
devsean
3 years, 7 months ago
Yeah, it's B. But the page in the developer guide is page number 201 (209 in pdf). Second bullet point at the top.
upvoted 6 times
...
...
AKT
Highly Voted 3 years, 7 months ago
Answer is B. below is from AWS documentation, If you plan to use GPU devices for model training, make sure that your containers are nvidia-docker compatible. Only the CUDA toolkit should be included on containers; don't bundle NVIDIA drivers with the image. https://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms-training-algo-dockerfile.html
upvoted 14 times
...
JonSno
Most Recent 2 months, 1 week ago
Selected Answer: B
When using Amazon SageMaker with GPU-based EC2 instances (e.g., P3 instances), you must ensure that your custom Docker container can leverage NVIDIA GPUs. NVIDIA-Docker (now part of Docker with nvidia-container-runtime) allows containers to access GPU resources without needing to bundle NVIDIA drivers inside the container. To make a custom Docker container GPU-compatible, the Machine Learning Specialist should: Use NVIDIA CUDA and cuDNN in the Dockerfile. Ensure the container is built using the NVIDIA Container Toolkit (nvidia-docker). Use nvidia-container-runtime as the runtime.
upvoted 1 times
...
AjoseO
7 months ago
Selected Answer: B
To leverage the NVIDIA GPUs on Amazon EC2 P3 instances for training with Amazon SageMaker, the Docker container must be built to be compatible with NVIDIA-Docker. NVIDIA-Docker is a wrapper around Docker that makes it easier to use GPUs in containers by providing GPU-aware functionality. To build a Docker container that is compatible with NVIDIA-Docker, the Specialist should install the NVIDIA GPU drivers in the Docker container and install the NVIDIA-Docker runtime on the EC2 instances.
upvoted 1 times
...
bakarys
7 months ago
Selected Answer: B
NVIDIA-Docker is a Docker container runtime plugin that allows the Docker container to access the GPU resources on the host machine. By building the Docker container to be NVIDIA-Docker compatible, the Docker container will have access to the NVIDIA GPU resources on the Amazon EC2 P3 instances, allowing for accelerated training of the ResNet model.
upvoted 1 times
...
Mickey321
7 months ago
Selected Answer: B
The reason for this choice is that NVIDIA-Docker is a tool that enables GPU-accelerated containers by automatically configuring the container runtime to use NVIDIA GPUs1. NVIDIA-Docker allows you to build and run Docker containers that can fully access the GPUs on your host system. This way, you can run GPU-intensive applications, such as deep learning frameworks, inside containers without any performance loss or compatibility issues.
upvoted 1 times
...
loict
7 months ago
Selected Answer: B
A. NO - the drivers are not necessary (https://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms-training-algo-dockerfile.html) B. YES - it is about using the CUDA library, need to use proper base image (https://medium.com/@jgleeee/building-docker-images-that-require-nvidia-runtime-environment-1a23035a3a58) C. NO - file structure irrelavant to GPU D. NO - SageMaker config, irrelevant to Docker
upvoted 2 times
...
6ff83cb
1 year, 2 months ago
Selected Answer: B
https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-dg.pdf page 55
upvoted 1 times
iambasspaul
1 year ago
page 570 On a GPU instance, the image is run with the --gpus option. Only the CUDA toolkit should be included in the image not the NVIDIA drivers. For more information, see NVIDIA User Guide.
upvoted 1 times
...
...
Crypt0zknight
1 year, 6 months ago
Answer B Load the CUDA toolkit only, not the drivers. Ref GPU section : https://docs.aws.amazon.com/sagemaker/latest/dg/studio-byoi-specs.html
upvoted 1 times
...
Venkatesh_Babu
1 year, 9 months ago
Selected Answer: B
I think it should be b
upvoted 1 times
...
jackzhao
2 years, 1 month ago
B is correct!
upvoted 1 times
...
Sylzys
2 years, 1 month ago
Selected Answer: B
As per aws documentation, answer is B, and A is even explicitly not recommended
upvoted 1 times
...
Sorrybutnotsorry
3 years, 3 months ago
Selected Answer: B
As referred in other comments ans is B
upvoted 1 times
...
hussamS
3 years, 4 months ago
Selected Answer: B
ANS B As mentioned byi other users
upvoted 1 times
...
sachin80
3 years, 6 months ago
As per me answer is B
upvoted 1 times
...
konradL
3 years, 6 months ago
The answer is for sure B - as mentioned by others. And this is clearly stated in the docs
upvoted 1 times
...
takahirokoyama
3 years, 6 months ago
Ans. is B.
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