Professional Cloud Developer: Professional Cloud Developer — Free Practice Questions
10 free sample questions from a bank of 338, with the correct answers and explanations. No signup required — start practising right now.
1You 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?
2You 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?
Replace your entire monitoring platform with Stackdriver.
Install the Stackdriver agents on your Compute Engine instances.
Use Stackdriver to capture and alert on logs, then ship them to your existing platform.
Migrate some traffic back to your old platform and perform AB testing on the two platforms concurrently.
Answer: C
3You 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?
Enable private IP for the Cloud SQL instance.
Whitelist a project to access Cloud SQL, and add Compute Engine instances in the whitelisted project.
Create a role in Cloud SQL that allows access to the database from external instances, and assign the Compute Engine instances to that role.
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.
Answer: A
4You 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?
5Your website is deployed on Compute Engine. Your marketing team wants to test conversion rates between 3 different website designs.
Which approach should you use?
Deploy the website on App Engine and use traffic splitting.
Deploy the website on App Engine as three separate services.
Deploy the website on Cloud Functions and use traffic splitting.
Deploy the website on Cloud Functions as three separate functions.
Answer: A
6You 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?
7You 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?
Uptime check
Process health
Metric absence
Metric threshold
Answer: C
8You 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?
Use the JOIN operator in SQL to combine the tables.
Use nested WITH statements to combine the tables.
Use the UNION operator in SQL to combine the tables.
Use the UNION ALL operator in SQL to combine the tables.
Answer: C
9You 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?
Blue/green deployment
Canary deployment
Rolling deployment
Recreate deployment
Answer: B
10Your 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.)
Create a multi-regional Cloud Spanner instance with "nam-asia-eur1" configuration.
Create a multi-regional Cloud Spanner instance with "nam3" configuration.
Create a cluster with at least 3 Spanner nodes.
Create a cluster with at least 1 Spanner node.
Create a minimum of two Cloud Spanner instances in separate regions with at least one node.
Create a Cloud Dataflow pipeline to replicate data across different databases.