Google PROFESSIONAL-CLOUD-DEVELOPER Online Practice
Questions and Exam Preparation
PROFESSIONAL-CLOUD-DEVELOPER Exam Details
Exam Code
:PROFESSIONAL-CLOUD-DEVELOPER
Exam Name
:Professional Cloud Developer
Certification
:Google Certifications
Vendor
:Google
Total Questions
:405 Q&As
Last Updated
:May 24, 2026
Google PROFESSIONAL-CLOUD-DEVELOPER Online Questions &
Answers
Question 251:
You are developing a new web application using Cloud Run and committing code to Cloud Source Repositories. You want to deploy new code using the most efficient approach. You have already created a Cloud Build YAML file that builds a container and runs the gcloud run deploy command.
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 gcloud builds submit command every 24 hours.
B. Create a build trigger that runs the build file in response to a repository code being pushed to the development branch.
Question 252:
You are responsible for developing a new ecommerce application that is running on Cloud Run. You need to connect your application to a Cloud SQL database that is in a separate project. This project is on an isolated network dedicated to multiple databases without a public IP. You need to connect your application to this database.
What should you do?
A. Create a Private Service Connect endpoint on your network. Create a Serverless VPC Access connector on your project. Use Cloud SQL Language Connectors to create an internal connection. B. Configure VPC Network Peering between both networks. In Cloud Run, create a Cloud SQL connection that uses the internal IP. Use Cloud SQL Language Connectors to interact with the database. C. Configure private services access on your project. In Cloud Run, create a Cloud SQL connection. Use Cloud SQL Language Connectors to interact with the database. D. Create a subnet on your VPC. Create a Serverless VPC Access connector on your project using the new subnet. In Cloud Run, create a Cloud SQL connection. Use Cloud SQL Language Connectors to interact with the database.
D. Create a subnet on your VPC. Create a Serverless VPC Access connector on your project using the new subnet. In Cloud Run, create a Cloud SQL connection. Use Cloud SQL Language Connectors to interact with the database.
Explanation
To connect a Cloud Run service to a Cloud SQL instance in a different project without a public IP, you can use Serverless VPC Access to create a private, internal network path. By creating a subnet and configuring a Serverless VPC Access connector in your project, you allow Cloud Run to access resources on the private network where the Cloud SQL instance resides. Using Cloud SQL Language Connectors enables a secure, managed connection to the Cloud SQL database without needing public IP access.
Options like VPC Network Peering could connect the networks but would not provide the necessary connectivity for Cloud Run to access the database directly.
Question 253:
You are designing an application that will subscribe to and receive messages from a single Pub/Sub topic and insert corresponding rows into a database. Your application runs on Linux and leverages preemptible virtual machines to reduce costs. You need to create a shutdown script that will initiate a graceful shutdown.
What should you do?
A. Write a shutdown script that uses inter-process signals to notify the application process to disconnect from the database. B. Write a shutdown script that broadcasts a message to all signed-in users that the Compute Engine instance is going down and instructs them to save current work and sign out. C. Write a shutdown script that writes a file in a location that is being polled by the application once every five minutes. After the file is read, the application disconnects from the database. D. Write a shutdown script that publishes a message to the Pub/Sub topic announcing that a shutdown is in progress. After the application reads the message, it disconnects from the database.
A. Write a shutdown script that uses inter-process signals to notify the application process to disconnect from the database.
Question 254:
HipLocal's.net-based auth service fails under intermittent load.
What should they do?
A. Use App Engine for autoscaling. B. Use Cloud Functions for autoscaling. C. Use a Compute Engine cluster for the service. D. Use a dedicated Compute Engine virtual machine instance for the service.
Your application is controlled by a managed instance group. You want to share a large read-only data set between all the instances in the managed instance group. You want to ensure that each instance can start quickly and can access the data set via its filesystem with very low latency. You also want to minimize the total cost of the solution.
What should you do?
A. Move the data to a Cloud Storage bucket, and mount the bucket on the filesystem using Cloud Storage FUSE. B. Move the data to a Cloud Storage bucket, and copy the data to the boot disk of the instance via a startup script. C. Move the data to a Compute Engine persistent disk, and attach the disk in read-only mode to multiple Compute Engine virtual machine instances. D. Move the data to a Compute Engine persistent disk, take a snapshot, create multiple disks from the snapshot, and attach each disk to its own instance.
C. Move the data to a Compute Engine persistent disk, and attach the disk in read-only mode to multiple Compute Engine virtual machine instances.
Question 256:
You are developing an application component to capture user behavior data and stream the data to BigQuery. You plan to use the BigQuery Storage Write API. You need to ensure that the data that arrives in BigQuery does not have any duplicates. You want to use the simplest operational method to achieve this.
What should you do?
A. Create a write stream in the default type. B. Create a write stream in the committed type. C. Configure a Kafka cluster. Use a primary universally unique identifier (UUID) for duplicate messages. D. Configure a Pub/Sub topic. Use Cloud Run functions to subscribe to the topic and remove any duplicates.
A. Create a write stream in the default type.
Explanation
https://cloud.google.com/bigquery/docs/write-api
Question 257:
You want to grant a Compute Engine instance access to publish messages to a Pub/Sub topic.
What should you do?
A. Assign Owner role to the instance B. Assign Pub/Sub Publisher role to the instance's service account C. Store service account key in the instance D. Use a shared key
B. Assign Pub/Sub Publisher role to the instance's service account
Explanation
Granting the Pub/Sub Publisher role to the instance's service account follows least privilege principles and enables secure publishing without managing keys manually.
Question 258:
Your team develops services that run on Google Kubernetes Engine. Your team's code is stored in Cloud Source Repositories. You need to quickly identify bugs in the code before it is deployed to production. You want to invest in automation to improve developer feedback and make the process as efficient as possible.
What should you do?
A. Use Spinnaker to automate building container images from code based on Git tags. B. Use Cloud Build to automate building container images from code based on Git tags. C. Use Spinnaker to automate deploying container images to the production environment. D. Use Cloud Build to automate building container images from code based on forked versions.
B. Use Cloud Build to automate building container images from code based on Git tags.
Question 259:
Your team develops services that run on Google Kubernetes Engine. You need to standardize their log data using Google-recommended best practices and make the data more useful in the fewest number of steps.
What should you do? (Choose two.)
A. Create aggregated exports on application logs to BigQuery to facilitate log analytics. B. Create aggregated exports on application logs to Cloud Storage to facilitate log analytics. C. Write log output to standard output (stdout) as single-line JSON to be ingested into Cloud Logging as structured logs. D. Mandate the use of the Logging API in the application code to write structured logs to Cloud Logging. E. Mandate the use of the Pub/Sub API to write structured data to Pub/Sub and create a Dataflow streaming pipeline to normalize logs and write them to BigQuery for analytics.
A. Create aggregated exports on application logs to BigQuery to facilitate log analytics. C. Write log output to standard output (stdout) as single-line JSON to be ingested into Cloud Logging as structured logs.
Question 260:
You are developing an application that will allow clients to download a file from your website for a specific period of time.
How should you design the application to complete this task while following Google- recommended best practices?
A. Configure the application to send the file to the client as an email attachment. B. Generate and assign a Cloud Storage-signed URL for the file. Make the URL available for the client to download. C. Create a temporary Cloud Storage bucket with time expiration specified, and give download permissions to the bucket. Copy the file, and send it to the client. D. Generate the HTTP cookies with time expiration specified. If the time is valid, copy the file from the Cloud Storage bucket, and make the file available for the client to download.
B. Generate and assign a Cloud Storage-signed URL for the file. Make the URL available for the client to download.
Nowadays, the certification exams become more and more important and required by more and more
enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare
for the exam in a short time with less efforts? How to get a ideal result and how to find the
most reliable resources? Here on Vcedump.com, you will find all the answers.
Vcedump.com provide not only Google exam questions,
answers and explanations but also complete assistance on your exam preparation and certification
application. If you are confused on your PROFESSIONAL-CLOUD-DEVELOPER exam preparations
and Google certification application, do not hesitate to visit our
Vcedump.com to find your solutions here.