Google Cloud Professional Cloud Architect · 18% practice allocation

Google Cloud Professional Cloud Architect: Analyze and optimize technical and business processes Practice Questions

5 free sample questions from the Analyze and optimize technical and business processes domain, with answers and explanations. The full Professional Cloud Architect bank has 251 questions across 6 domains. Questions are scenario-based and written from the official Google Cloud exam guide.

1.

A company's SRE team is configuring error budgets for a critical payments API. The SLO is defined as 99.95% availability measured over a rolling 28-day window. In the past 28 days, the API served 10,000,000 requests. How many additional failed requests can the service absorb before exhausting its error budget for this window?

  • A. 4,500 requests
  • B. 50 requests
  • C. 500 requests
  • D. 5,000 requests✓ Correct
Explanation

The error budget is 1 − 0.9995 = 0.0005 of requests. Over 10,000,000 requests that is 5,000 failed requests, and the question mentions no failures already consumed, so all 5,000 remain. 500 would correspond to a 99.995% SLO, 50 to 99.9995%, and 4,500 assumes 500 failures already happened.

2.

An operations team is reviewing their GCP committed use discount (CUD) strategy. They have a stable baseline of 200 n2-standard-8 VMs running 24/7 in us-central1 for at least the next 3 years. They currently use on-demand pricing. Which purchasing approach provides the maximum cost reduction for this workload?

  • A. Purchase 3-year resource-based committed use discounts for 200 n2-standard-8 VMs to receive up to 70% discount.✓ Correct
  • B. Purchase 3-year spend-based committed use discounts at the project level for the estimated monthly compute spend.
  • C. Purchase 1-year resource-based committed use discounts for 200 n2-standard-8 VMs to receive up to 37% discount.
  • D. Rely on sustained use discounts (SUDs), which automatically apply up to 30% off when VMs run for the full month.
Explanation

3-year resource-based CUDs on Compute Engine offer up to ~70% discount compared to on-demand pricing and are the highest available discount for a predictable, stable, long-running VM fleet. Option C (1-year CUDs) provides only ~37% discount — less optimal when the team is confident about a 3-year commitment. Option D (SUDs) are automatic and provide up to ~30% off but are strictly lower than CUD discounts and cannot be combined with resource-based CUDs on the same resources. Option B (spend-based CUDs) are typically used for Cloud SQL or other services; for Compute Engine VMs, resource-based CUDs yield higher discounts and are the preferred approach.

3.

A SRE team is defining SLOs for a customer-facing API hosted on Cloud Run. They want to track availability using a request-based SLI. Over a 30-day rolling window they observe 2,400,000 total requests and 12,000 errors. Their SLO target is 99.5% availability. What is their current error budget consumption percentage?

  • A. 50% of the error budget has been consumed
  • B. The error budget cannot be calculated without knowing the total number of successful requests by status code
  • C. The SLO is met; 0% of the error budget has been consumed
  • D. 100% of the error budget has been consumed; the SLO is being violated✓ Correct
Explanation

Current availability = (2,400,000 − 12,000) / 2,400,000 = 99.5%, which exactly hits the SLO target. The total error budget for a 99.5% SLO over 2,400,000 requests = 0.5% × 2,400,000 = 12,000 allowable errors. The team has consumed all 12,000 allowed errors, meaning 100% of the error budget is consumed. While the SLO is not technically violated yet, there is zero remaining error budget. — (C) is wrong because while the SLO line is not crossed, 100% of the budget is consumed — not 0%. — (A) is wrong because 50% consumption would mean only 6,000 errors; the actual 12,000 errors represent the full budget. — (B) is wrong because a request-based SLI is calculated purely from total requests and total bad requests (e.g., 5xx errors), both of which are given.

4.

A company's SRE team has defined the following SLO for their checkout API: 99.9% of requests over a 30-day rolling window must complete successfully in under 500ms. In the current month, 0.15% of requests have already violated the SLO. The error budget is nearly exhausted. Which TWO actions are most appropriate for the SRE team to take at this point? (Choose TWO)

  • A. Freeze all non-critical feature releases and focus engineering effort on reliability improvements to stop further error budget burn.✓ Correct
  • B. Reduce the SLO window from 30 days to 7 days to reset the error budget calculation and recover budget faster.
  • C. Perform a blameless post-mortem on recent incidents to identify and remediate the root causes of SLO violations.✓ Correct
  • D. Increase the SLO target to 99.95% to give the team a stricter threshold that forces faster engineering fixes.
  • E. Notify stakeholders and document the error budget status, but continue releasing features to avoid delaying the roadmap.
Explanation

When the error budget is nearly exhausted, the standard SRE practice is to (1) halt risky changes that could further burn the budget and (2) investigate and fix root causes. Freezing non-critical feature releases (A) directly reduces the risk of further SLO violations caused by new deployments. Performing a blameless post-mortem (C) is how the team identifies why violations occurred and prevents recurrence. Option D is incorrect because raising the SLO target makes the error budget even smaller and harder to maintain — it punishes the team further rather than helping them recover. Option B is incorrect because arbitrarily shortening the SLO window to 'reset' the budget is gaming the metric; it does not fix the underlying reliability problem and undermines the purpose of SLOs. Option E is incorrect because continuing to release non-critical features while the error budget is exhausted directly violates the SRE error budget policy and risks further degradation of user experience.

5.

A company's SRE team is conducting a chaos engineering experiment on their GCP-hosted microservices application. They want to inject latency into calls between Service A and Service B without modifying application code, redeploying containers, or affecting traffic to other services. The application runs on GKE with Istio service mesh enabled. Which approach best meets these requirements?

  • A. Use a Cloud Armor security policy to inject artificial latency into requests matching Service B's IP address.
  • B. Configure an Istio VirtualService with a fault injection rule specifying a delay for traffic routed from Service A to Service B.✓ Correct
  • C. Deploy a sidecar proxy container alongside Service B that intercepts requests and adds a sleep() call before forwarding them.
  • D. Modify the GKE node pool's network policy to introduce packet delay using Linux tc (traffic control) on the nodes hosting Service B pods.
Explanation

Istio's fault injection feature allows SREs to inject delays (and HTTP errors) into specific traffic routes using a VirtualService CRD without any application code changes or redeployment. The rule can be scoped to traffic from a specific source (Service A) to a destination (Service B), leaving all other traffic unaffected. This is exactly the no-code, targeted approach required. Option A is incorrect: Cloud Armor is a WAF/DDoS protection layer that operates on external HTTP(S) traffic at the load balancer — it does not inject latency into internal east-west service-to-service traffic on GKE. Option C introduces a custom sidecar which requires modifying the pod spec (a redeployment) and is more complex than using Istio's built-in capability. Option D (Linux tc on nodes) is a low-level OS approach that would affect all pods on those nodes, not just Service B, and is operationally dangerous and difficult to control precisely in a production cluster.

Test yourself across every Professional Cloud Architect domain

The free Professional Cloud Architect practice test mixes about 20 questions weighted like the exam. The full 251-question bank adds instant grading, flashcards and a timed mock exam.

Study this domain

Analyze and optimize technical and business processes study guide (Professional Cloud Architect) →

Other Professional Cloud Architect domains

← All Google Cloud Professional Cloud Architect study resources