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
Your code is running on Cloud Functions in project A. It is supposed to write an object in a Cloud Storage bucket owned by project B. However, the write call is failing with the error "403 Forbidden".
What should you do to correct the problem?
- A . Grant your user account the roles/storage.objectCreator role for the Cloud Storage bucket.
- B . Grant your user account the roles/iam.serviceAccountUser role for the [email protected] service account.
- C . Grant the [email protected] service account the roles/storage.objectCreator role for the Cloud Storage bucket.
- D . Enable the Cloud Storage API in project B.
Your code is running on Cloud Functions in project A. It is supposed to write an object in a Cloud Storage bucket owned by project B. However, the write call is failing with the error "403 Forbidden".
What should you do to correct the problem?
- A . Grant your user account the roles/storage.objectCreator role for the Cloud Storage bucket.
- B . Grant your user account the roles/iam.serviceAccountUser role for the [email protected] service account.
- C . Grant the [email protected] service account the roles/storage.objectCreator role for the Cloud Storage bucket.
- D . Enable the Cloud Storage API in project B.
You are designing a deployment technique for your new applications on Google Cloud. As part of your deployment planning, you want to use live traffic to gather performance metrics for both new and existing applications. You need to test against the full production load prior to launch.
What should you do?
- A . Use canary deployment
- B . Use blue/green deployment
- C . Use rolling updates deployment
- D . Use A/B testing with traffic mirroring during deployment
A
Explanation:
Reference: https://cloud.google.com/architecture/application-deployment-and-testing-strategies
Your existing application keeps user state information in a single MySQL database. This state information is very user-specific and depends heavily on how long a user has been using an application. The MySQL database is causing challenges to maintain and enhance the schema for various users.
Which storage option should you choose?
- A . Cloud SQL
- B . Cloud Storage
- C . Cloud Spanner
- D . Cloud Datastore/Firestore
A
Explanation:
Reference: https://cloud.google.com/solutions/migrating-mysql-to-cloudsql-concept
Validate the application’s performance for the new subset of users during the rollout and roll back if an issue arises.
You are developing a single-player mobile game backend that has unpredictable traffic patterns as users interact with the game throughout the day and night. You want to optimize costs by ensuring that you have enough resources to handle requests, but minimize over-provisioning. You also want the system to handle traffic spikes efficiently.
Which compute platform should you use?
- A . Cloud Run
- B . Compute Engine with managed instance groups
- C . Compute Engine with unmanaged instance groups
- D . Google Kubernetes Engine using cluster autoscaling
You are deploying a single website on App Engine that needs to be accessible via the URL http://www.altostrat.com/.
What should you do?
- A . Verify domain ownership with Webmaster Central. Create a DNS CNAME record to point to the App Engine canonical name ghs.googlehosted.com.
- B . Verify domain ownership with Webmaster Central. Define an A record pointing to the single global App Engine IP address.
- C . Define a mapping in dispatch.yaml to point the domain www.altostrat.com to your App Engine service. Create a DNS CNAME record to point to the App Engine canonical name ghs.googlehosted.com.
- D . Define a mapping in dispatch.yaml to point the domain www.altostrat.com to your App Engine service. Define an A record pointing to the single global App Engine IP address.
A
Explanation:
Reference: https://cloud.google.com/appengine/docs/flexible/dotnet/mapping-custom-domains?hl=fa
You manage an ecommerce application that processes purchases from customers who can subsequently cancel or change those purchases. You discover that order volumes are highly variable and the backend order-processing system can only process one request at a time. You want to ensure seamless performance for customers regardless of usage volume. It is crucial that customers’ order update requests are performed in the sequence in which they were generated.
What should you do?
- A . Send the purchase and change requests over WebSockets to the backend.
- B . Send the purchase and change requests as REST requests to the backend.
- C . Use a Pub/Sub subscriber in pull mode and use a data store to manage ordering.
- D . Use a Pub/Sub subscriber in push mode and use a data store to manage ordering.
C
Explanation:
https://cloud.google.com/pubsub/docs/pull
You manage an ecommerce application that processes purchases from customers who can subsequently cancel or change those purchases. You discover that order volumes are highly variable and the backend order-processing system can only process one request at a time. You want to ensure seamless performance for customers regardless of usage volume. It is crucial that customers’ order update requests are performed in the sequence in which they were generated.
What should you do?
- A . Send the purchase and change requests over WebSockets to the backend.
- B . Send the purchase and change requests as REST requests to the backend.
- C . Use a Pub/Sub subscriber in pull mode and use a data store to manage ordering.
- D . Use a Pub/Sub subscriber in push mode and use a data store to manage ordering.
C
Explanation:
https://cloud.google.com/pubsub/docs/pull
You manage an ecommerce application that processes purchases from customers who can subsequently cancel or change those purchases. You discover that order volumes are highly variable and the backend order-processing system can only process one request at a time. You want to ensure seamless performance for customers regardless of usage volume. It is crucial that customers’ order update requests are performed in the sequence in which they were generated.
What should you do?
- A . Send the purchase and change requests over WebSockets to the backend.
- B . Send the purchase and change requests as REST requests to the backend.
- C . Use a Pub/Sub subscriber in pull mode and use a data store to manage ordering.
- D . Use a Pub/Sub subscriber in push mode and use a data store to manage ordering.
C
Explanation:
https://cloud.google.com/pubsub/docs/pull