CertKeen

Google Cloud Professional Machine Learning Engineer · Free practice question 8 of 12

CPU machines for scikit-learn serving

Ottoline Bakeries serves a scikit-learn random forest with about 40 input features and modest traffic. A team member proposes deploying it on GPU machines to cut latency. What should the ML engineer advise?

  1. A.Use GPUs, because every model runs faster on GPUs
  2. B.Deploy on CPU machines with the prebuilt scikit-learn container
  3. C.Use TPUs, because random forest inference is dominated by large matrix multiplications
  4. D.Use Edge TPU devices in the data center
Show answer and explanation

Correct answer: B. Deploy on CPU machines with the prebuilt scikit-learn container

Why: scikit-learn models such as random forests run inference on CPUs and do not benefit from GPUs, so a CPU machine type with the prebuilt scikit-learn container is the cost-effective choice. TPUs target large tensor workloads in frameworks such as JAX, TensorFlow and PyTorch, not scikit-learn trees, and Edge TPUs are on-device accelerators.

More free Google Cloud Professional Machine Learning Engineer questions