GCP GCP-PCA Free Practice Questions — Page 2

Professional Cloud Architect • 5 questions • Answers & explanations included

Question 6

You need to reduce the number of unplanned rollbacks of erroneous production deployments in your company's web hosting platform. Improvement to the QA/ Test processes accomplished an 80% reduction. Which additional two approaches can you take to further reduce the rollbacks? (Choose two.)

A. Introduce a green-blue deployment model
B. Replace the QA environment with canary releases
C. Fragment the monolithic platform into microservices
D. Reduce the platform's dependency on relational database systems
E. Replace the platform's relational database systems with a NoSQL database
Show Answer & Explanation

Correct Answers: A. Introduce a green-blue deployment model; C. Fragment the monolithic platform into microservices

A. Introduce a green-blue deployment model A Blue-Green deployment is a strategy that utilizes two identical production environments. How it works: One environment (Blue) handles all live production traffic. You deploy the new version of your application to the second environment (Green). Once you've verified that the Green environment is functioning correctly, you switch the router or load balancer to point all traffic to Green. Why it reduces rollbacks: If a critical error is discovered immediately after the switch, "rolling back" is as simple as flipping the switch back to the Blue environment. There is zero downtime and no need to uninstall software or restore databases in a panic. C. Fragment the monolithic platform into microservices Moving from a Monolith to Microservices addresses the structural risk of deployments. How it works: You break the large, single application into smaller, independent services that communicate via APIs. Each service can be developed, tested, and deployed independently. Why it reduces rollbacks: In a monolith, a single bug in a minor feature can force a rollback of the entire platform. With microservices, an error is isolated to a specific service. You only need to roll back that specific service, while the rest of the platform remains stable and functional. This significantly reduces the blast radius of any single failed deployment.

Question 7

To reduce costs, the Director of Engineering has required all developers to move their development infrastructure resources from on-premises virtual machines (VMs) to Google Cloud Platform. These resources go through multiple start/stop events during the day and require state to persist. You have been asked to design the process of running a development environment in Google Cloud while providing cost visibility to the finance department. Which two steps should you take? (Choose two.)

A. Use the - -no-auto-delete flag on all persistent disks and stop the VM
B. Use the - -auto-delete flag on all persistent disks and terminate the VM
C. Apply VM CPU utilization label and include it in the BigQuery billing export
D. Use Google BigQuery billing export and labels to associate cost to groups
E. Store all state into local SSD, snapshot the persistent disks, and terminate the VM
F. Store all state in Google Cloud Storage, snapshot the persistent disks, and terminate the VM
Show Answer & Explanation

Correct Answers: A. Use the - -no-auto-delete flag on all persistent disks and stop the VM; D. Use Google BigQuery billing export and labels to associate cost to groups

Using --no-auto-delete on persistent disks (Option A) ensures the disk persists when the VM is stopped, preserving state without paying for a running VM. Stopping (not terminating) the VM avoids compute charges while keeping the disk intact. Option D — BigQuery billing export with labels — gives the finance team cost visibility per team or project. Option B (--auto-delete) would destroy the disk on termination, losing state. Options E and F introduce unnecessary complexity for a dev environment. Option C (CPU utilization label) doesn't provide billing visibility.

Question 8

Your company wants to track whether someone is present in a meeting room reserved for a scheduled meeting. There are 1000 meeting rooms across 5 offices on 3 continents. Each room is equipped with a motion sensor that reports its status every second. The data from the motion detector includes only a sensor ID and several different discrete items of information. Analysts will use this data, together with information about account owners and office locations. Which database type should you use?

A. Flat file
B. NoSQL
C. Relational
D. Blobstore
Show Answer & Explanation

Correct Answer: C. Relational

A relational database is the correct choice here. The data involves multiple related entities: sensors, rooms, account owners, and office locations — all of which benefit from JOIN operations and structured queries. The data is structured with discrete fields, not unstructured blobs. Cloud SQL or Cloud Spanner supports this model well. NoSQL (Option B) is better for unstructured or high-velocity data without complex relationships. Flat files (Option A) have no query capability. Blobstore (Option D) is for binary/unstructured object storage, not transactional data.

Question 9

You set up an autoscaling instance group to serve web traffic for an upcoming launch. After configuring the instance group as a backend service to an HTTP(S) load balancer, you notice that virtual machine (VM) instances are being terminated and re-launched every minute. The instances do not have a public IP address. You have verified the appropriate web response is coming from each instance using the curl command. You want to ensure the backend is configured correctly. What should you do?

A. Ensure that a firewall rules exists to allow source traffic on HTTP/HTTPS to reach the load balancer.
B. Assign a public IP to each instance and configure a firewall rule to allow the load balancer to reach the instance public IP.
C. Ensure that a firewall rule exists to allow load balancer health checks to reach the instances in the instance group.
D. Create a tag on each instance with the name of the load balancer. Configure a firewall rule with the name of the load balancer as the source and the instance tag as the destination.
Show Answer & Explanation

Correct Answer: C. Ensure that a firewall rule exists to allow load balancer health checks to reach the instances in the instance group.

When instances have no public IP and are being terminated/restarted repeatedly, the most likely cause is failing health checks. The HTTP(S) load balancer sends health check probes from specific Google IP ranges (130.211.0.0/22 and 35.191.0.0/16). If a firewall rule doesn't allow these probes to reach the instances, health checks fail, and the load balancer marks instances as unhealthy and removes them. Option A is about client-to-LB traffic, not the issue here. Option B is unnecessary and contradicts the private-IP design. Option D is not how firewall rules for load balancers work.

Question 10

You write a Python script to connect to Google BigQuery from a Google Compute Engine virtual machine. The script is printing errors that it cannot connect to BigQuery. What should you do to fix the script?

A. Install the latest BigQuery API client library for Python
B. Run your script on a new virtual machine with the BigQuery access scope enabled
C. Create a new service account with BigQuery access and execute your script with that user
D. Install the bq component for gcloud with the command gcloud components install bq.
Show Answer & Explanation

Correct Answer: C. Create a new service account with BigQuery access and execute your script with that user

Why Option C is the Best Practice In Google Cloud, applications should use Service Accounts to authenticate. This follows the Principle of Least Privilege. Identity: You create a specific identity (the Service Account) for the script. Permissions: You grant that account only the specific IAM roles it needs (e.g., roles/bigquery.dataEditor or roles/bigquery.jobUser). Portability: This method works regardless of where the script runs (GCE, local machine, or another cloud) and doesn't require recreating the VM.

Ready for the Full GCP-PCA Experience?

Access all 55 pages of practice questions and simulate the real exam with timed mode.

Start Interactive Quiz →