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?
- A.Use GPUs, because every model runs faster on GPUs
- B.Deploy on CPU machines with the prebuilt scikit-learn container
- C.Use TPUs, because random forest inference is dominated by large matrix multiplications
- 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
- BigQuery ML k-means customer segments
- Speech-to-Text for call recordings
- AutoML object detection annotations
- Scheduled notebook runs with the executor
- TensorBoard Profiler for input bottlenecks
- TFX InfraValidator before pushing
- Runtime parameters for compiled pipelines
- Model cards for responsible AI documentation
- tf.data prefetch and parallel map
- Grounding with Google Search
- Point-in-time joins for training data