PROFESSIONAL-MACHINE-LEARNING-ENGINEER · Question #198
You recently deployed a scikit-learn model to a Vertex AI endpoint. You are now testing the model on live production traffic. While monitoring the endpoint, you discover twice as many requests per…
The correct answer is C. Set the target utilization percentage in the autoscailngMetricSpecs configuration to a higher value. To ensure a Vertex AI endpoint efficiently scales to handle increased future demand and prevent high latency, configure the autoscalingMetricSpecs to allow for more aggressive scaling.
Question
Options
- ADeploy two models to the same endpoint, and distribute requests among them evenly
- BConfigure an appropriate minReplicaCount value based on expected baseline traffic
- CSet the target utilization percentage in the autoscailngMetricSpecs configuration to a higher value
- DChange the model's machine type to one that utilizes GPUs
How the community answered
(44 responses)- A9% (4)
- B16% (7)
- C70% (31)
- D5% (2)
Why each option
To ensure a Vertex AI endpoint efficiently scales to handle increased future demand and prevent high latency, configure the `autoscalingMetricSpecs` to allow for more aggressive scaling.
Deploying two models to the same endpoint for even distribution is typically used for A/B testing or redundancy, not for dynamic scaling to handle unforeseen surges in request volume.
`minReplicaCount` ensures a baseline number of replicas but does not configure the dynamic scaling behavior required to efficiently handle increases in demand beyond that minimum.
Vertex AI Endpoints utilize `autoscalingMetricSpecs` to define how they scale dynamically based on demand. To efficiently scale and prevent high latency during increased traffic, these specifications must be configured to ensure sufficient replicas are provisioned proactively, allowing the endpoint to efficiently handle demand surges and maintain low latency.
Changing the model's machine type or adding GPUs increases the capacity of *individual* replicas but does not directly address the horizontal scaling efficiency for handling a significantly higher *volume* of requests, and scikit-learn models generally do not benefit from GPUs for inference.
Concept tested: Vertex AI Endpoint autoscaling configuration
Source: https://cloud.google.com/vertex-ai/docs/predictions/configure-deployed-model#configure-autoscaling
Topics
Community Discussion
No community discussion yet for this question.