How to scale Vertex AI endpoints for increased traffic?
You work for an online grocery store. You recently developed a custom ML model that recommends a recipe when a user arrives at the website. You chose the machine type on the Vertex AI endpoint to optimize costs by using the queries per second (QPS) that the model can serve, and you deployed it on a single machine with 8 vCPUs and no accelerators. A holiday season is approaching and you anticipate four times more traffic during this time than the typical daily traffic. You need to ensure that the model can scale efficiently to the increased demand. What should you do?
Community Votes
100% of anonymous learners picked answer C. Votes are pick records left by other test-takers — they are not the verified answer.
Community Insight
This question tests the knowledge of Vertex AI endpoint scaling strategies, specifically identifying that autoscaling is superior to vertical scaling or manual upgrades, with the trap being assuming a larger machine type or GPU is necessary for handling traffic spikes.
To handle increased traffic on a Vertex AI endpoint, enabling autoscaling is the preferred method over manual intervention or vertical scaling. The community agrees that configuring autoscaling based on vCPU usage optimizes costs while ensuring availability during demand spikes.
Selecting Option B is a common mistake because upgrading to 32 vCPUs seems to match the predicted traffic increase, but it ignores the efficiency and cost-effectiveness of autoscaling.
Community Discussion (10 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Why the Answer Is Correct
Option C is correct because it leverages Vertex AI's built-in autoscaling capabilities to dynamically adjust the number of nodes based on vCPU usage. This ensures the endpoint can handle the 4x traffic surge during the holiday season without manual intervention. It also maintains cost efficiency by scaling back down when traffic decreases, avoiding the waste associated with permanent overprovisioning.Why the Other Options Are Wrong
Option A is incorrect because it lacks a mechanism to handle the increased traffic, potentially leading to outages. Option B is incorrect because vertical scaling to 32 vCPUs is a rigid, overprovisioning strategy that wastes resources during normal traffic and lacks flexibility for unpredictable spikes. Option D is incorrect because adding a GPU increases costs unnecessarily for a model that does not require GPU acceleration, and scaling should be based on the actual resource bottleneck (vCPU).Community Comment Notes
Commenters emphasized that Option A requires manual intervention, which is too slow for sudden traffic spikes. Several users noted that Option B is "overkill" and preemptive, whereas Option C scales resources only when needed. There was also a strong consensus that Option D is invalid because the recommendation model does not require GPU resources.Official Reference
Exam Strategy
When facing questions about traffic spikes, prioritize autoscaling options over manual resizing or static vertical scaling. Remember that adding GPUs is only necessary for deep learning models, not for general CPU-bound prediction tasks.
Related Analysis
Practice All PMLE Questions
Access 65 questions with complete answers and detailed explanations.
View Full PMLE Practice Test →