Google Cloud Professional Machine Learning Engineer — Question 46

You developed an ML model with AI Platform, and you want to move it to production. You serve a few thousand queries per second and are experiencing latency issues. Incoming requests are served by a load balancer that distributes them across multiple Kubeflow CPU-only pods running on Google Kubernetes Engine
(GKE). Your goal is to improve the serving latency without changing the underlying infrastructure. What should you do?

Answer options

Correct answer: D

Explanation

The correct answer, D, focuses on recompiling TensorFlow Serving to leverage CPU-specific optimizations, which can effectively reduce latency. Increasing max_batch_size or max_enqueued_batches (options A and C) may help with throughput but won't necessarily address latency issues directly. Switching to the universal version of TensorFlow Serving (option B) does not guarantee improvements in serving latency either.