Managing Cold Start Latency in Low-Traffic Vertex AI Endpoints

You work for a small company that has deployed an ML model with autoscaling on Vertex AI to serve online predictions in a production environment. The current model receives about 20 prediction requests per hour with an average response time of one second. You have retrained the same model on a new batch of data, and now you are canary testing it, sending ~10% of production traffic to the new model. During this canary test, you notice that prediction requests for your new model are taking between 30 and 180 seconds to complete. What should you do?

  1. Submit a request to raise your project quota to ensure that multiple prediction services can run concurrently.
  2. Turn off auto-scaling for the online prediction service of your new model. Use manual scaling with one node always available. Source Reference Answer
  3. Remove your new model from the production environment. Compare the new model and existing model codes to identify the cause of the performance bottleneck.
  4. Remove your new model from the production environment. For a short trial period, send all incoming prediction requests to BigQuery. Request batch predictions from your new model, and then use the Data Labeling Service to validate your model’s performance before promoting it to production.

Community Votes

B
53%
C
47%

53% of anonymous learners picked answer B. Votes are pick records left by other test-takers — they are not the verified answer.

Community Insight

Tests recognition of autoscale-to-zero behavior versus model performance issues, trapping candidates who assume code defects instead of infrastructure provisioning delays.

This question evaluates how to troubleshoot high latency in Vertex AI online prediction services under low request volumes, with community consensus favoring manual scaling to prevent cold starts. Candidates must distinguish between infrastructure provisioning delays and actual model performance regressions.

Option C is commonly selected due to the dramatic latency spike, but it incorrectly attributes predictable cold-start delays to a hidden code or data bottleneck.

Community Discussion (13 comments)

desertlotus1211 👍 2 Selected: C
You're performing 20 predictions an hour - so scaling isn’t the root issue. Code issue.
vini123 👍 1 Selected: B
Since the same model is being used and the only change is the data, it's likely that the latency issue is caused by how Vertex AI is scaling the prediction service.
potomeek 👍 1 Selected: C
Removing the new model from production to debug and address the root cause of the latency issue is the most efficient and logical course of action. This ensures minimal disruption to production services and lays the groundwork for a smooth rollout after fixing the bottleneck
YushiSato 👍 3
I don't see B as the right answer. The Vertex AI Endpoint cannot scale to 0 for newer version of the model. > When you configure a DeployedModel, you must set dedicatedResources.minReplicaCount to at least 1. In other words, you cannot configure the DeployedModel to scale to 0 prediction nodes when it is unused. https://cloud.google.com/vertex-ai/docs/general/deployment#scaling
AnnaR 👍 2 Selected: B
B can be effective in controlling resources available to the new model, ensuring that it is not delayed by the autoscaling trying to scale up from 0. Not A: there is no indication in the description that quota limits cause the slowdown and does not address issue where new model is performing poorly on canary testing. Not C : when you pull the new model from prod environment, you could affect end-user experience Not D: Same as C plus you rely on batch predictions which does not align with the need for online, real-time predictions in the prod environemnt. Data Labeling Service is more about assessing accuracy and less about resolving latency issues.
pinimichele01 👍 1 Selected: B
You have retrained the same model on a new batch of data
VipinSingla 👍 1 Selected: B
bottleneck seems to be start of node as there are very low number of requests so having one node always available will help in this case.
Aastha_Vashist 👍 1 Selected: C
went with c
Carlose2108 👍 1 Selected: C
I went C. Diagnosing the root cause.
guilhermebutzke 👍 2 Selected: C
Choose C. The significant increase in response time from 1 second to between 30 and 180 seconds indicates a performance issue with the new model. Before making any further changes or decisions, it's crucial to identify the root cause of this performance bottleneck. By comparing the code of the new model with the existing model, you can pinpoint any differences that might be causing the slowdown. In A, This may not be the root cause and could incur unnecessary costs without addressing the performance issue. In B, it doesn't address the underlying issue causing the significant increase in response time observed during canary testing. in D, This would significantly increase latency and hinder real-time predictions, negatively impacting user experience.
sonicclasps 👍 4 Selected: B
sounds to me that the new model has too few requests per hour and therefore scales downs to 0. Which means it has to create the an instance every time it serves a request, and this takes time. By manually setting the number of nodes, the nodes will always be running, whether or not they are serving predictions
b1a8fae 👍 1
Unsure on this one, but I would go with A. B. Turning off auto-scaling is a good measure when dealing with datasets with steep spikes of requests traffic (here we are dealing with avg. 20 request per hour) "The service may not be able to bring nodes online fast enough to keep up with large spikes of request traffic." https://cloud.google.com/blog/products/ai-machine-learning/scaling-machine-learning-predictions C. You retrain the SAME model on a different batch of data. It is implied that the code is the same too? D. Actual quality of the model is not in question here, but rather the long prediction time per request. Even if the requests traffic is very low, I can only consider option A: the selected quota cannot deal with the amount of concurrent prediction requests.
kalle_balle 👍 1 Selected: C
Option B or D is completely wrong. Option A to raise the quota might be necessary in some situations but doesn't necessarily deal with the performance issue at the test. Option C seems like the most suitable option.

Comments & Corrections

No comments yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

Submitted for moderation before publishing. Keep it helpful and respectful.

Expert Analysis

Why the Answer Is Correct

Vertex AI automatically scales prediction service replicas down to zero during periods of inactivity to optimize costs. With only twenty requests per hour, the new model instance consistently spins down, forcing a lengthy cold start whenever traffic arrives. Disabling auto-scaling and configuring a single dedicated node ensures the environment remains warm, instantly eliminating the thirty to one hundred eighty second initialization delay. This approach directly addresses the infrastructure bottleneck while maintaining the integrity of the canary test.

Why the Other Options Are Wrong

Raising project quotas does not influence runtime provisioning speed or eliminate cold start overhead. Removing the model to compare code ignores the well-documented autoscaling mechanics of managed ML platforms and prematurely halts valid performance validation. Diverting traffic to BigQuery for batch processing fundamentally changes the serving architecture and defeats the purpose of real-time online prediction evaluation. Each alternative fails to resolve the immediate latency trigger during active canary deployment.

Community Comment Notes

Candidates heavily debated options B and C, with many initially suspecting a code regression. Comment [1] accurately identifies that sparse traffic triggers scale-to-zero behavior, making persistent nodes essential for consistent latency. Comment [2] reinforces this by citing official documentation that mandates a minimum replica count, validating manual scaling as the prescribed remediation. While some users advocate for debugging code first, the predictable infrastructure pattern strongly supports prioritizing deployment configuration over premature code inspection.

Official Reference

Exam Strategy

Always distinguish between application-level bottlenecks and cloud infrastructure provisioning limits when latency correlates with low traffic patterns. In certification scenarios, recognizing autoscaling trade-offs like cost optimization versus cold start latency frequently determines the correct architectural decision.

Related Analysis

Practice All PMLE Questions

Access 65 questions with complete answers and detailed explanations.

View Full PMLE Practice Test →

← Back to PMLE Study Guide