nerdexam
Google

PROFESSIONAL-MACHINE-LEARNING-ENGINEER · Question #181

You need to deploy a scikit-leam classification model to production. The model must be able to serve requests 24/7, and you expect millions of requests per second to the production application from…

The correct answer is B. Deploy an online Vertex AI prediction endpoint. Set the max replica count to 100. To serve millions of requests per second for a scikit-learn model with minimized cost, deploy an online Vertex AI prediction endpoint configured for high auto-scaling using CPUs.

Submitted by ravi_2018· Apr 18, 2026ML pipeline operationalization

Question

You need to deploy a scikit-leam classification model to production. The model must be able to serve requests 24/7, and you expect millions of requests per second to the production application from 8 am to 7 pm. You need to minimize the cost of deployment. What should you do?

Options

  • ADeploy an online Vertex AI prediction endpoint. Set the max replica count to 1
  • BDeploy an online Vertex AI prediction endpoint. Set the max replica count to 100
  • CDeploy an online Vertex AI prediction endpoint with one GPU per replica. Set the max replica
  • DDeploy an online Vertex AI prediction endpoint with one GPU per replica. Set the max replica

How the community answered

(37 responses)
  • A
    5% (2)
  • B
    76% (28)
  • C
    3% (1)
  • D
    16% (6)

Why each option

To serve millions of requests per second for a scikit-learn model with minimized cost, deploy an online Vertex AI prediction endpoint configured for high auto-scaling using CPUs.

ADeploy an online Vertex AI prediction endpoint. Set the max replica count to 1

Setting the max replica count to 1 prevents auto-scaling and will cause the endpoint to fail under heavy load, unable to serve millions of requests per second.

BDeploy an online Vertex AI prediction endpoint. Set the max replica count to 100Correct

Deploying an online Vertex AI prediction endpoint with a high max replica count (like 100) enables horizontal auto-scaling, which is essential to handle millions of requests per second during peak hours. Scikit-learn models are typically CPU-bound, so using CPUs by default (without specifying GPUs) minimizes cost while providing the necessary throughput through scaling.

CDeploy an online Vertex AI prediction endpoint with one GPU per replica. Set the max replica

Using GPUs for a scikit-learn model is generally unnecessary and significantly more expensive without providing proportional performance benefits, failing the cost minimization requirement; additionally, a single replica cannot handle the load.

DDeploy an online Vertex AI prediction endpoint with one GPU per replica. Set the max replica

While a high max replica count allows scaling, deploying with GPUs for a scikit-learn model is not cost-effective as these models typically do not benefit from GPU acceleration, thus violating the minimize cost requirement.

Concept tested: Vertex AI online prediction, auto-scaling, cost optimization

Source: https://cloud.google.com/vertex-ai/docs/predictions/online-predictions-overview

Topics

#Model deployment#Vertex AI#Online prediction#Auto-scaling

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-MACHINE-LEARNING-ENGINEER Practice