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
You are developing a new web application using Cloud Run and committing code to Cloud Source Repositories. You want to deploy new code in the most efficient way possible. You have already created a Cloud Build YAML file that builds a container and runs the following command: gcloud run deploy.
What should you do next?
- A . Create a Pub/Sub topic to be notified when code is pushed to the repository. Create a Pub/Sub trigger that runs the build file when an event is published to the topic.
- B . Create a build trigger that runs the build file in response to a repository code being pushed to the development branch.
- C . Create a webhook build trigger that runs the build file in response to HTTP POST calls to the webhook URL.
- D . Create a Cron job that runs the following command every 24 hours: gcloud builds submit.
B
Explanation:
https://cloud.google.com/build/docs/triggers
Cloud Build uses build triggers to enable CI/CD automation. You can configure triggers to listen for incoming events, such as when a new commit is pushed to a repository or when a pull request is initiated, and then automatically execute a build when new events come in. You can also configure triggers to build code on any changes to your source repository or only on changes that match certain criteria.
You have two tables in an ANSI-SQL compliant database with identical columns that you need to quickly combine into a single table, removing duplicate rows from the result set.
What should you do?
- A . Use the JOIN operator in SQL to combine the tables.
- B . Use nested WITH statements to combine the tables.
- C . Use the UNION operator in SQL to combine the tables.
- D . Use the UNION ALL operator in SQL to combine the tables.
C
Explanation:
Reference: https://www.techonthenet.com/sql/union_all.php
HipLocal wants to improve the resilience of their MySQL deployment, while also meeting their business and technical requirements.
Which configuration should they choose?
- A . Use the current single instance MySQL on Compute Engine and several read-only MySQL servers on
Compute Engine. - B . Use the current single instance MySQL on Compute Engine, and replicate the data to Cloud SQL in an
external master configuration. - C . Replace the current single instance MySQL instance with Cloud SQL, and configure high availability.
- D . Replace the current single instance MySQL instance with Cloud SQL, and Google provides redundancy without further configuration.
You are developing a web application that contains private images and videos stored in a Cloud Storage bucket. Your users are anonymous and do not have Google Accounts. You want to use your application-specific logic to control access to the images and videos.
How should you configure access?
- A . Cache each web application user’s IP address to create a named IP table using Google Cloud Armor. Create a Google Cloud Armor security policy that allows users to access the backend bucket.
- B . Grant the Storage Object Viewer IAM role to allUsers. Allow users to access the bucket after authenticating through your web application.
- C . Configure Identity-Aware Proxy (IAP) to authenticate users into the web application. Allow users to access the bucket after authenticating through IAP.
- D . Generate a signed URL that grants read access to the bucket. Allow users to access the URL after authenticating through your web application.
D
Explanation:
https://cloud.google.com/storage/docs/access-control/signed-urls#should-you-use
In some scenarios, you might not want to require your users to have a Google account in order to access Cloud Storage, but you still want to control access using your application-specific logic. The typical way to address this use case is to provide a signed URL to a user, which gives the user read, write, or delete access to that resource for a limited time. You specify an expiration time when you create the signed URL. Anyone who knows the URL can access the resource until the expiration time for the URL is reached or the key used to sign the URL is rotated.
You have been tasked with planning the migration of your company’s application from on-premises to Google Cloud. Your company’s monolithic application is an ecommerce website. The application will be migrated to microservices deployed on Google Cloud in stages. The majority of your company’s revenue is generated through online sales, so it is important to minimize risk during the migration. You need to prioritize features and select the first functionality to migrate.
What should you do?
- A . Migrate the Product catalog, which has integrations to the frontend and product database.
- B . Migrate Payment processing, which has integrations to the frontend, order database, and third-party payment vendor.
- C . Migrate Order fulfillment, which has integrations to the order database, inventory system, and third-party shipping vendor.
- D . Migrate the Shopping cart, which has integrations to the frontend, cart database, inventory system, and payment processing system.
You have been tasked with planning the migration of your company’s application from on-premises to Google Cloud. Your company’s monolithic application is an ecommerce website. The application will be migrated to microservices deployed on Google Cloud in stages. The majority of your company’s revenue is generated through online sales, so it is important to minimize risk during the migration. You need to prioritize features and select the first functionality to migrate.
What should you do?
- A . Migrate the Product catalog, which has integrations to the frontend and product database.
- B . Migrate Payment processing, which has integrations to the frontend, order database, and third-party payment vendor.
- C . Migrate Order fulfillment, which has integrations to the order database, inventory system, and third-party shipping vendor.
- D . Migrate the Shopping cart, which has integrations to the frontend, cart database, inventory system, and payment processing system.
You want to create “fully baked” or “golden” Compute Engine images for your application. You need to bootstrap your application to connect to the appropriate database according to the environment the application is running on (test, staging, production).
What should you do?
- A . Embed the appropriate database connection string in the image. Create a different image for each environment.
- B . When creating the Compute Engine instance, add a tag with the name of the database to be connected. In your application, query the Compute Engine API to pull the tags for the current instance, and use the tag to construct the appropriate database connection string.
- C . When creating the Compute Engine instance, create a metadata item with a key of “DATABASE” and a value for the appropriate database connection string. In your application, read the “DATABASE” environment variable, and use the value to connect to the appropriate database.
- D . When creating the Compute Engine instance, create a metadata item with a key of “DATABASE” and a value for the appropriate database connection string. In your application, query the metadata server for the “DATABASE” value, and use the value to connect to the appropriate database.
You are planning to add unit tests to your application. You need to be able to assert that published Pub/Sub messages are processed by your subscriber in order. You want the unit tests to be cost-effective and reliable.
What should you do?
- A . Implement a mocking framework.
- B . Create a topic and subscription for each tester.
- C . Add a filter by tester to the subscription.
- D . Use the Pub/Sub emulator.
D
Explanation:
https://cloud.google.com/pubsub/docs/emulator, "Testing apps locally with the emulator".
Which database should HipLocal use for storing user activity?
- A . BigQuery
- B . Cloud SQL
- C . Cloud Spanner
- D . Cloud Datastore
Your website is deployed on Compute Engine. Your marketing team wants to test conversion rates between 3 different website designs.
Which approach should you use?
- A . Deploy the website on App Engine and use traffic splitting.
- B . Deploy the website on App Engine as three separate services.
- C . Deploy the website on Cloud Functions and use traffic splitting.
- D . Deploy the website on Cloud Functions as three separate functions.
A
Explanation:
Reference: https://cloud.google.com/appengine/docs/standard/python/splitting-traffic