Google Professional Cloud Developer Practice Exams
Last updated on Oct 24,2026- Exam Code: Professional Cloud Developer
- Exam Name: Professional Cloud Developer
- Certification Provider: Google
- Latest update: Oct 24,2026
You need to deploy a new European version of a website hosted on Google Kubernetes Engine. The current and new websites must be accessed via the same HTTP(S) load balancer’s external IP address, but have different domain names.
What should you do?
- A . Define a new Ingress resource with a host rule matching the new domain
- B . Modify the existing Ingress resource with a host rule matching the new domain
- C . Create a new Service of type LoadBalancer specifying the existing IP address as the loadBalancerIP
- D . Generate a new Ingress resource and specify the existing IP address as the kubernetes.io/ingress.global-static-ip-name annotation value
B
Explanation:
https://kubernetes.io/docs/concepts/services-networking/ingress/#name-based-virtual-hosting Name-based virtual hosts support routing HTTP traffic to multiple host names at the same IP address.
You are developing an application that will be launched on Compute Engine instances into multiple distinct projects, each corresponding to the environments in your software development process (development, QA, staging, and production). The instances in each project have the same application code but a different configuration. During deployment, each instance should receive the application’s configuration based on the environment it serves. You want to minimize the number of steps to configure this flow.
What should you do?
- A . When creating your instances, configure a startup script using the gcloud command to determine the project name that indicates the correct environment.
- B . In each project, configure a metadata key “environment” whose value is the environment it serves. Use your deployment tool to query the instance metadata and configure the application based on the “environment” value.
- C . Deploy your chosen deployment tool on an instance in each project. Use a deployment job to retrieve the appropriate configuration file from your version control system, and apply the configuration when deploying the application on each instance.
- D . During each instance launch, configure an instance custom-metadata key named “environment” whose value is the environment the instance serves. Use your deployment tool to query the instance metadata, and configure the application based on the “environment” value.
B
Explanation:
Reference: https://cloud.google.com/compute/docs/metadata/overview
You are monitoring a web application that is written in Go and deployed in Google Kubernetes Engine. You notice an increase in CPU and memory utilization. You need to determine which source code is consuming the most CPU and memory resources.
What should you do?
- A . Download, install, and start the Snapshot Debugger agent in your VM. Take debug snapshots of the functions that take the longest time. Review the call stack frame, and identify the local variables at that level in the stack.
- B . Import the Cloud Profiler package into your application, and initialize the Profiler agent. Review the generated flame graph in the Google Cloud console to identify time-intensive functions.
- C . Import Open Telemetry and Trace export packages into your application, and create the trace provider.
Review the latency data for your application on the Trace overview page, and identify where bottlenecks are occurring. - D . Create a Cloud Logging query that gathers the web application’s logs. Write a Python script that calculates the difference between the timestamps from the beginning and the end of the application’s longest functions to identity time-intensive functions.
Your development team has been tasked with maintaining a .NET legacy application. The application incurs occasional changes and was recently updated. Your goal is to ensure that the application provides consistent results while moving through the CI/CD pipeline from environment to environment. You want to minimize the cost of deployment while making sure that external factors and dependencies between hosting environments are not problematic. Containers are not yet approved in your organization.
What should you do?
- A . Rewrite the application using .NET Core, and deploy to Cloud Run. Use revisions to separate the environments.
- B . Use Cloud Build to deploy the application as a new Compute Engine image for each build. Use this image in each environment.
- C . Deploy the application using MS Web Deploy, and make sure to always use the latest, patched MS Windows Server base image in Compute Engine.
- D . Use Cloud Build to package the application, and deploy to a Google Kubernetes Engine cluster. Use namespaces to separate the environments.
B
Explanation:
https://cloud.google.com/architecture/modernization-path-dotnet-applications-google-cloud#phase_1_rehost_in_the_cloud
https://cloud.google.com/architecture/modernization-path-dotnet-applications-google-cloud
You manage an application that runs in a Compute Engine instance. You also have multiple backend services executing in stand-alone Docker containers running in Compute Engine instances. The Compute Engine instances supporting the backend services are scaled by managed instance groups in multiple regions. You want your calling application to be loosely coupled. You need to be able to invoke distinct service implementations that are chosen based on the value of an HTTP header found in the request.
Which Google Cloud feature should you use to invoke the backend services?
- A . Traffic Director
- B . Service Directory
- C . Anthos Service Mesh
- D . Internal HTTP(S) Load Balancing
You recently developed an application that monitors a large number of stock prices. You need to configure Pub/Sub to receive a high volume messages and update the current stock price in a single large in-memory database The downstream service needs only the most up-to-date prices in the in-memory database to perform stock trading transactions.
Each message contains three pieces of information
• Stock symbol
• Stock price
• Timestamp for the update
How should you set up your Pub/Sub subscription?
- A . Create a pull subscription with both ordering and exactly-once delivery turned off
- B . Create a pull subscription with exactly-once delivery enabled
- C . Create a push subscription with exactly-once delivery enabled
- D . Create a push subscription with both ordering and exactly-once delivery turned off
Your team develops stateless services that run on Google Kubernetes Engine (GKE). You need to deploy a new service that will only be accessed by other services running in the GKE cluster. The service will need to scale as quickly as possible to respond to changing load.
What should you do?
- A . Use a Vertical Pod Autoscaler to scale the containers, and expose them via a ClusterIP Service.
- B . Use a Vertical Pod Autoscaler to scale the containers, and expose them via a NodePort Service.
- C . Use a Horizontal Pod Autoscaler to scale the containers, and expose them via a ClusterIP Service.
- D . Use a Horizontal Pod Autoscaler to scale the containers, and expose them via a NodePort Service.
C
Explanation:
https://cloud.google.com/kubernetes-engine/docs/concepts/service
You are building a highly available and globally accessible application that will serve static content to users. You need to configure the storage and serving components. You want to minimize management overhead and latency while maximizing reliability for users.
What should you do?
- A . 1) Create a managed instance group. Replicate the static content across the virtual machines (VMs)
2) Create an external HTTP(S) load balancer.
3) Enable Cloud CDN, and send traffic to the managed instance group. - B . 1) Create an unmanaged instance group. Replicate the static content across the VMs.
2) Create an external HTTP(S) load balancer
3) Enable Cloud CDN, and send traffic to the unmanaged instance group. - C . 1) Create a Standard storage class, regional Cloud Storage bucket. Put the static content in the bucket
2) Reserve an external IP address, and create an external HTTP(S) load balancer
3) Enable Cloud CDN, and send traffic to your backend bucket - D . 1) Create a Standard storage class, multi-regional Cloud Storage bucket. Put the static content in the bucket.
2) Reserve an external IP address, and create an external HTTP(S) load balancer.
3) Enable Cloud CDN, and send traffic to your backend bucket.
Your application is controlled by a managed instance group. You want to share a large read-only data set between all the instances in the managed instance group. You want to ensure that each instance can start quickly and can access the data set via its filesystem with very low latency. You also want to minimize the total cost of the solution.
What should you do?
- A . Move the data to a Cloud Storage bucket, and mount the bucket on the filesystem using Cloud Storage FUSE.
- B . Move the data to a Cloud Storage bucket, and copy the data to the boot disk of the instance via a startup script.
- C . Move the data to a Compute Engine persistent disk, and attach the disk in read-only mode to multiple Compute Engine virtual machine instances.
- D . Move the data to a Compute Engine persistent disk, take a snapshot, create multiple disks from the snapshot, and attach each disk to its own instance.
You are developing an application using different microservices that should remain internal to the cluster. You want to be able to configure each microservice with a specific number of replicas. You also want to be able to address a specific microservice from any other microservice in a uniform way, regardless of the number of replicas the microservice scales to. You need to implement this solution on Google Kubernetes Engine.
What should you do?
- A . Deploy each microservice as a Deployment. Expose the Deployment in the cluster using a Service, and use the Service DNS name to address it from other microservices within the cluster.
- B . Deploy each microservice as a Deployment. Expose the Deployment in the cluster using an Ingress, and use the Ingress IP address to address the Deployment from other microservices within the cluster.
- C . Deploy each microservice as a Pod. Expose the Pod in the cluster using a Service, and use the Service DNS name to address the microservice from other microservices within the cluster.
- D . Deploy each microservice as a Pod. Expose the Pod in the cluster using an Ingress, and use the
Ingress IP address name to address the Pod from other microservices within the cluster.