Canary Deployment with Vertex AI Endpoint Traffic Splitting

PMLE By islever Editorial Last updated

Short answer

C Deploy the new model to the existing Vertex AI endpoint and use traffic splitting to route 5% of production traffic to it, monitoring end-user metrics before gradually increasing traffic.

Question

You work for an organization that operates a streaming music service. You have a custom production model that is serving a “next song” recommendation based on a user's recent listening history. Your model is deployed on a Vertex AI endpoint. You recently retrained the same model by using fresh data. The model received positive test results offline. You now want to test the new model in production while minimizing complexity. What should you do?
  1. Create a new Vertex AI endpoint for the new model and deploy the new model to that new endpoint. Build a service to randomly send 5% of production traffic to the new endpoint. Monitor end-user metrics such as listening time. If end-user metrics improve between models over time, gradually increase the percentage of production traffic sent to the new endpoint.
  2. Capture incoming prediction requests in BigQuery. Create an experiment in Vertex AI Experiments. Run batch predictions for both models using the captured data. Use the user’s selected song to compare the models performance side by side. If the new model’s performance metrics are better than the previous model, deploy the new model to production.
  3. Deploy the new model to the existing Vertex AI endpoint. Use traffic splitting to send 5% of production traffic to the new model. Monitor end-user metrics, such as listening time. If end-user metrics improve between models over time, gradually increase the percentage of production traffic sent to the new model. Correct Answer
  4. Configure a model monitoring job for the existing Vertex AI endpoint. Configure the monitoring job to detect prediction drift and set a threshold for alerts. Update the model on the endpoint from the previous model to the new model. If you receive an alert of prediction drift, revert to the previous model.

Key Takeaways

This question tests the ability to perform a canary deployment in Vertex AI using native traffic splitting on an existing endpoint, avoiding the complexity of custom routing services or new endpoints.

Testing a new model in production with minimal complexity is achieved by deploying it to an existing Vertex AI endpoint and using native traffic splitting to route a small percentage of live traffic to the new version.

Common mistake: Option A is a plausible wrong answer because it also uses traffic splitting, but it incorrectly adds complexity by creating a new endpoint and requiring a custom service to route traffic, violating the question's constraint.

Expert Analysis

Minimizing Complexity with Vertex AI Traffic Splitting

The scenario requires testing a newly retrained model in production while explicitly minimizing complexity. Vertex AI endpoints natively support traffic splitting between multiple model versions deployed to the same endpoint. By deploying the new model to the existing endpoint and configuring a 5% traffic split, you achieve a canary release without altering the client application or introducing new infrastructure. This directly satisfies the requirement to test in production with the least operational overhead.

Request Routing Path

When the streaming music service requests a "next song" recommendation, it continues calling the existing Vertex AI endpoint URL. Vertex AI intercepts the request and routes 95% to the previous model and 5% to the new model based on the configured split. This allows you to gather real-time end-user metrics, such as listening time, for both models simultaneously under true production conditions. If the new model performs better, you can adjust the traffic split via a simple configuration change, gradually shifting more traffic until you achieve full deployment.

Why Other Options Fail

Option A introduces unnecessary complexity by creating a new endpoint and requiring a custom-built service to route traffic, violating the "minimizing complexity" constraint. Option B describes an offline evaluation using batch predictions and historical data, which does not test the model in the live production environment as requested. Option D replaces the old model entirely, exposing 100% of users to the new model immediately; furthermore, prediction drift detection is used to monitor feature or data distribution changes, not to evaluate model performance or serve as a canary deployment mechanism.

Exam Strategy

When a question asks to test a model in production while minimizing complexity, look for native features like Vertex AI endpoint traffic splitting. Avoid options that require building custom routing services, creating new endpoints, or relying on offline batch predictions. If replacing a model entirely is offered, reject it in favor of gradual canary releases.

Community Votes

C
86%
A
14%

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

Discussion 5 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 5

  1. daidai75 👍 4 Answered C
    Here's why the option C is preferable: Minimized complexity: Leverages existing endpoint: No need to create and manage a new endpoint, reducing setup and maintenance overhead. Traffic splitting readily available: Vertex AI provides built-in traffic splitting functionality, simplifying traffic distribution. Efficient testing and monitoring: Direct comparison: Sending a percentage of traffic to the new model allows for direct comparison with the current model's performance on real user data. Gradual rollout: Starting with a small percentage mitigates potential risks and allows for gradual transition based on observed improvements. End-user metric monitoring: Focusing on metrics like listening time directly reflects user engagement and preference for the new recommendations.
  2. b1a8fae 👍 2 Answered C
    Traffic splitting is a feature of Vertex AI that allows you to distribute the prediction requests among multiple models or model versions within the same endpoint. You can specify the percentage of traffic that each model or model version receives, and change it at any time. Traffic splitting can help you test the new model in production without creating a new endpoint or a separate service. You can deploy the new model to the existing Vertex AI endpoint, and use traffic splitting to send 5% of production traffic to the new model. You can monitor the end-user metrics, such as listening time, to compare the performance of the new model and the previous model. If the end-user metrics improve between models over time, you can gradually increase the percentage of production traffic sent to the new model. This solution can help you test the new model in production while minimizing complexity and cost.
  3. pikachu007 👍 2 Answered C
    Option A: Building a separate service adds unnecessary complexity and requires managing two endpoints. Option B: Batch predictions in Vertex AI Experiments might not reflect real-time user behavior and don't directly affect the production environment. Option D: Model monitoring alerts for prediction drift might be triggered by natural variations in user behavior instead of genuine performance issues and could lead to unnecessary model rollbacks.
  4. fitri001 👍 2 Answered C
    For Simplicity: If speed and simplicity are your top priorities, deploying to the existing endpoint with caution (close monitoring during deployment) can work.--> choose C For Safety and Control: If minimizing risk and having better control over the testing process are more important, creating a new endpoint is the better option. This is generally the recommended approach for most production deployments. --> choose A
  5. taylz876 👍 1 Answered C
    Why C is right • Same endpoint, so no extra complexity: deploying the new model to the existing endpoint means users keep calling the same address, and nothing new has to be built. • Traffic splitting is built in: the endpoint can send a percentage of requests to each model, and changing the split is a config change, not a code change or redeployment. • Small start, gradual growth: only 5% of users see the new model at first, so any problem affects very few people. If listening time improves, you raise the share step by step, and you can shift back at any time. • Real-world metrics: the best measure of a recommendation is what users actually do, such as listening time, and you only get that from live traffic. Why the others are wrong • A: A new endpoint means you have to build your own service to split the traffic randomly, which is extra complexity that the endpoint's traffic splitting already handles. • B: An offline comparison with batch predictions has already been done (the offline results were positive). It doesn't show how real users respond, and it doesn't test the model in production. • D: Replacing the model on the endpoint and waiting for a drift alert sends all the traffic to the unproven model at once. If it's worse, every user is affected before you notice.

Reader comments & corrections

No reader corrections 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.

Practice All PMLE Questions

Access 65 questions with complete answers and detailed explanations.

View Full PMLE Practice Test →

← Back to PMLE Study Guide