Google Professional Cloud Developer Exam Practice Questions (P. 1)
- Full Access (361 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #1
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?
DataProc Hadoop cluster in a GCP environment.
Which command should you use?
- Agsutil cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/Most Voted
- Bgcloud cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/
- Chadoop fs cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/
- Dgcloud dataproc cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/
Correct Answer:
A
The gsutil cp command allows you to copy data between your local file. storage. boto files generated by running "gsutil config"
A
The gsutil cp command allows you to copy data between your local file. storage. boto files generated by running "gsutil config"
send
light_mode
delete
Question #2
You migrated your applications to Google Cloud Platform and kept your existing monitoring platform. You now find that your notification system is too slow for time critical problems.
What should you do?
What should you do?
- AReplace your entire monitoring platform with Stackdriver.
- BInstall the Stackdriver agents on your Compute Engine instances.
- CUse Stackdriver to capture and alert on logs, then ship them to your existing platform.Most Voted
- DMigrate some traffic back to your old platform and perform AB testing on the two platforms concurrently.
Correct Answer:
B
Reference:
https://cloud.google.com/monitoring/
B
Reference:
https://cloud.google.com/monitoring/
send
light_mode
delete
Question #3
You are planning to migrate a MySQL database to the managed Cloud SQL database for Google Cloud. You have Compute Engine virtual machine instances that will connect with this Cloud SQL instance. You do not want to whitelist IPs for the Compute Engine instances to be able to access Cloud SQL.
What should you do?
What should you do?
- AEnable private IP for the Cloud SQL instance.Most Voted
- BWhitelist a project to access Cloud SQL, and add Compute Engine instances in the whitelisted project.
- CCreate a role in Cloud SQL that allows access to the database from external instances, and assign the Compute Engine instances to that role.
- DCreate a CloudSQL instance on one project. Create Compute engine instances in a different project. Create a VPN between these two projects to allow internal access to CloudSQL.
Correct Answer:
C
Reference:
https://cloud.google.com/sql/docs/mysql/connect-external-app
C
Reference:
https://cloud.google.com/sql/docs/mysql/connect-external-app
send
light_mode
delete
Question #4
You have deployed an HTTP(s) Load Balancer with the gcloud commands shown below.

Health checks to port 80 on the Compute Engine virtual machine instance are failing and no traffic is sent to your instances. You want to resolve the problem.
Which commands should you run?

Health checks to port 80 on the Compute Engine virtual machine instance are failing and no traffic is sent to your instances. You want to resolve the problem.
Which commands should you run?
- Agcloud compute instances add-access-config ${NAME}-backend-instance-1
- Bgcloud compute instances add-tags ${NAME}-backend-instance-1 --tags http-server
- Cgcloud compute firewall-rules create allow-lb --network load-balancer --allow tcp --source-ranges 130.211.0.0/22,35.191.0.0/16 --direction INGRESSMost Voted
- Dgcloud compute firewall-rules create allow-lb --network load-balancer --allow tcp --destination-ranges 130.211.0.0/22,35.191.0.0/16 --direction EGRESS
Correct Answer:
C
Reference:
https://cloud.google.com/vpc/docs/special-configurations
C
Reference:
https://cloud.google.com/vpc/docs/special-configurations
send
light_mode
delete
Question #5
Your website is deployed on Compute Engine. Your marketing team wants to test conversion rates between 3 different website designs.
Which approach should you use?
Which approach should you use?
- ADeploy the website on App Engine and use traffic splitting.Most Voted
- BDeploy the website on App Engine as three separate services.
- CDeploy the website on Cloud Functions and use traffic splitting.
- DDeploy the website on Cloud Functions as three separate functions.
Correct Answer:
A
Reference:
https://cloud.google.com/appengine/docs/standard/python/splitting-traffic
A
Reference:
https://cloud.google.com/appengine/docs/standard/python/splitting-traffic
send
light_mode
delete
Question #6
You need to copy directory local-scripts and all of its contents from your local workstation to a Compute Engine virtual machine instance.
Which command should you use?
Which command should you use?
- Agsutil cp --project ג€my-gcp-projectג€ -r ~/local-scripts/ gcp-instance-name:~/server-scripts/ --zone ג€us-east1-bג€
- Bgsutil cp --project ג€my-gcp-projectג€ -R ~/local-scripts/ gcp-instance-name:~/server-scripts/ --zone ג€us-east1-bג€
- Cgcloud compute scp --project ג€my-gcp-projectג€ --recurse ~/local-scripts/ gcp-instance-name:~/server-scripts/ --zone ג€us-east1-bג€Most Voted
- Dgcloud compute mv --project ג€my-gcp-projectג€ --recurse ~/local-scripts/ gcp-instance-name:~/server-scripts/ --zone ג€us-east1-bג€
Correct Answer:
C
Reference:
https://cloud.google.com/sdk/gcloud/reference/compute/copy-files
C
Reference:
https://cloud.google.com/sdk/gcloud/reference/compute/copy-files
send
light_mode
delete
Question #7
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?
Which alert condition should you configure?
- AUptime check
- BProcess healthMost Voted
- CMetric absence
- DMetric threshold
Correct Answer:
B
Reference:
https://cloud.google.com/monitoring/alerts/concepts-indepth
B
Reference:
https://cloud.google.com/monitoring/alerts/concepts-indepth
send
light_mode
delete
Question #8
You have two tables in an ANSI-SQL compliant database with identical columns that you need to quickly combine into a single table, removing duplicate rows from the result set.
What should you do?
What should you do?
- AUse the JOIN operator in SQL to combine the tables.
- BUse nested WITH statements to combine the tables.
- CUse the UNION operator in SQL to combine the tables.Most Voted
- DUse the UNION ALL operator in SQL to combine the tables.
Correct Answer:
C
Reference:
https://www.techonthenet.com/sql/union_all.php
C
Reference:
https://www.techonthenet.com/sql/union_all.php
send
light_mode
delete
Question #9
You have an application deployed in production. When a new version is deployed, some issues don't arise until the application receives traffic from users in production. You want to reduce both the impact and the number of users affected.
Which deployment strategy should you use?
Which deployment strategy should you use?
- ABlue/green deployment
- BCanary deploymentMost Voted
- CRolling deployment
- DRecreate deployment
Correct Answer:
A
Reference:
https://thenewstack.io/deployment-strategies/
A
Reference:
https://thenewstack.io/deployment-strategies/
send
light_mode
delete
Question #10
Your company wants to expand their users outside the United States for their popular application. The company wants to ensure 99.999% availability of the database for their application and also wants to minimize the read latency for their users across the globe.
Which two actions should they take? (Choose two.)
Which two actions should they take? (Choose two.)
- ACreate a multi-regional Cloud Spanner instance with "nam-asia-eur1" configuration.Most Voted
- BCreate a multi-regional Cloud Spanner instance with "nam3" configuration.
- CCreate a cluster with at least 3 Spanner nodes.Most Voted
- DCreate a cluster with at least 1 Spanner node.
- ECreate a minimum of two Cloud Spanner instances in separate regions with at least one node.
- FCreate a Cloud Dataflow pipeline to replicate data across different databases.
Correct Answer:
BF
BF

The best approach to ensure 99.999% availability and minimize read latency globally for a Cloud Spanner instance does involve setting up a multi-regional configuration. However, it's crucial to select the right configuration that provides adequate geographic distribution to serve a global user base effectively. Additionally, while Cloud Spanner does feature automatic replication across regions maintaining strong consistency, handling various data operations across possibly multiple databases might necessitate a Cloud Dataflow pipeline for specific data replication scenarios not covered by Spanner's built-in capabilities. This ensures data consistency across varied environments catering to complex application needs.
send
light_mode
delete
All Pages