Courseiva

Google PCA Practice Question: Managing Implementation and Ensuring Solution and Operations Reliability

You need to automatically roll back a GKE deployment if a new version causes a spike in 5xx errors. The deployment uses a canary strategy with Istio traffic splitting. What should you do?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Use Cloud Monitoring to watch the canary's error rate and trigger a Cloud Function that updates the Istio VirtualService to route all traffic back to the stable version.

Istio allows traffic splitting between versions. By integrating with Cloud Monitoring, you can create an alert that triggers a rollback via a Cloud Function or through a CI/CD pipeline that monitors the canary's error rate. Istio itself does not have built-in rollback; you need external automation. Cloud Deploy can manage canary with automatic rollback, but the question mentions Istio traffic splitting, so a combination of monitoring and automation is needed.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Use Cloud Monitoring to watch the canary's error rate and trigger a Cloud Function that updates the Istio VirtualService to route all traffic back to the stable version.

    Why this is correct

    This automates rollback by shifting traffic back to the stable version based on error rate threshold.

  • Set the canary's traffic weight to 0 in the Istio VirtualService if errors exceed threshold using a Kubernetes Job.

    Why it's wrong here

    A Kubernetes Job can run a script, but it's not triggered automatically by monitoring alerts.

  • Use GKE's built-in auto-repair feature to replace unhealthy pods.

    Why it's wrong here

    Auto-repair replaces unhealthy pods but does not roll back the deployment version.

  • Configure an Istio VirtualService with a retry policy that automatically redirects traffic on errors.

    Why it's wrong here

    Retry policy retries within the same version, it does not roll back the deployment.

About these practice questions

Courseiva writes every PCA question from scratch — 955 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This PCA practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the PCA exam.