Prepare and test your skills
Prepare and test your skills
Free sample question, answered and explained below. The Professional Cloud Architect practice bank has 2,335 more like it. Try 10 free: instant score, no account.
Your company uses Google Cloud Deploy to orchestrate continuous delivery pipelines for microservices deployed onto Google Kubernetes Engine (GKE) clusters across staging and production targets.
During recent release cycles, rollouts were marked as successful immediately after the deployment manifests were applied, before application pods fully initialized and passed readiness probes. Consequently, releases with configuration defects were marked successful, allowing flawed versions to be promoted without verifying workload stability.
You need to ensure that Google Cloud Deploy performs automated health checks and waits for workloads to reach a stable, running state before marking a rollout as successful.
What should you do?
dependsOn properties between Kubernetes manifests.Cloud Deployment Manager is an infrastructure-as-code service designed for provisioning and managing Google Cloud resources using declarative YAML templates.
dependsOn in Deployment Manager controls resource creation order within a configuration file. It does not monitor Kubernetes pod readiness probes or integrate with Cloud Deploy pipeline promotion workflows.You were managing foundational Google Cloud infrastructure and needed to ensure a VPC network and subnet were created before provisioning an instance group.
SUSPENDED and increase the Cloud Build execution timeout in the execution environment configuration.Setting a pipeline or rollout state to SUSPENDED pauses release progression, while increasing the Cloud Build timeout alters how long Cloud Deploy worker pools wait for build and render operations to finish.
SUSPENDED state prevents new rollouts from advancing automatically.kubectl apply without post-deployment readiness validation if status checking is disabled.You needed to temporarily freeze continuous deployments across an organization during an infrastructure maintenance period or prevent builds from timing out during massive image rendering tasks.
deploy.statusCheck is enabled (true) in the Skaffold configuration and set an appropriate deadline timeout.Google Cloud Deploy leverages Skaffold under the hood to render and apply Kubernetes manifests to target GKE clusters. Skaffold includes a built-in status checking mechanism (deploy.statusCheck) that monitors the rollout status of deployed Kubernetes resources (such as Deployments, StatefulSets, and DaemonSets) until they report as fully healthy and stable.
deploy.statusCheck is set to true (or left enabled by default), Skaffold monitors the status of the rollout after executing kubectl apply. It verifies that container readiness probes pass and pods achieve a ready state.deploy.statusCheckDeadlineSeconds or Kubernetes Deployment.spec.progressDeadlineSeconds). The rollout will only be marked as successful once workloads stabilize within the deadline.FAILED in Cloud Deploy. This halts automated promotion policies and alerts operators to initiate rollback procedures.statusCheckDeadlineSeconds) to accommodate various initialization requirements.Enabling and configuring Skaffold status checks directly addresses the root cause of premature rollout completions without introducing custom post-deployment scripting or unnecessary operational overhead.
roles/clouddeploy.approver IAM role with a CEL condition on clouddeploy.googleapis.com/rolloutTarget to the automated pipeline service account.This configuration applies an Identity and Access Management (IAM) policy binding with a Common Expression Language (CEL) condition. It restricts rollout approval permissions (roles/clouddeploy.approver) to specific rollout targets based on the clouddeploy.googleapis.com/rolloutTarget attribute.
prod). They do not perform runtime health checking or pod readiness verification.gcloud deploy rollouts approve calls.You needed to restrict deployment approval permissions so that operators can only approve releases intended specifically for the production target during designated maintenance windows.
Answer them yourself and get your score the moment you finish. No account needed.
Full access includes
Keep the momentum going with these hand-picked practice scenarios
Last updated Validated