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 team uses Google Cloud Deploy to deliver microservices to a production Google Kubernetes Engine (GKE) cluster using a canary deployment strategy. You recently updated the delivery pipeline YAML configuration to enable automated deployment verification by setting verify: true under the canaryDeployment strategy.
During the subsequent release rollout, the deployment phase succeeds, but the rollout immediately fails and halts during the verification phase before executing any test suites. Inspection of the clouddeploy-operations Pub/Sub notification logs confirms a JobRun failure with JobType: Verify.
What is the root cause of this pipeline failure, and what action should you take to resolve it?
Deployment verification in Google Cloud Deploy is a native pipeline feature that allows automated execution of verification jobs (such as end-to-end or integration tests) against a target environment following a deployment phase.
When verify: true is enabled on a target stage or canary strategy within DeliveryPipeline, Cloud Deploy orchestrates a separate VERIFY execution environment job. For this job to execute successfully:
verify stanza in the skaffold.yaml configuration (or within the relevant Skaffold profile) that specifies the container image and test execution commands.skaffold.yaml must use an apiVersion of skaffold/v3alpha1 or greater.verify: true is configured in the pipeline but the skaffold.yaml is missing the verify stanza, Cloud Deploy will automatically fail the Verify JobRun.dev, staging, and prod targets.Adding the verify stanza with appropriate test container definitions and a compliant apiVersion satisfies Cloud Deploy's validation requirements and allows the verification phase to run test suites directly against the deployed canary pods.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.