🔥 40% Off Crucial Exams Memberships — Deal ends today!

53 minutes, 25 seconds remaining!

GCP Professional Cloud Architect Practice Question

Your team operates a global e-commerce platform on Google Kubernetes Engine (GKE). New versions are rolled out with Cloud Deploy using a canary strategy that shifts traffic from 1 % to 100 % over 30 minutes. The SRE lead asks you to ensure that any deployment automatically rolls back if the percentage of HTTP 5xx responses recorded in Cloud Logging rises above 2 % for two consecutive minutes, eliminating the need for human intervention. Which approach best meets this requirement while following the operational excellence principle of automating responses to common operational events?

  • Use Error Reporting to open a P1 incident when exception counts spike and have the on-call engineer execute a gcloud deploy rollback command.

  • Schedule a Cloud Scheduler job that invokes a Cloud Run service to scale the canary deployment to zero when 5xx errors exceed 2 %, then manually re-enable the service after investigation.

  • Configure a Cloud Build trigger that runs every minute, queries Cloud Logging for 5xx rates, and, if above threshold, executes gcloud container clusters rollback for the canary workload.

  • Create a logs-based metric for 5xx errors, configure a Cloud Monitoring alert to publish to Pub/Sub when the 2 % threshold is exceeded for two minutes, and trigger a Cloud Function that calls the Cloud Deploy API to promote the previous release.

GCP Professional Cloud Architect
Ensuring solution and operations excellence
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot