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 plan to make a simple HTML application available on the internet. This site keeps information about FAQs for your application. The application is static and contains images, HTML, CSS, and Javascript. You want to make this application available on the internet with as few steps as possible.
What should you do?
- A . Upload your application to Cloud Storage.
- B . Upload your application to an App Engine environment.
- C . Create a Compute Engine instance with Apache web server installed. Configure Apache web server to host the application.
- D . Containerize your application first. Deploy this container to Google Kubernetes Engine (GKE) and assign an external IP address to the GKE pod hosting the application.
A
Explanation:
Reference: https://cloud.google.com/storage/docs/hosting-static-website
Your App Engine standard configuration is as follows:
service: production
instance_class: B1
You want to limit the application to 5 instances.
Which code snippet should you include in your configuration?
- A . manual_scaling:instances: 5min_pending_latency: 30ms
- B . manual_scaling:max_instances: 5idle_timeout: 10m
- C . basic_scaling:instances: 5min_pending_latency: 30ms
- D . basic_scaling:max_instances: 5idle_timeout: 10m
For this question refer to the HipLocal case study.
HipLocal wants to reduce the latency of their services for users in global locations. They have created read replicas of their database in locations where their users reside and configured their service to read traffic using those replicas.
How should they further reduce latency for all database interactions with the least amount of effort?
- A . Migrate the database to Bigtable and use it to serve all global user traffic.
- B . Migrate the database to Cloud Spanner and use it to serve all global user traffic.
- C . Migrate the database to Firestore in Datastore mode and use it to serve all global user traffic.
- D . Migrate the services to Google Kubernetes Engine and use a load balancer service to better scale the application.
Your application is running on Compute Engine and is showing sustained failures for a small number of requests. You have narrowed the cause down to a single Compute Engine instance, but the instance is unresponsive to SSH.
What should you do next?
- A . Reboot the machine.
- B . Enable and check the serial port output.
- C . Delete the machine and create a new one.
- D . Take a snapshot of the disk and attach it to a new machine.
You have an application controlled by a managed instance group. When you deploy a new version of the application, costs should be minimized and the number of instances should not increase. You want to ensure that, when each new instance is created, the deployment only continues if the new instance is healthy.
What should you do?
- A . Perform a rolling-action with maxSurge set to 1, maxUnavailable set to 0.
- B . Perform a rolling-action with maxSurge set to 0, maxUnavailable set to 1
- C . Perform a rolling-action with maxHealthy set to 1, maxUnhealthy set to 0.
- D . Perform a rolling-action with maxHealthy set to 0, maxUnhealthy set to 1.
A
Explanation:
Reference: https://cloud.google.com/compute/docs/instance-groups/rolling-out-updates-to-managed-instance-groups
You are using Cloud Build to build a Docker image. You need to modify the build to execute unit and run integration tests. When there is a failure, you want the build history to clearly display the stage at which the build failed.
What should you do?
- A . Add RUN commands in the Dockerfile to execute unit and integration tests.
- B . Create a Cloud Build build config file with a single build step to compile unit and integration tests.
- C . Create a Cloud Build build config file that will spawn a separate cloud build pipeline for unit and Integration tests.
- D . Create a Cloud Build build config file with separate cloud builder steps to compile and execute unit and integration tests.
You are using Cloud Build to build a Docker image. You need to modify the build to execute unit and run integration tests. When there is a failure, you want the build history to clearly display the stage at which the build failed.
What should you do?
- A . Add RUN commands in the Dockerfile to execute unit and integration tests.
- B . Create a Cloud Build build config file with a single build step to compile unit and integration tests.
- C . Create a Cloud Build build config file that will spawn a separate cloud build pipeline for unit and Integration tests.
- D . Create a Cloud Build build config file with separate cloud builder steps to compile and execute unit and integration tests.
Your team manages a Google Kubernetes Engine (GKE) cluster where an application is running. A different team is planning to integrate with this application. Before they start the integration, you need to ensure that the other team cannot make changes to your application, but they can deploy the integration on GKE.
What should you do?
- A . Using Identity and Access Management (IAM), grant the Viewer IAM role on the cluster project to the other team.
- B . Create a new GKE cluster. Using Identity and Access Management (IAM), grant the Editor role on the cluster project to the other team.
- C . Create a new namespace in the existing cluster. Using Identity and Access Management (IAM), grant the Editor role on the cluster project to the other team.
- D . Create a new namespace in the existing cluster. Using Kubernetes role-based access control (RBAC), grant the Admin role on the new namespace to the other team.
You want to migrate an on-premises container running in Knative to Google Cloud. You need to make sure that the migration doesn’t affect your application’s deployment strategy, and you want to use a fully managed service.
Which Google Cloud service should you use to deploy your container?
- A . Cloud Run
- B . Compute Engine
- C . Google Kubernetes Engine
- D . App Engine flexible environment
A
Explanation:
https://cloud.google.com/blog/products/serverless/knative-based-cloud-run-services-are-ga
Your company’s development teams want to use various open source operating systems in their Docker builds. When images are created in published containers in your company’s environment, you need to scan them for Common Vulnerabilities and Exposures (CVEs). The scanning process must not impact software development agility. You want to use managed services where possible.
What should you do?
- A . Enable the Vulnerability scanning setting in the Container Registry.
- B . Create a Cloud Function that is triggered on a code check-in and scan the code for CVEs.
- C . Disallow the use of non-commercially supported base images in your development environment.
- D . Use Cloud Monitoring to review the output of Cloud Build to determine whether a vulnerable version has been used.
A
Explanation:
https://cloud.google.com/container-analysis/docs/os-overview