Professional Cloud DevOps Engineer
Prepare and test your skills
Prepare and test your skills
Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.
Last updated
Your DevOps engineering team is automating a zero-downtime infrastructure migration pipeline using Cloud Build. The pipeline provisions a target GKE cluster with Cloud Service Mesh alongside an existing GKE cluster hosting production microservices.
You need to implement a canary deployment strategy within the automated pipeline that safely shifts live user traffic in small increments to validate workload reliability on the new cluster while maintaining an immediate rollback mechanism.
Which strategy should you implement in your pipeline?
Configure weighted DNS routing records in Cloud DNS between the public IP addresses of the old and new cluster ingress gateways.
Execute an in-place deployment upgrade within the source cluster namespace and trigger an automated 'kubectl rollout undo' if failure metrics exceed threshold limits.
Configure a ServiceEntry on the source cluster pointing to the target cluster's ingress gateway, and use a VirtualService to route a small initial percentage of traffic to the target cluster before progressively increasing it.
Perform an immediate 100% blue/green traffic switch at the external Application Load Balancer backend service level with automated failover.
Configure weighted DNS routing records in Cloud DNS between the public IP addresses of the old and new cluster ingress gateways.
Execute an in-place deployment upgrade within the source cluster namespace and trigger an automated 'kubectl rollout undo' if failure metrics exceed threshold limits.
Configure a ServiceEntry on the source cluster pointing to the target cluster's ingress gateway, and use a VirtualService to route a small initial percentage of traffic to the target cluster before progressively increasing it.
Cloud Service Mesh (and Istio-based service mesh architectures) provides advanced Layer 7 traffic routing and management capabilities across Kubernetes clusters and namespaces. Through custom resource definitions like ServiceEntry and VirtualService, network traffic can be precisely manipulated at the ingress proxy level without modifying client code or relying on external DNS propagation.
ServiceEntry informs the source cluster's mesh of the external IP address for the target cluster's asm-ingressgateway. The accompanying VirtualService can specify fine-grained traffic weights (e.g., routing 5% or 10% of requests to the target cluster endpoint).VirtualService traffic weight back to 100% on the source cluster (or 0% to the target), which instantly reverts traffic without infrastructure teardown or DNS cache delays.Using native service mesh primitives (ServiceEntry and VirtualService) is the Google-recommended pattern for canary migrations between clusters. It isolates blast radius effectively, leverages existing ingress gateways, and integrates seamlessly into automated CI/CD steps in Cloud Build.
Perform an immediate 100% blue/green traffic switch at the external Application Load Balancer backend service level with automated failover.