Courseiva

Google PCA Cloud Deploy rollback policy Practice Question

You have a Cloud Deploy delivery pipeline with an approval gate. You want to automatically roll back a release if the rollout fails during the deploy step. How should you configure the pipeline?

⚠ Common exam trap

Candidates may assume Cloud Deploy lacks automated rollback, but it actually supports it via a pipeline-level rollback policy.

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

Set an automatic rollback policy in the delivery pipeline definition

Cloud Deploy does have a built-in automatic rollback feature via the `rollback_policy` in the delivery pipeline definition. Setting this policy automatically rolls back a release if the rollout fails during the deploy step. Option B describes a custom solution that is unnecessary because the native policy exists. Option C is incorrect because approval gates are for manual approval and cannot automatically trigger a rollback. Option D is incorrect because no such global flag exists. Therefore, option A is correct.

Answer analysis

Option-by-option breakdown

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

  • Set an automatic rollback policy in the delivery pipeline definition

    Why this is correct

    Correct. The delivery pipeline definition supports a `rollback_policy` that automatically rolls back on deploy failure.

  • Use a Cloud Build post-deploy hook to check the rollout status and roll back if needed

    Why it's wrong here

    Incorrect. While a Cloud Build post-deploy hook could be used, it is unnecessary because Cloud Deploy provides a native rollback policy.

  • Configure the approval gate to reject the deployment if it fails

    Why it's wrong here

    Incorrect. Approval gates are for manual approval and do not trigger automatic rollbacks.

  • Enable the 'rollback on failure' flag in the pipeline

    Why it's wrong here

    Incorrect. There is no 'rollback on failure' flag in the pipeline definition.

Visual reference

Client DHCP Server 1 Discover (broadcast) 2 Offer (IP: 192.168.1.10) 3 Request (I accept) 4 Acknowledge (lease confirmed) DORA — the four-step DHCP lease process

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.