Google Professional Cloud Developer Exam (PROFESSIONAL-CLOUD-DEVELOPER) - Google Cloud Actual Exam Questions
Last updated on May 14, 2026
Your application is deployed on hundreds of Compute Engine instances in a managed instance group (MIG) in multiple zones. You need to deploy a new instance template to fix a critical vulnerability immediately but must avoid impact to your service. What setting should be made to the MIG after updating the instance template?
Set the Max Surge to 100%.
Set the Update mode to Opportunistic.
Set the Maximum Unavailable to 100%.
Set the Minimum Wait time to 0 seconds.
to join the discussion
No discussions yet. Be the first to ask!
Delete Comment
Are you sure? This action cannot be undone.
You plan to deploy a new application revision with a Deployment resource to Google Kubernetes Engine (GKE) in production. The container might not work correctly. You want to minimize risk in case there are issues after deploying the revision. You want to follow Google-recommended best practices. What should you do?
Perform a rolling update with a PodDisruptionBudget of 80%.
Perform a rolling update with a HorizontalPodAutoscaler scale-down policy value of
Convert the Deployment to a StatefulSet, and perform a rolling update with a PodDisruptionBudget of 80%.
Convert the Deployment to a StatefulSet, and perform a rolling update with a HorizontalPodAutoscaler scale-down policy value of 0.
to join the discussion
No discussions yet. Be the first to ask!
Delete Comment
Are you sure? This action cannot be undone.
Your analytics system executes queries against a BigQuery dataset. The SQL query is executed in batch and passes the contents of a SQL file to the BigQuery CLI. Then it redirects the BigQuery CLI output to another process. However, you are getting a permission error from the BigQuery CLI when the queries are executed. You want to resolve the issue. What should you do?
Grant the service account BigQuery Data Viewer and BigQuery Job User roles.
Grant the service account BigQuery Data Editor and BigQuery Data Viewer roles. 4XHVWLRQV�DQG�$QVZHUV�3') ������
Create a view in BigQuery from the SQL query and SELECT* from the view in the CLI.
Create a new dataset in BigQuery, and copy the source table to the new dataset Query the new dataset and table from the CLI.
to join the discussion
No discussions yet. Be the first to ask!
Delete Comment
Are you sure? This action cannot be undone.
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?
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
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
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
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
to join the discussion
No discussions yet. Be the first to ask!
Delete Comment
Are you sure? This action cannot be undone.
Your team is developing an application in Google Cloud that executes with user identities maintained by Cloud Identity. Each of your application’s users will have an associated Pub/Sub topic to which messages are published, and a Pub/Sub subscription where the same user will retrieve published messages. You need to ensure that only authorized users can publish and subscribe to their own specific Pub/Sub topic and subscription. What should you do? 4XHVWLRQV�DQG�$QVZHUV�3') ������
Bind the user identity to the pubsub.publisher and pubsub.subscriber roles at the resource level.
Grant the user identity the pubsub.publisher and pubsub.subscriber roles at the project level.
Grant the user identity a custom role that contains the pubsub.topics.create and pubsub.subscriptions.create permissions.
Configure the application to run as a service account that has the pubsub.publisher and pubsub.subscriber roles.
to join the discussion
No discussions yet. Be the first to ask!
Delete Comment
Are you sure? This action cannot be undone.
Finish Practice?
Are you sure you want to finish? This will end your practice session.