What is the main advantage of using a blue-green deployment strategy for machine learning models?
Think about how to update a model without affecting users.
Blue-green deployment uses two identical environments (blue and green). One serves live traffic while the other is updated. Switching traffic avoids downtime and allows quick rollback.
You run a command to switch traffic from the blue environment to the green environment in your model deployment setup. What output indicates a successful switch?
kubectl rollout status deployment/model-green
kubectl patch service model-service -p '{"spec":{"selector":{"env":"green"}}}'Look for confirmation messages indicating success for both rollout and patch.
The command output shows the green deployment rolled out successfully and the service selector updated to route traffic to green.
Which Kubernetes service selector configuration correctly routes traffic to the green environment in a blue-green deployment?
apiVersion: v1 kind: Service metadata: name: model-service spec: selector:
The selector must match the label of the green deployment pods.
The service selector uses the label 'env: green' to route traffic to pods labeled as green environment.
After switching the service selector to the green environment, users still receive predictions from the blue model. What is the most likely cause?
Check if the service selector matches the intended environment labels.
If the service selector still points to blue pods, traffic will not switch even if green pods are ready.
Arrange the steps in the correct order for performing a blue-green deployment of a new machine learning model version.
Think about deploying, testing, switching traffic, then monitoring.
The correct workflow is to deploy the new model, test it, switch traffic, then monitor to ensure stability.