Google Cloud Professional Cloud Architect practice questions
8 sample questions from our 300-question Cloud Architect bank, one from each official domain. The answer and a full explanation sit under each one. Every question is original, written against the published exam objectives, and quality-checked before it reaches you.
Question 1 · Designing and planning a cloud solution architecture
Larkfield Transit sells rail tickets across three continents. Its inventory service must accept writes in Europe, Asia, and North America simultaneously, and a seat can be sold exactly once — a double-sell is a regulatory incident. Traffic grows roughly 40% each year and the team wants to keep SQL joins. Which storage design fits these requirements?
- A.Deploy Cloud SQL for PostgreSQL with cross-region read replicas and route writes to the primary
- B.Deploy a Cloud Spanner multi-region instance configuration and let it serialize writes with external consistency
- C.Deploy Bigtable with a replicated instance and use a row key built from the seat identifier
- D.Deploy Firestore in Native mode and wrap each seat purchase in a single-document transaction
Show answer & explanation
Answer: B
Spanner is the managed relational option that offers horizontal write scaling with external consistency, so a seat row cannot be committed twice even under concurrent global writes. Cloud SQL replicas are read-only, which means every write funnels through one regional primary and gains no multi-continent write capability while adding failover complexity.
Question 2 · Managing and provisioning a cloud solution infrastructure
You maintain a managed instance group named api-mig running instance template api-tpl-11. A new template api-tpl-12 is ready and the service owner insists that capacity never drops below the current size during rollout, with at most two extra VMs in flight. Which command performs the update?
- A.gcloud compute instance-groups managed rolling-action start-update api-mig --version=template=api-tpl-12 --max-surge=2 --max-unavailable=0
- B.gcloud compute instance-groups managed rolling-action start-update api-mig --version=template=api-tpl-12 --max-surge=0 --max-unavailable=2
- C.gcloud compute instance-groups managed rolling-action replace api-mig --template=api-tpl-12 --max-unavailable=2
- D.gcloud compute instance-groups managed set-instance-template api-mig --template=api-tpl-12 --max-surge=2
Show answer & explanation
Answer: A
Setting max-unavailable to 0 keeps every serving VM in place, and max-surge of 2 lets the group create two additional instances at a time to make progress. Allowing max-unavailable of 2 would take two serving VMs out of rotation at once, which is precisely what the service owner ruled out.
Question 3 · Designing for security and compliance
Ferro Labs runs a GitHub Actions pipeline that deploys to Google Cloud. It currently authenticates with a downloaded service account key stored as a repository secret, and the security team has flagged the long-lived credential. What should replace it?
- A.Workload Identity Federation, exchanging the pipeline's OIDC token for short-lived Google credentials
- B.An API key scoped to the deployment APIs and restricted by the runner's source IP range
- C.A user-managed service account with the key encrypted by Cloud KMS before being stored as a secret
- D.A new service account key rotated automatically every 30 days by a Cloud Scheduler job
Show answer & explanation
Answer: A
Workload Identity Federation lets an external OIDC identity impersonate a service account and receive short-lived tokens, so no key material ever leaves Google Cloud or sits in a repository. Rotating or encrypting a key still leaves an exportable long-lived credential that can be replayed if the repository secret leaks.
Question 4 · Analyzing and optimizing technical and business processes
A finance review of Ilsabet Logistics shows 120 n2-standard-8 VMs whose utilisation has stayed between 55% and 70% for 14 months, plus a batch fleet that runs only in December. The CFO wants a durable reduction in the compute bill without performance risk. What should the architect recommend?
- A.Purchase committed use discounts sized to the steady 120-VM baseline and leave the December fleet on-demand
- B.Migrate the steady fleet to Spot VMs and keep the December fleet on committed use discounts
- C.Rely on sustained use discounts for the baseline and reserve capacity in advance for December
- D.Purchase committed use discounts sized to the December peak so the busiest month is fully covered
Show answer & explanation
Answer: A
Committed use discounts pay off on capacity that runs continuously, so covering the year-round baseline captures the savings while the once-a-year batch fleet stays flexible on-demand. Sizing the commitment to the December peak would mean paying for unused committed capacity for eleven months.
Question 5 · Managing implementation
A team's Cloud Build pipeline builds an image and deploys it. Auditors require that a named release manager approve the production step, and that the approval be recorded. The build and deploy steps should remain in one automated flow. What should be configured?
- A.A branch protection rule requiring the release manager to review the merge into the main branch
- B.A Cloud Build trigger with manual approval required, so the run pauses for an authorized approver
- C.A build step that emails the release manager and waits for a reply before the deploy step continues
- D.A separate production trigger that only the release manager holds permission to run manually
Show answer & explanation
Answer: B
Cloud Build supports approval-required triggers, which hold the run in a pending state until a principal with the approver role approves or rejects, and the decision plus the approver identity is recorded on the build. A protected branch records a code review, not an approval of the specific production deployment that follows.
Question 6 · Ensuring solution and operations excellence
A payments API must be reliable enough that customers do not complain, and the team wants an explicit, measurable target to arbitrate between shipping features and doing reliability work. Which formulation should the architect define?
- A.An alert that pages the on-call engineer whenever backend CPU utilisation exceeds 85% for five minutes
- B.An SLI of the proportion of requests served under 300 ms, with an SLO of 99.9% over a rolling 28 days
- C.An SLA promising 99.9% availability, with service credits paid to customers who experience a breach
- D.A monthly report of total incident count and cumulative outage minutes, reviewed by engineering leads
Show answer & explanation
Answer: B
An SLI defines what is measured and an SLO sets the target, and the gap between the objective and 100% is the error budget the team spends on releases or reclaims through reliability work. An SLA is a contractual and financial construct, so it does not give the engineering team a day-to-day decision rule.
Question 7 · Designing and planning a cloud solution architecture
Perrin Diagnostics runs a lab results portal on regional managed instance groups in europe-west4 with a Cloud SQL primary. The business signs off on an RTO of 20 minutes and an RPO of 5 minutes for a full regional outage, and finance rejects a second always-on production footprint. Which disaster recovery pattern satisfies both constraints most economically?
- A.Hot active-active: identical instance groups serving live traffic in two regions behind a global load balancer
- B.Warm standby: a scaled-down instance group plus a cross-region read replica that is promoted during failover
- C.Backup and restore: nightly snapshots copied to a second region and restored by the on-call engineer
- D.Cold standby: images and database exports in a second region, with infrastructure built by pipeline at failover time
Show answer & explanation
Answer: B
A warm standby keeps a small footprint and a continuously replicating database, so promotion and scale-out fit inside a 20-minute RTO while replication lag stays well under a 5-minute RPO. Cold standby and nightly backups both breach the RPO because data written since the last export or snapshot is unrecoverable.
Question 8 · Managing and provisioning a cloud solution infrastructure
Cadenza Foods wants one central network team to own subnets, firewall rules, and Cloud Router, while six application teams deploy VMs from their own projects into those subnets. The application teams must not be able to edit routes or firewall rules. How should this be provisioned?
- A.Enable Shared VPC on the host project and grant teams compute.networkUser on specific subnets
- B.Enable Shared VPC on the network project and grant each application team compute.networkAdmin on the host project
- C.Create a VPC per application project and peer each one with the central network project's VPC
- D.Create one VPC in each application project and connect them with HA VPN tunnels to the network project
Show answer & explanation
Answer: A
Shared VPC keeps the network in a host project while service projects attach workloads, and the networkUser role scoped to a subnet permits instance creation without granting rights to change firewall rules or routes. Granting networkAdmin would hand the application teams exactly the network-editing powers the design is trying to withhold.
292+ more questions, free
Full-length, in timed or practice mode, and weighted to the official blueprint. Per-domain scoring shows you exactly where you stand.
Start the full practice exam →