Google Professional Cloud Developer Practice Exams
Last updated on Oct 22,2026- Exam Code: Professional Cloud Developer
- Exam Name: Professional Cloud Developer
- Certification Provider: Google
- Latest update: Oct 22,2026
In order to meet their business requirements, how should HipLocal store their application state?
- A . Use local SSDs to store state.
- B . Put a memcache layer in front of MySQL.
- C . Move the state storage to Cloud Spanner.
- D . Replace the MySQL instance with Cloud SQL.
Your application takes an input from a user and publishes it to the user’s contacts. This input is stored in a table in Cloud Spanner. Your application is more sensitive to latency and less sensitive to consistency.
How should you perform reads from Cloud Spanner for this application?
- A . Perform Read-Only transactions.
- B . Perform stale reads using single-read methods.
- C . Perform strong reads using single-read methods.
- D . Perform stale reads using read-write transactions.
D
Explanation:
Reference: https://cloud.google.com/solutions/best-practices-cloud-spanner-gaming-database
You are using Cloud Build build to promote a Docker image to Development, Test, and Production environments. You need to ensure that the same Docker image is deployed to each of these environments.
How should you identify the Docker image in your build?
- A . Use the latest Docker image tag.
- B . Use a unique Docker image name.
- C . Use the digest of the Docker image.
- D . Use a semantic version Docker image tag.
Your development team has been asked to refactor an existing monolithic application into a set of composable microservices.
Which design aspects should you implement for the new application? (Choose two.)
- A . Develop the microservice code in the same programming language used by the microservice caller.
- B . Create an API contract agreement between the microservice implementation and microservice caller.
- C . Require asynchronous communications between all microservice implementations and microservice callers.
- D . Ensure that sufficient instances of the microservice are running to accommodate the performance requirements.
- E . Implement a versioning scheme to permit future changes that could be incompatible with the current interface.
Your company is planning to migrate their on-premises Hadoop environment to the cloud. Increasing storage cost and maintenance of data stored in HDFS is a major concern for your company. You also want to make minimal changes to existing data analytics jobs and existing architecture.
How should you proceed with the migration?
- A . Migrate your data stored in Hadoop to BigQuery. Change your jobs to source their information from BigQuery instead of the on-premises Hadoop environment.
- B . Create Compute Engine instances with HDD instead of SSD to save costs. Then perform a full migration of your existing environment into the new one in Compute Engine instances.
- C . Create a Cloud Dataproc cluster on Google Cloud Platform, and then migrate your Hadoop environment to the new Cloud Dataproc cluster. Move your HDFS data into larger HDD disks to save on storage costs.
- D . Create a Cloud Dataproc cluster on Google Cloud Platform, and then migrate your Hadoop code objects to the new cluster. Move your data to Cloud Storage and leverage the Cloud Dataproc connector to run jobs on that data.
Your web application is deployed to the corporate intranet. You need to migrate the web application to Google Cloud. The web application must be available only to company employees and accessible to employees as they travel. You need to ensure the security and accessibility of the web application while minimizing application changes.
What should you do?
- A . Configure the application to check authentication credentials for each HTTP(S) request to the application.
- B . Configure Identity-Aware Proxy to allow employees to access the application through its public IP address.
- C . Configure a Compute Engine instance that requests users to log in to their corporate account. Change the web application DNS to point to the proxy Compute Engine instance. After authenticating, the Compute Engine instance forwards requests to and from the web application.
- D . Configure a Compute Engine instance that requests users to log in to their corporate account. Change the web application DNS to point to the proxy Compute Engine instance. After authenticating, the Compute Engine issues an HTTP redirect to a public IP address hosting the web application.
You are using Cloud Run to host a web application. You need to securely obtain the application project ID and region where the application is running and display this information to users. You want to use the most performant approach.
What should you do?
- A . Use HTTP requests to query the available metadata server at the http://metadata.google.internal/ endpoint with the Metadata-Flavor: Google header.
- B . In the Google Cloud console, navigate to the Project Dashboard and gather configuration details. Navigate to the Cloud Run “Variables & Secrets” tab, and add the desired environment variables in Key:Value format.
- C . In the Google Cloud console, navigate to the Project Dashboard and gather configuration details.
Write the application configuration information to Cloud Run’s in-memory container filesystem. - D . Make an API call to the Cloud Asset Inventory API from the application and format the request to include instance metadata.
You are using Cloud Run to host a web application. You need to securely obtain the application project ID and region where the application is running and display this information to users. You want to use the most performant approach.
What should you do?
- A . Use HTTP requests to query the available metadata server at the http://metadata.google.internal/ endpoint with the Metadata-Flavor: Google header.
- B . In the Google Cloud console, navigate to the Project Dashboard and gather configuration details. Navigate to the Cloud Run “Variables & Secrets” tab, and add the desired environment variables in Key:Value format.
- C . In the Google Cloud console, navigate to the Project Dashboard and gather configuration details.
Write the application configuration information to Cloud Run’s in-memory container filesystem. - D . Make an API call to the Cloud Asset Inventory API from the application and format the request to include instance metadata.
You are developing an ecommerce web application that uses App Engine standard environment and Memorystore for Redis. When a user logs into the app, the application caches the user’s information (e.g., session, name, address, preferences), which is stored for quick retrieval during checkout.
While testing your application in a browser, you get a 502 Bad Gateway error. You have determined that the application is not connecting to Memorystore.
What is the reason for this error?
- A . Your Memorystore for Redis instance was deployed without a public IP address.
- B . You configured your Serverless VPC Access connector in a different region than your App Engine instance.
- C . The firewall rule allowing a connection between App Engine and Memorystore was removed during an infrastructure update by the DevOps team.
- D . You configured your application to use a Serverless VPC Access connector on a different subnet in a different availability zone than your App Engine instance.
A
Explanation:
Reference: https://cloud.google.com/endpoints/docs/openapi/troubleshoot-response-errors
Your application is built as a custom machine image. You have multiple unique deployments of the machine image. Each deployment is a separate managed instance group with its own template. Each deployment requires a unique set of configuration values. You want to provide these unique values to each deployment but use the same custom machine image in all deployments. You want to use out-of-the-box features of Compute Engine.
What should you do?
- A . Place the unique configuration values in the persistent disk.
- B . Place the unique configuration values in a Cloud Bigtable table.
- C . Place the unique configuration values in the instance template startup script.
- D . Place the unique configuration values in the instance template instance metadata.
A
Explanation:
Reference: https://cloud.google.com/compute/docs/instance-groups