How to scale Vertex AI endpoints for increased traffic?
Short answer
C 1. Maintain the same machine type on the endpoint Configure the endpoint to enable autoscaling based on vCPU usage.
Question
Key Takeaways
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.
Common mistake: 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.
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
https://cloud.google.com/vertex-ai/docs/predictions/configure-compute#autoscaling
This link opens the official vendor documentation in a new tab.
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.
Community Votes
100% of anonymous learners picked answer C. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 10 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 10
-
fitri001 👍 6 Answered COption A: Manually adding compute nodes after an alert might lead to delays and potential outages during peak traffic. Option B: Upgrading to 32 vCPUs upfront might be an overkill if the current machine type with 8 vCPUs can handle the typical daily traffic. Vertical scaling (more vCPUs) might be suitable only if the model can benefit from additional CPU power. Option D: Using a GPU is unlikely to benefit a recipe recommendation model, which likely doesn't involve intensive graphical processing. Additionally, monitoring GPU usage wouldn't be relevant.
-
emsherff 👍 2Option A is manual intervention Option B is overprovisioning preemptively, which is an overkill ( autoscaling should be preferred) Option D - Unless the recipe recommendation model uses GPU-accelerated computations (e.g., some deep learning models), adding a GPU won't be beneficial and will increase costs. I would go with C - Autoscaling based on vCPU usage which aligns well with the workload.
-
AzureDP900 👍 1C is right because 1)Since you've already optimized your model's deployment on a single machine with 8 vCPUs, it makes sense to maintain the same machine type to avoid any potential performance issues. 2)Enabling autoscaling based on vCPU usage will allow your endpoint to automatically add more machines as needed to handle the increased traffic during the holiday season. This approach is more efficient and cost-effective than scaling up individual machines or adding new machines manually. 3)Monitoring CPU usage with a job and alerting when thresholds are exceeded allows you to detect potential issues before they impact performance.
-
pikachu007 👍 1 Answered CCost Optimization: It starts with the current machine type, avoiding unnecessary upfront costs, and scales only when needed. Autoscaling: It automatically adjusts compute resources based on vCPU usage, ensuring the endpoint can handle traffic spikes without manual intervention. Monitoring and Alerting: It provides visibility into resource usage and triggers alerts for potential issues, enabling proactive actions. Investigation: It encourages investigation of alerts to identify any underlying problems beyond expected traffic growth, ensuring overall system health.
-
lunalongo 👍 1 Answered CC) Option C is the best because: 1) It leverages the built-in autoscaling capabilities of Vertex AI. 2) It's the most efficient/cost-effective solution for fluctuating traffic. 2) Manually scaling (options A and B) is reactive and inefficient 3) A GPU is unnecessary, there is no intensive graphical processing
Show 5 more comments
-
daidai75 👍 1 Answered COption B can only support exact 4x times traffic, but the requirement is four times "more", so B is not the best at least for me.
-
kalle_balle 👍 1 Answered BVoting for B as it's the only option to autoscale even though the cost will go up. All other options include manual intervention.
-
b1a8fae 👍 1 Answered CI would go for C as it enables autoscaling when exceeding a determined CPU usage threshold.
-
emsherff 👍 1 Answered CAutoscaling based on vCPU usage aligns well with the workload.
-
omermahgoub 👍 1 Answered CC: Use Autoscaling Based on vCPU Usage
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All PMLE Questions
Access 65 questions with complete answers and detailed explanations.
View Full PMLE Practice Test →