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 work for a web development team at a small startup. Your team is developing a Node.js application using Google Cloud services, including Cloud Storage and Cloud Build. The team uses a Git repository for version control. Your manager calls you over the weekend and instructs you to make an emergency update to one of the company’s websites, and you’re the only developer available. You need to access Google Cloud to make the update, but you don’t have your work laptop. You are not allowed to store source code locally on a non-corporate computer.
How should you set up your developer environment?
- A . Use a text editor and the Git command line to send your source code updates as pull requests from a public computer.
- B . Use a text editor and the Git command line to send your source code updates as pull requests from a virtual machine running on a public computer.
- C . Use Cloud Shell and the built-in code editor for development. Send your source code updates as pull requests.
- D . Use a Cloud Storage bucket to store the source code that you need to edit. Mount the bucket to a public computer as a drive, and use a code editor to update the code. Turn on versioning for the bucket, and point it to the team’s Git repository.
C
Explanation:
https://cloud.google.com/shell/docs
You have a web application that publishes messages to Pub/Sub. You plan to build new versions of the application locally and need to quickly test Pub/Sub integration tor each new build.
How should you configure local testing?
- A . Run the gclcud config set api_endpoint_overrides/pubsub https: / ‘pubsubemulator.googleapi3.com. coin/ command to change the Pub/Sub endpoint prior to starting the application
- B . In the Google Cloud console, navigate to the API Library and enable the Pub/Sub API When developing locally, configure your application to call pubsub.googleapis com
- C . Install Cloud Code on the integrated development environment (IDE) Navigate to Cloud APIs, and enable Pub/Sub against a valid Google Project ID. When developing locally, configure your application to call pubsub.googleapis com
- D . Install the Pub/Sub emulator using gcloud and start the emulator with a valid Google Project ID. When developing locally, configure your application to use the local emulator by exporting the fuhsub emulator Host variable
You work for an organization that manages an ecommerce site. Your application is deployed behind a global HTTP(S) load balancer. You need to test a new product recommendation algorithm. You plan to use A/B testing to determine the new algorithm’s effect on sales in a randomized way.
How should you test this feature?
- A . Split traffic between versions using weights.
- B . Enable the new recommendation feature flag on a single instance.
- C . Mirror traffic to the new version of your application.
- D . Use HTTP header-based routing.
C
Explanation:
https://cloud.google.com/load-balancing/docs/https/traffic-management-global#traffic_actions_weight-based_traffic_splitting
Deploying a new version of an existing production service generally incurs some risk. Even if your tests pass in staging, you probably don’t want to subject 100% of your users to the new version immediately. With traffic management, you can define percentage-based traffic splits across multiple backend services.
For example, you can send 95% of the traffic to the previous version of your service and 5% to the new version of your service. After you’ve validated that the new production version works as expected, you can gradually shift the percentages until 100% of the traffic reaches the new version of your service. Traffic splitting is typically used for deploying new versions, A/B testing, service migration, and similar processes.
https://cloud.google.com/traffic-director/docs/advanced-traffic-management#weight-based_traffic_splitting_for_safer_deployments
https://cloud.google.com/architecture/implementing-deployment-and-testing-strategies-on-gke#split_the_traffic_2
https://cloud.google.com/load-balancing/docs/https/traffic-management-global#traffic_actions_weight-based_traffic_splitting
You have an HTTP Cloud Function that is called via POST. Each submission’s request body has a flat, unnested JSON structure containing numeric and text data. After the Cloud Function completes, the collected data should be immediately available for ongoing and complex analytics by many users in parallel.
How should you persist the submissions?
- A . Directly persist each POST request’s JSON data into Datastore.
- B . Transform the POST request’s JSON data, and stream it into BigQuery.
- C . Transform the POST request’s JSON data, and store it in a regional Cloud SQL cluster.
- D . Persist each POST request’s JSON data as an individual file within Cloud Storage, with the file name containing the request identifier.
Your team is developing unit tests for Cloud Function code. The code is stored in a Cloud Source Repositories repository. You are responsible for implementing the tests. Only a specific service account has the necessary permissions to deploy the code to Cloud Functions. You want to ensure that the code cannot be deployed without first passing the tests.
How should you configure the unit testing process?
- A . Configure Cloud Build to deploy the Cloud Function. If the code passes the tests, a deployment approval is sent to you.
- B . Configure Cloud Build to deploy the Cloud Function, using the specific service account as the build agent. Run the unit tests after successful deployment.
- C . Configure Cloud Build to run the unit tests. If the code passes the tests, the developer deploys the Cloud Function.
- D . Configure Cloud Build to run the unit tests, using the specific service account as the build agent. If the code passes the tests, Cloud Build deploys the Cloud Function.
Users are complaining that your Cloud Run-hosted website responds too slowly during traffic spikes. You want to provide a better user experience during traffic peaks.
What should you do?
- A . Read application configuration and static data from the database on application startup.
- B . Package application configuration and static data into the application image during build time.
- C . Perform as much work as possible in the background after the response has been returned to the user.
- D . Ensure that timeout exceptions and errors cause the Cloud Run instance to exit quickly so a replacement instance can be started.
Users are complaining that your Cloud Run-hosted website responds too slowly during traffic spikes. You want to provide a better user experience during traffic peaks.
What should you do?
- A . Read application configuration and static data from the database on application startup.
- B . Package application configuration and static data into the application image during build time.
- C . Perform as much work as possible in the background after the response has been returned to the user.
- D . Ensure that timeout exceptions and errors cause the Cloud Run instance to exit quickly so a replacement instance can be started.
You are building an API that will be used by Android and iOS apps.
The API must:
• Support HTTPs
• Minimize bandwidth cost
• Integrate easily with mobile apps
Which API architecture should you use?
- A . RESTful APIs
- B . MQTT for APIs
- C . gRPC-based APIs
- D . SOAP-based APIs
A
Explanation:
Reference: https://www.devteam.space/blog/how-to-build-restful-api-for-your-mobile-app/
You are parsing a log file that contains three columns: a timestamp, an account number (a string), and a transaction amount (a number). You want to calculate the sum of all transaction amounts for each unique account number efficiently.
Which data structure should you use?
- A . A linked list
- B . A hash table
- C . A two-dimensional array
- D . A comma-delimited string
You are running a web application on Google Kubernetes Engine that you inherited. You want to determine whether the application is using libraries with known vulnerabilities or is vulnerable to XSS attacks.
Which service should you use?
- A . Google Cloud Armor
- B . Debugger
- C . Web Security Scanner
- D . Error Reporting
C
Explanation:
https://cloud.google.com/security-command-center/docs/concepts-web-security-scanner-overview Web Security Scanner identifies security vulnerabilities in your App Engine, Google Kubernetes Engine (GKE), and Compute Engine web applications. It crawls your application, following all links within the scope of your starting URLs, and attempts to exercise as many user inputs and event handlers as possible.