📘 Free PROFESSIONAL-CLOUD-DEVELOPER Sample Questions
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
A. gsutil cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/
B
B. gcloud cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/
C
C. hadoop fs cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/
D
D. gcloud dataproc cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/
Correct Answer:
A. A. gsutil cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/
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?
A
A. Replace your entire monitoring platform with Stackdriver
B
B. Install the Stackdriver agents on your Compute Engine instances.
C
C. Use Stackdriver to capture and alert on logs, then ship them to your existing platform.
D
D. Migrate some traffic back to your old platform and perform AB testing on the two platforms concurrently
Correct Answer:
C. C. Use Stackdriver to capture and alert on logs, then ship them to your existing platform.
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?
A
A. Enable private IP for the Cloud SQL instance
B
B. Whitelist a project to access Cloud SQL, and add Compute Engine instances in the whitelisted project
C
C. Create a role in Cloud SQL that allows access to the database from external instances, and assign the
Compute Engine instances to that role.
D
D. Create 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:
A. A. Enable private IP for the Cloud SQL instance
You have deployed an HTTP(s) Load Balancer with the gcloud commands shown below.
A
A. gcloud compute instances add-access-config ${NAME}-backend-instance-1
B
B. gcloud compute instances add-tags ${NAME}-backend-instance-1 --tags http-server
C
C. gcloud compute firewall-rules create allow-lb --network load-balancer --allow tcp --source-ranges
130.211.0.0/22,35.191.0.0/16 --direction INGRESS
D
D. gcloud 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. C. gcloud compute firewall-rules create allow-lb --network load-balancer --allow tcp --source-ranges
130.211.0.0/22,35.191.0.0/16 --direction INGRESS
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?
A
A. Deploy the website on App Engine and use traffic splitting.
B
B. Deploy the website on App Engine as three separate service
C
C. Deploy the website on Cloud Functions and use traffic splitting.
D
D. Deploy the website on Cloud Functions as three separate functions.
Correct Answer:
A. A. Deploy the website on App Engine and use traffic splitting.
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?
A
A. gsutil cp --project ג€my-gcp-projectג€ -r ~/local-scripts/ gcp-instance-name:~/server-scripts/ --zone ג€useast1-b ג€
B
B. gsutil cp --project ג€my-gcp-projectג€ -R ~/local-scripts/ gcp-instance-name:~/server-scripts/ --zone ג€useast1-b ג€
C
C. gcloud compute scp --project ג€my-gcp-project ג€ --recurse ~/local-scripts/ gcp-instance-name:~/serverscripts/ --zone ג€us-east1-bג€
D
D. gcloud compute mv --project ג€my-gcp-project ג€ --recurse ~/local-scripts/ gcp-instance-name:~/serverscripts/ --zone ג€us-east1-bג€
Correct Answer:
C. C. gcloud compute scp --project ג€my-gcp-project ג€ --recurse ~/local-scripts/ gcp-instance-name:~/serverscripts/ --zone ג€us-east1-bג€
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
A. Uptime check
B
B. Process health
C
C. Metric absence
D
D. Metric threshold
Correct Answer:
C. C. Metric absence
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?
A
A. Use the JOIN operator in SQL to combine the tables
B
B. Use nested WITH statements to combine the tables.
C
C. Use the UNION operator in SQL to combine the tables
D
D. Use the UNION ALL operator in SQL to combine the tables.
Correct Answer:
C. C. Use the UNION operator in SQL to combine the tables
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?
A
A. Blue/green deployment
B
B. Canary deploymen
C
C. Rolling deployment
D
D. Recreate deployment
Correct Answer:
B. B. Canary deploymen
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.)
A
A. Create a multi-regional Cloud Spanner instance with "nam-asia-eur1" configuration.
B
B. Create a multi-regional Cloud Spanner instance with "nam3" configuration.
C
C. Create a cluster with at least 3 Spanner nodes
D
D. Create a cluster with at least 1 Spanner node
Correct Answer:
A. A. Create a multi-regional Cloud Spanner instance with "nam-asia-eur1" configuration.
Questions: 1-10 out of 386
Continue Full Practice..
GET ALL 386 QUESTIONS