image


Google-PCD Dumps Google-PCD Braindumps

Google-PCD Real Questions Google-PCD Practice Test Google-PCD Actual Questions


Google


Google-PCD


Professional Cloud Developer


https://killexams.com/pass4sure/exam-detail/Google-PCD

Question:39

Yourteammatehasaskedyoutoreviewthecodebelow.ItspurposeistoefficientlyaddalargenumberofsmallrowstoaBigQuerytable.


image

Which improvement should you suggest your teammate make?

  1. Include multiple rows with each request.

  2. Perform the inserts in parallel by creating multiple threads.

  3. Write each row to a Cloud Storage object, then load into BigQuery.

  4. Write each row to a Cloud Storage object in parallel, then load into BigQuery.


Answer: B


Question: 40


You need to migrate an internal file upload API with an enforced 500-MB file size limit to App Engine. What should you do?

  1. Use FTP to upload files.

  2. Use CPanel to upload files.

  3. Use signed URLs to upload files.

  4. Change the API to be a multipart file upload API.


Answer: C


Reference: https://wiki.christophchamp.com/index.php?title=Google_Cloud_Platform

Question: 41


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.)

  1. Create a multi-regional Cloud Spanner instance with "nam-asia-eur1" configuration.

  2. Create a multi-regional Cloud Spanner instance with "nam3" configuration.

  3. Create a cluster with at least 3 Spanner nodes.

  4. Create a cluster with at least 1 Spanner node.

  5. Create a minimum of two Cloud Spanner instances in separate regions with at least one node.

  6. Create a Cloud Dataflow pipeline to replicate data across different databases.


Answer: BF


Question: 42


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?

  1. Blue/green deployment

  2. Canary deployment

  3. Rolling deployment

  4. Recreate deployment


Answer: A


Reference: https://thenewstack.io/deployment-strategies/

Question: 43


You need to copy directory local-scripts and all of its contents from your local workstation to a Compute Engine virtual machine instance.

  1. gsutil cp –project “my-gcp-project” -r ~/local-scripts/ gcp-instance-name:~/server-scripts/ –zone “us-east1-b”

  2. gsutil cp –project “my-gcp-project” -R ~/local-scripts/ gcp-instance-name:~/server-scripts/ –zone “us-east1-b”

  3. gcloud compute scp –project “my-gcp-project” –recurse ~/local-scripts/ gcp-instance-name:~/server-scripts/ –zone “us-east1-b”

  4. gcloud compute mv –project “my-gcp-project” –recurse ~/local-scripts/ gcp-instance-name:~/server-scripts/ –zone “us-east1-b”


Answer: C


Reference: https://cloud.google.com/sdk/gcloud/reference/compute/copy-files

Question: 44


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?

  1. Uptime check

  2. Process health

  3. Metric absence

  4. Metric threshold


Answer: B


Reference: https://cloud.google.com/monitoring/alerts/concepts-indepth

Question: 45


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?

  1. Use the JOIN operator in SQL to combine the tables.

  2. Use nested WITH statements to combine the tables.

  3. Use the UNION operator in SQL to combine the tables.

  4. Use the UNION ALL operator in SQL to combine the tables.


Answer: C


Reference: https://www.techonthenet.com/sql/union_all.php

Question: 46

Question: 47


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?

  1. Deploy the website on App Engine and use traffic splitting.

  2. Deploy the website on App Engine as three separate services.

  3. Deploy the website on Cloud Functions and use traffic splitting.

  4. Deploy the website on Cloud Functions as three separate functions.


Answer: A


Reference: https://cloud.google.com/appengine/docs/standard/python/splitting-traffic

Question: 48


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?

  1. Enable private IP for the Cloud SQL instance.

  2. Whitelist a project to access Cloud SQL, and add Compute Engine instances in the whitelisted project.

  3. Create a role in Cloud SQL that allows access to the database from external instances, and assign the Compute Engine instances to that role.

  4. 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: C


Reference: https://cloud.google.com/sql/docs/mysql/connect-external-app

Question: 49


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.

  1. gsutil cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/

  2. gcloud cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/

  3. hadoop fs cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/

  4. gcloud dataproc cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/


Answer: A


Explanation:

The gsutil cp command allows you to copy data between your local file. storage. boto files generated by running "gsutil config"

Question: 50


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?

  1. Replace your entire monitoring platform with Stackdriver.

  2. Install the Stackdriver agents on your Compute Engine instances.

  3. Use Stackdriver to capture and alert on logs, then ship them to your existing platform.

  4. Migrate some traffic back to your old platform and perform AB testing on the two platforms concurrently.


Answer: B


Reference: https://cloud.google.com/monitoring/


image

6$03/( 48(67,216


7KHVH TXHVWLRQV DUH IRU GHPR SXUSRVH RQO\ )XOO YHUVLRQ LV XS WR GDWH DQG FRQWDLQV DFWXDO TXHVWLRQV DQG DQVZHUV


.LOOH[DPV FRP LV DQ RQOLQH SODWIRUP WKDW RIIHUV D ZLGH UDQJH RI VHUYLFHV UHODWHG WR FHUWLILFDWLRQ H[DP SUHSDUDWLRQ 7KH SODWIRUP SURYLGHV DFWXDO TXHVWLRQV H[DP GXPSV DQG SUDFWLFH WHVWV WR KHOS LQGLYLGXDOV SUHSDUH IRU YDULRXV FHUWLILFDWLRQ H[DPV ZLWK FRQILGHQFH +HUH DUH VRPH NH\ IHDWXUHV DQG VHUYLFHV RIIHUHG E\ .LOOH[DPV FRP


$FWXDO ([DP 4XHVWLRQV .LOOH[DPV FRP SURYLGHV DFWXDO H[DP TXHVWLRQV WKDW DUH H[SHULHQFHG LQ WHVW FHQWHUV 7KHVH TXHVWLRQV DUH XSGDWHG UHJXODUO\ WR HQVXUH WKH\ DUH XS WR GDWH DQG UHOHYDQW WR WKH ODWHVW H[DP V\OODEXV %\ VWXG\LQJ WKHVH DFWXDO TXHVWLRQV FDQGLGDWHV FDQ IDPLOLDUL]H WKHPVHOYHV ZLWK WKH FRQWHQW DQG IRUPDW RI WKH UHDO H[DP


([DP 'XPSV .LOOH[DPV FRP RIIHUV H[DP GXPSV LQ 3') IRUPDW 7KHVH GXPSV FRQWDLQ D FRPSUHKHQVLYH FROOHFWLRQ RI TXHVWLRQV DQG DQVZHUV WKDW FRYHU WKH H[DP WRSLFV %\ XVLQJ WKHVH GXPSV FDQGLGDWHV FDQ HQKDQFH WKHLU NQRZOHGJH DQG LPSURYH WKHLU FKDQFHV RI VXFFHVV LQ WKH FHUWLILFDWLRQ H[DP


3UDFWLFH 7HVWV .LOOH[DPV FRP SURYLGHV SUDFWLFH WHVWV WKURXJK WKHLU GHVNWRS 9&( H[DP VLPXODWRU DQG RQOLQH WHVW HQJLQH 7KHVH SUDFWLFH WHVWV VLPXODWH WKH UHDO H[DP HQYLURQPHQW DQG KHOS FDQGLGDWHV DVVHVV WKHLU UHDGLQHVV IRU WKH DFWXDO H[DP 7KH SUDFWLFH WHVWV FRYHU D ZLGH UDQJH RI TXHVWLRQV DQG HQDEOH FDQGLGDWHV WR LGHQWLI\ WKHLU VWUHQJWKV DQG ZHDNQHVVHV


*XDUDQWHHG 6XFFHVV .LOOH[DPV FRP RIIHUV D VXFFHVV JXDUDQWHH ZLWK WKHLU H[DP GXPSV 7KH\ FODLP WKDW E\ XVLQJ WKHLU PDWHULDOV FDQGLGDWHV ZLOO SDVV WKHLU H[DPV RQ WKH ILUVW DWWHPSW RU WKH\ ZLOO UHIXQG WKH SXUFKDVH SULFH 7KLV JXDUDQWHH SURYLGHV DVVXUDQFH DQG FRQILGHQFH WR LQGLYLGXDOV SUHSDULQJ IRU FHUWLILFDWLRQ H[DPV


8SGDWHG &RQWHQW .LOOH[DPV FRP UHJXODUO\ XSGDWHV LWV TXHVWLRQ EDQN DQG H[DP GXPSV WR HQVXUH WKDW WKH\ DUH FXUUHQW DQG UHIOHFW WKH ODWHVW FKDQJHV LQ WKH H[DP V\OODEXV 7KLV KHOSV FDQGLGDWHV VWD\ XS WR GDWH ZLWK WKH H[DP FRQWHQW DQG LQFUHDVHV WKHLU FKDQFHV RI VXFFHVV


7HFKQLFDO 6XSSRUW .LOOH[DPV FRP SURYLGHV IUHH [ WHFKQLFDO VXSSRUW WR DVVLVW FDQGLGDWHV ZLWK DQ\ TXHULHV RU LVVXHV WKH\ PD\ HQFRXQWHU ZKLOH XVLQJ WKHLU VHUYLFHV 7KHLU FHUWLILHG H[SHUWV DUH DYDLODEOH WR SURYLGH JXLGDQFH DQG KHOS FDQGLGDWHV WKURXJKRXW WKHLU H[DP SUHSDUDWLRQ MRXUQH\


'PS .PSF FYBNT WJTJU IUUQT LJMMFYBNT DPN WFOEPST FYBN MJTU

.LOO \RXU H[DP DW )LUVW $WWHPSW *XDUDQWHHG