Official Bank 0/244

Google Professional Cloud Developer Exam (PROFESSIONAL-CLOUD-DEVELOPER) - Google Cloud Actual Exam Questions

Last updated on May 14, 2026

97% Exam Compliance
244 Total Questions
1
Question

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?

Options
A

Set the Max Surge to 100%.

B

Set the Update mode to Opportunistic.

C

Set the Maximum Unavailable to 100%.

D

Set the Minimum Wait time to 0 seconds.

Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

2
Question

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?

Options
A

Perform a rolling update with a PodDisruptionBudget of 80%.

B

Perform a rolling update with a HorizontalPodAutoscaler scale-down policy value of

C

Convert the Deployment to a StatefulSet, and perform a rolling update with a PodDisruptionBudget of 80%.

D

Convert the Deployment to a StatefulSet, and perform a rolling update with a HorizontalPodAutoscaler scale-down policy value of 0.

Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

3
Question

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?

Options
A

Grant the service account BigQuery Data Viewer and BigQuery Job User roles.

B

Grant the service account BigQuery Data Editor and BigQuery Data Viewer roles. 4XHVWLRQV�DQG�$QVZHUV�3') ������

C

Create a view in BigQuery from the SQL query and SELECT* from the view in the CLI.

D

Create a new dataset in BigQuery, and copy the source table to the new dataset Query the new dataset and table from the CLI.

Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

4
Question

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?

Options
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

Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

5
Question

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') ������

Question image
Options
A

Bind the user identity to the pubsub.publisher and pubsub.subscriber roles at the resource level.

B

Grant the user identity the pubsub.publisher and pubsub.subscriber roles at the project level.

C

Grant the user identity a custom role that contains the pubsub.topics.create and pubsub.subscriptions.create permissions.

D

Configure the application to run as a service account that has the pubsub.publisher and pubsub.subscriber roles.

Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

Finish Practice?

Are you sure you want to finish? This will end your practice session.