Google Cloud Certified – Professional Cloud Developer – Practice Exam (Question 84)
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 Google 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]/
Correct Answer: A
The gsutil cp command allows you to copy data between your local file. storage. boto files generated by running “gsutil config”.
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?
- A. Replace your entire monitoring platform with Stackdriver.
- B. Install the Stackdriver agents on your Google Compute Engine instances.
- C. Use Stackdriver to capture and alert on logs, then ship them to your existing platform.
- D. Migrate some traffic back to your old platform and perform AB testing on the two platforms concurrently.
Correct Answer: B
Reference contents:
– Google Cloud Monitoring | Google Cloud
Question 3
You are planning to migrate a MySQL database to the managed Google Cloud SQL database for Google Cloud.
You have Google Compute Engine virtual machine instances that will connect with this Google Cloud SQL instance. You do not want to whitelist IPs for the Google Compute Engine instances to be able to access Google Cloud SQL.
What should you do?
- A. Enable private IP for the Google Cloud SQL instance.
- B. Whitelist a project to access Google Cloud SQL, and add Google Compute Engine instances in the whitelisted project.
- C. Create a role in Google Cloud SQL that allows access to the database from external instances, and assign the Google Compute Engine instances to that role.
- D. Create a Google Cloud SQL instance on one project. Create Google Compute Engine instances in a different project. Create a VPN between these two projects to allow internal access to Google Cloud SQL.