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.
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?
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.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.