ExamGecko
Home Home / Google / Professional Cloud Developer

Google Professional Cloud Developer Practice Test - Questions Answers, Page 2

Question list
Search
Search

List of questions

Search

Related questions











You migrated some of your applications to Google Cloud. You are using a legacy monitoring platform deployed on-premises for both on-premises and cloud-deployed applications. You discover that your notification system is responding slowly to time-critical problems in the cloud applications. What should you do?

A.
Replace your monitoring platform with Cloud Monitoring.
A.
Replace your monitoring platform with Cloud Monitoring.
Answers
B.
Install the Cloud Monitoring agent on your Compute Engine instances.
B.
Install the Cloud Monitoring agent on your Compute Engine instances.
Answers
C.
Migrate some traffic back to your old platform. Perform A/B testing on the two platforms concurrently.
C.
Migrate some traffic back to your old platform. Perform A/B testing on the two platforms concurrently.
Answers
D.
Use Cloud Logging and Cloud Monitoring to capture logs, monitor, and send alerts. Send them to your existing platform.
D.
Use Cloud Logging and Cloud Monitoring to capture logs, monitor, and send alerts. Send them to your existing platform.
Answers
Suggested answer: D

You recently deployed your application in Google Kubernetes Engine, and now need to release a new version of your application. You need the ability to instantly roll back to the previous version in case there are issues with the new version. Which deployment model should you use?

A.
Perform a rolling deployment, and test your new application after the deployment is complete.
A.
Perform a rolling deployment, and test your new application after the deployment is complete.
Answers
B.
Perform A/B testing, and test your application periodically after the new tests are implemented.
B.
Perform A/B testing, and test your application periodically after the new tests are implemented.
Answers
C.
Perform a blue/green deployment, and test your new application after the deployment is. complete.
C.
Perform a blue/green deployment, and test your new application after the deployment is. complete.
Answers
D.
Perform a canary deployment, and test your new application periodically after the new version is deployed.
D.
Perform a canary deployment, and test your new application periodically after the new version is deployed.
Answers
Suggested answer: C

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.
A.
Replace your entire monitoring platform with Stackdriver.
Answers
B.
Install the Stackdriver agents on your Compute Engine instances.
B.
Install the Stackdriver agents on your Compute Engine instances.
Answers
C.
Use Stackdriver to capture and alert on logs, then ship them to your existing platform.
C.
Use Stackdriver to capture and alert on logs, then ship them to your existing platform.
Answers
D.
Migrate some traffic back to your old platform and perform AB testing on the two platforms concurrently.
D.
Migrate some traffic back to your old platform and perform AB testing on the two platforms concurrently.
Answers
Suggested answer: B

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.
Enable private IP for the Cloud SQL instance.
A.
Enable private IP for the Cloud SQL instance.
Answers
B.
Whitelist a project to access Cloud SQL, and add Compute Engine instances in the whitelisted project.
B.
Whitelist a project to access Cloud SQL, and add Compute Engine instances in the whitelisted project.
Answers
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.
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.
Answers
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.
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.
Answers
Suggested answer: C

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?

A.
gcloud compute instances add-access-config ${NAME}-backend-instance-1
A.
gcloud compute instances add-access-config ${NAME}-backend-instance-1
Answers
B.
gcloud compute instances add-tags ${NAME}-backend-instance-1 --tags http-server
B.
gcloud compute instances add-tags ${NAME}-backend-instance-1 --tags http-server
Answers
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
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
Answers
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
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
Answers
Suggested answer: C

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.
Deploy the website on App Engine and use traffic splitting.
A.
Deploy the website on App Engine and use traffic splitting.
Answers
B.
Deploy the website on App Engine as three separate services.
B.
Deploy the website on App Engine as three separate services.
Answers
C.
Deploy the website on Cloud Functions and use traffic splitting.
C.
Deploy the website on Cloud Functions and use traffic splitting.
Answers
D.
Deploy the website on Cloud Functions as three separate functions.
D.
Deploy the website on Cloud Functions as three separate functions.
Answers
Suggested answer: A

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.
gsutil cp --project ''my-gcp-project'' -r ~/local-scripts/ gcp-instance-name:~/ server-scripts/ --zone ''us-east1-b''
A.
gsutil cp --project ''my-gcp-project'' -r ~/local-scripts/ gcp-instance-name:~/ server-scripts/ --zone ''us-east1-b''
Answers
B.
gsutil cp --project ''my-gcp-project'' -R ~/local-scripts/ gcp-instance-name:~/ server-scripts/ --zone ''us-east1-b''
B.
gsutil cp --project ''my-gcp-project'' -R ~/local-scripts/ gcp-instance-name:~/ server-scripts/ --zone ''us-east1-b''
Answers
C.
gcloud compute scp --project ''my-gcp-project'' --recurse ~/local-scripts/ gcpinstance- name:~/server-scripts/ --zone ''us-east1-b''
C.
gcloud compute scp --project ''my-gcp-project'' --recurse ~/local-scripts/ gcpinstance- name:~/server-scripts/ --zone ''us-east1-b''
Answers
D.
gcloud compute mv --project ''my-gcp-project'' --recurse ~/local-scripts/ gcpinstance- name:~/server-scripts/ --zone ''us-east1-b''
D.
gcloud compute mv --project ''my-gcp-project'' --recurse ~/local-scripts/ gcpinstance- name:~/server-scripts/ --zone ''us-east1-b''
Answers
Suggested answer: C

You are creating an App Engine application that writes a file to any user's Google Drive.

How should the application authenticate to the Google Drive API?

A.
With an OAuth Client ID that uses the https://www.googleapis.com/auth/drive.file scope to obtain an access token for each user.
A.
With an OAuth Client ID that uses the https://www.googleapis.com/auth/drive.file scope to obtain an access token for each user.
Answers
B.
With an OAuth Client ID with delegated domain-wide authority.
B.
With an OAuth Client ID with delegated domain-wide authority.
Answers
C.
With the App Engine service account and https://www.googleapis.com/auth/drive.file scope that generates a signed JWT.
C.
With the App Engine service account and https://www.googleapis.com/auth/drive.file scope that generates a signed JWT.
Answers
D.
With the App Engine service account with delegated domain-wide authority.
D.
With the App Engine service account with delegated domain-wide authority.
Answers
Suggested answer: B

You are creating a Google Kubernetes Engine (GKE) cluster and run this command:

The command fails with the error:

You want to resolve the issue. What should you do?

A.
Request additional GKE quota is the GCP Console.
A.
Request additional GKE quota is the GCP Console.
Answers
B.
Request additional Compute Engine quota in the GCP Console.
B.
Request additional Compute Engine quota in the GCP Console.
Answers
C.
Open a support case to request additional GKE quotA.
C.
Open a support case to request additional GKE quotA.
Answers
D.
Decouple services in the cluster, and rewrite new clusters to function with fewer cores.
D.
Decouple services in the cluster, and rewrite new clusters to function with fewer cores.
Answers
Suggested answer: A

You are parsing a log file that contains three columns: a timestamp, an account number (a string), and a transaction amount (a number). You want to calculate the sum of all transaction amounts for each unique account number efficiently.

Which data structure should you use?

A.
A linked list
A.
A linked list
Answers
B.
A hash table
B.
A hash table
Answers
C.
A two-dimensional array
C.
A two-dimensional array
Answers
D.
A comma-delimited string
D.
A comma-delimited string
Answers
Suggested answer: B
Total 265 questions
Go to page: of 27