Professional Data Engineer · Free Practice Question Medium
Question 1
You have created a Compute Engine instance with an attached GPU but the GPU is not used when you train a Tensorflow model. What might you do to ensure the GPU can be used for training your models? (Choose 2)
- A Grant the Owner basic role to the VM service account
- B Install GPU drivers
- C Use Pytorch instead of Tensorflow
- D Use a Deep Learning VM image
- E Update Python 3 on the VM
Reveal correct answers
Correct answers: B, D
Explanation
GPU drivers need to be installed if they are not installed already when using GPUs. Deep Learning VM images have GPU drivers installed. Using Pytorch instead of Tensorflow will require work to recode and Pytorch would not be able to use GPUs either if the drivers are not installed. Updating Python will not address the problem of missing drivers. Granting a new role to the service account of the VM will not address the need to install GPU drivers. See https://cloud.google.com/compute/docs/gpus/install-drivers-gpu
Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
You must be logged in to post a comment.
