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
You are deploying your application to a Compute Engine virtual machine instance with the Stackdriver Monitoring Agent installed. Your application is a unix process on the instance. You want to be alerted if the unix process has not run for at least 5 minutes. You are not able to change the application to generate metrics or logs.
Which alert condition should you configure?
- A . Uptime check
- B . Process health
- C . Metric absence
- D . Metric threshold
B
Explanation:
Reference: https://cloud.google.com/monitoring/alerts/concepts-indepth
You have recently instrumented a new application with OpenTelemetry, and you want to check the latency of your application requests in Trace. You want to ensure that a specific request is always traced.
What should you do?
- A . Wait 10 minutes, then verify that Trace captures those types of requests automatically.
- B . Write a custom script that sends this type of request repeatedly from your dev project.
- C . Use the Trace API to apply custom attributes to the trace.
- D . Add the X-Cloud-Trace-Context header to the request with the appropriate parameters.
D
Explanation:
https://cloud.google.com/trace/docs/setup#force-trace
Cloud Trace doesn’t sample every request. To force a specific request to be traced, add an X-Cloud-Trace-Context header to the request.
You want to view the memory usage of your application deployed on Compute Engine.
What should you do?
- A . Install the Stackdriver Client Library.
- B . Install the Stackdriver Monitoring Agent.
- C . Use the Stackdriver Metrics Explorer.
- D . Use the Google Cloud Platform Console.
C
Explanation:
Reference: https://stackoverflow.com/questions/43991246/google-cloud-platform-how-to-monitor-memory-usage-of-vm-instances
You want to view the memory usage of your application deployed on Compute Engine.
What should you do?
- A . Install the Stackdriver Client Library.
- B . Install the Stackdriver Monitoring Agent.
- C . Use the Stackdriver Metrics Explorer.
- D . Use the Google Cloud Platform Console.
C
Explanation:
Reference: https://stackoverflow.com/questions/43991246/google-cloud-platform-how-to-monitor-memory-usage-of-vm-instances
You want to view the memory usage of your application deployed on Compute Engine.
What should you do?
- A . Install the Stackdriver Client Library.
- B . Install the Stackdriver Monitoring Agent.
- C . Use the Stackdriver Metrics Explorer.
- D . Use the Google Cloud Platform Console.
C
Explanation:
Reference: https://stackoverflow.com/questions/43991246/google-cloud-platform-how-to-monitor-memory-usage-of-vm-instances
You want to view the memory usage of your application deployed on Compute Engine.
What should you do?
- A . Install the Stackdriver Client Library.
- B . Install the Stackdriver Monitoring Agent.
- C . Use the Stackdriver Metrics Explorer.
- D . Use the Google Cloud Platform Console.
C
Explanation:
Reference: https://stackoverflow.com/questions/43991246/google-cloud-platform-how-to-monitor-memory-usage-of-vm-instances
You have an application written in Python running in production on Cloud Run. Your application needs to read/write data stored in a Cloud Storage bucket in the same project. You want to grant access to your application following the principle of least privilege.
What should you do?
- A . Create a user-managed service account with a custom Identity and Access Management (IAM)
role. - B . Create a user-managed service account with the Storage Admin Identity and Access Management (IAM) role.
- C . Create a user-managed service account with the Project Editor Identity and Access Management (IAM) role.
- D . Use the default service account linked to the Cloud Run revision in production.
A
Explanation:
https://cloud.google.com/iam/docs/understanding-roles#storage.admin
Your company’s corporate policy states that there must be a copyright comment at the very beginning of all source files. You want to write a custom step in Cloud Build that is triggered by each source commit. You need the trigger to validate that the source contains a copyright and add one for subsequent steps if not there.
What should you do?
- A . Build a new Docker container that examines the files in /workspace and then checks and adds a copyright for each source file. Changed files are explicitly committed back to the source repository.
- B . Build a new Docker container that examines the files in /workspace and then checks and adds a copyright for each source file. Changed files do not need to be committed back to the source repository.
- C . Build a new Docker container that examines the files in a Cloud Storage bucket and then checks and adds a copyright for each source file. Changed files are written back to the Cloud Storage bucket.
- D . Build a new Docker container that examines the files in a Cloud Storage bucket and then checks and adds a copyright for each source file. Changed files are explicitly committed back to the source repository.
A
Explanation:
https://cloud.google.com/build/docs/configuring-builds/pass-data-between-steps#passing_data_using_workspaces
To pass data between build steps, store the assets produced by the build step in /workspace and these assets will be available to any subsequent build steps.
You are deploying a microservices application to Google Kubernetes Engine (GKE). The application will receive daily updates. You expect to deploy a large number of distinct containers that will run on the Linux operating system (OS). You want to be alerted to any known OS vulnerabilities in the new containers. You want to follow Google-recommended best practices.
What should you do?
- A . Use the gcloud CLI to call Container Analysis to scan new container images. Review the vulnerability results before each deployment.
- B . Enable Container Analysis, and upload new container images to Artifact Registry. Review the vulnerability results before each deployment.
- C . Enable Container Analysis, and upload new container images to Artifact Registry. Review the critical vulnerability results before each deployment.
- D . Use the Container Analysis REST API to call Container Analysis to scan new container images.
Review the vulnerability results before each deployment.
D
Explanation:
https://cloud.google.com/container-analysis/docs/automated-scanning-howto
https://cloud.google.com/container-analysis/docs/os-overview says: The Container Scanning API allows you to automate OS vulnerability detection, scanning each time you push an image to Container Registry or Artifact Registry. Enabling this API also triggers language package scans for Go and Java vulnerabilities (Preview).
You want to upload files from an on-premises virtual machine to Google Cloud Storage as part of a data migration. These files will be consumed by Cloud DataProc Hadoop cluster in a GCP environment.
Which command should you use?
- A . gsutil cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/
- B . gcloud cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/
- C . hadoop fs cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/
- D . gcloud dataproc cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/
A
Explanation:
The gsutil cp command allows you to copy data between your local file. storage. boto files generated by running "gsutil config"