GCP Professional Cloud Architect Practice Questions: Case Study Walkthroughs
These questions are designed to mirror the difficulty, ambiguity, and scenario-based nature of the Google Cloud Professional Cloud Architect exam. Focus on understanding why the correct answer is right and, more importantly, why the distractors are wrong, as this is key to passing.
Question 1
Your company is migrating a legacy monolithic application to Google Cloud. The application has a stateful session layer and uses a relational database. You need to refactor the application to run on Google Kubernetes Engine (GKE) with minimal code changes. You must ensure that the new architecture is highly available and can handle sudden spikes in traffic without manual intervention. What should you do? If this interests you, GCP Professional Cloud Architect Difficulty: Why Case Studies Are the Real Boss goes into more detail.
Answer: D
Explanation: The application is stateful, so a StatefulSet is required to maintain stable network identities and persistent storage for the session layer. A LoadBalancer Service distributes traffic to the pods, and the HorizontalPodAutoscaler (HPA) provides automatic scaling based on load. Option B is wrong because Deployments are for stateless applications. Option C is wrong because a Headless Service does not provide a stable external IP for load balancing, and a PodDisruptionBudget does not handle traffic spikes.
Question 2
Your organization has a strict security policy requiring that all Compute Engine VMs have the "shielded VM" feature enabled. You need to ensure that any VM created in the organization, either by users or by service accounts, automatically complies with this policy. What should you do?
Answer: A
Explanation: Organization Policy allows you to set constraints at the organization, folder, or project level. The compute.instances.shieldedVm constraint is a boolean constraint that can be set to true to require all new VMs to be shielded, enforcing it at the API level. Options B, C, and D are incorrect because they are either reactive, require manual adherence, or do not enforce the policy at creation time.
Question 3
You are designing a data ingestion pipeline for a global IoT platform. Devices send millions of small, time-stamped messages every minute. You need to buffer this data for a few minutes before processing it in batches with Cloud Dataflow. You want to minimize cost and operational overhead. Which service should you use for the buffering layer?
Answer: A
Explanation: Cloud Pub/Sub is a scalable, managed message queue designed for high-throughput ingestion of event data. It allows Dataflow to pull data in batches and acts as a buffer to decouple producers from consumers. Cloud Bigtable and Cloud Storage are databases, not message queues, and would require more overhead to manage the buffering logic. Cloud SQL is not designed for this scale of streaming data.
Question 4
You are migrating a critical application to Compute Engine. You need to ensure that the application can recover from a zonal failure with an RTO of less than 15 minutes and an RPO of zero. The application writes data to a persistent disk. What is the most cost-effective way to meet these requirements?
Answer: C If you're preparing for this exam, GCP Professional Cloud Architect Passing Score: What to Aim For is essential reading.
Explanation: A regional persistent disk provides synchronous replication of data across two zones, giving an RPO of zero. A managed instance group (MIG) with a health check can automatically detect the zonal failure and recreate the VM in the other zone, meeting the RTO requirement. Option A has an RPO of up to an hour. Option B is a manual process that is slow and error-prone. Option D is not a native feature of standard persistent disks.
Question 5
Your company is building a microservices application on Google Kubernetes Engine (GKE). You need to enforce strict network policies so that services can only communicate with specific other services. For example, the frontend service can only talk to the backend service, and the backend service can only talk to the database service. How should you configure the network?
Answer: A
Explanation: GKE Network Policy provides Kubernetes-native network security, allowing you to define fine-grained ingress and egress rules based on pod labels and namespaces. This is the standard way to implement micro-segmentation in GKE. Option B is too complex and doesn't scale. Option C is incorrect because firewall rules in a VPC are IP-based, not label-based, and are not the right tool for pod-level security. Option D (Istio) is for traffic management and security (like mTLS), but Network Policy is the core mechanism for enforcing L3/L4 access control.
Question 6
Your company has a VPC with a subnet in us-central1. You have a Cloud Function in us-central1 that needs to access a Cloud SQL instance in the same region. You want to connect to Cloud SQL privately using an internal IP address, without exposing the database to the public internet. What must you do?
Answer: B
Explanation: To access a private IP Cloud SQL instance, your resource must be in the same VPC. A Cloud Function needs a Serverless VPC Connector to access resources in a VPC. This allows the function to communicate with the Cloud SQL instance over the private network. Option A exposes the database to the public internet. Option C uses VPN which is unnecessary for resources in the same region. Option D (Cloud SQL Auth Proxy) is used for connecting from external resources or when you don't want to manage IP addresses, but it still requires network connectivity to the instance's IP.
Question 7
You are designing a multi-region disaster recovery strategy for a web application. You are using Cloud SQL for PostgreSQL for your primary database in us-central1. You need to ensure that you can fail over to a secondary region in the event of a regional outage. What is the simplest and most reliable approach?
Answer: A
Explanation: Cloud SQL supports cross-region replication for PostgreSQL, allowing you to create a read replica in a different region. In a disaster, you can promote this replica to a primary instance, providing a reliable and relatively simple DR mechanism. Option B has an RPO of up to 24 hours and a complex recovery process. Option C only protects against a zonal failure, not a regional one. Option D is overly complex and bespoke compared to the native replication feature. This topic pairs well with GCP Professional Cloud Architect 12-Week Study Plan.
Question 8
Your team is using Cloud Build to build a Docker image from a source repository. The build process needs to access a private artifact repository in Artifact Registry. You want to ensure that the build can authenticate to the registry without embedding credentials in the source code or build config. What is the recommended approach?
Answer: C
Explanation: Cloud Build uses a service account to run builds. By granting that service account the appropriate IAM role (e.g., roles/artifactregistry.writer) on the repository, the build can automatically authenticate to Artifact Registry. The standard gcloud auth configure-docker command in the build step uses the service account's credentials. Options A and B are insecure and involve storing secrets in plain text or requiring complex setup. Option D is not possible in a non-interactive build environment.
Question 9
You need to design a solution for storing and querying a large dataset of time-series data from millions of sensors. Each data point has a timestamp, a sensor ID, and a value. You need to support queries like "Get the average value for sensor X over the last hour." You also need to retain the data for 5 years. What is the most cost-effective and performant solution?
Answer: D
Explanation: BigQuery is ideal for analytical queries on massive datasets. Partitioning by timestamp allows for efficient time-range queries and reduces costs by only scanning relevant partitions, while clustering by sensorID further optimizes queries filtering on a specific sensor. BigQuery's storage is cost-effective for long-term retention. Option A (Bigtable) is good for high-throughput writes, but is less efficient for analytical aggregation queries. Option B is poor for performance. Option C (Spanner) is a transactional database, not designed for this type of analytical workload and is more expensive.
Question 10
Your company has a global user base and serves a static website (HTML, CSS, JS) and a REST API from Google Cloud. You want to reduce latency for users and protect the backend from DDoS attacks. You also want to route traffic to the API based on URL paths (e.g., /api/* to the backend, everything else to the static site). Which two Google Cloud products should you use together?
Answer: B
Explanation: The requirement specifies URL-based routing, which is a feature of Cloud Load Balancing (specifically the URL map). The requirement also mentions DDoS protection, which is a feature of Cloud Armor. Therefore, you need Cloud Load Balancing (with URL maps) to route traffic and Cloud Armor to provide DDoS protection and WAF capabilities. Cloud CDN alone (Option A) does not provide URL routing to an API backend. Option D is missing Cloud Armor. Option C is not relevant to these requirements. --- These questions cover key domains, but remember that the real exam is heavily scenario-based and will require you to synthesize multiple concepts. Make sure you understand the "why" behind each answer, and practice designing complete architectures that combine networking, compute, storage, and IAM. Good luck with your preparation!
To make that preparation manageable, a free Google Cloud Professional Cloud Architect study plan can give you a schedule that fits your time.
Nothing replaces hands-on practice — sit Google Cloud Professional Cloud Architect exam simulations and review every answer explanation.
A free Google Cloud Professional Cloud Architect readiness check can help you identify your weakest topic before the real exam.
