Practice Exam

Professional Cloud Developer Practice Exam (v20200505) (English)

Professional Cloud Developer certification is available in English or Japanese.

There is “Professional Cloud Developer 模擬試験(v20200505)(日本語)” for the Japanese version.


Google Cloud Certified –Professional Cloud Developer (33 Q)

From GratisExam’s v2020-05-05.by.david.33q


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 Google Cloud Platform 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

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


QUESTION 2

You have deployed an HTTP(s) Load Balancer with the gcloud commands shown below.

export NAME-load-balancer

# create network
gcloud compute networks create ${NAME}

# add instance gcloud compute instances create ${NAME) -backend-instance-1 --subnet $ (NAME) --no address

# create the instance group
gcloud compute instance-groups unmanaged create $ (NAME) -i
gcloud compute instance-groups unmanaged set-named-ports ${NAME}-i --named-ports http:80
gcloud compute instance-groups unmanaged add-instances $ (NAME) -i --instances $ (NAME)-instance-1

# configure health checks
gcloud compute health-checks create http $ (NAME) -http-hc --port 80

# create backend service
gcloud compute backend-services create $ (NAME) -http-bes --health-checks ${NAME} -http-hc --protocol HTTP --port-name http --global
gcloud compute backend-services add-backend ${NAME} -http-bes --instance-group ${NAME} -i --balancing-mode RATE --max-rate 100000 --capacity-scaler 1.0 --global --instance-group-zone us-easti-d

# create urls maps and forwarding rule
gcloud compute url-maps create $ (NAME) -http-urlmap--default-service $ (NAME) -http-bes
gcloud compute target-http-proxies create ${NAME) -http-proxy --url-map ${NAME} -http-urlmap
gcloud compute forwarding-rules create $ (NAME) -http-fw --global --ip-protocol ICP--target-http-proxy $ (NAME) -http-proxy --ports 80

Health checks to port 80 on the Google 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
  • B. gcloud compute instances add-tags ${NAME}-backend-instance-1 –tags http-server
  • 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. 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

Reference
Configuring VMs for networking use cases


QUESTION 3

You need to copy directory local-scripts and all of its contents from your local workstation to a Google 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”
  • B. gsutil cp –project “my-gcp-project” -R ~/local-scripts/ gcp-instance-name:~/server-scripts/ –zone “us-east1-b”
  • C. gcloud compute scp –project “my-gcp-project” –recurse ~/local-scripts/ gcp-instance-name:~/server-scripts/ –zone “us-east1-b”
  • D. gcloud compute mv –project “my-gcp-project” –recurse ~/local-scripts/ gcp-instance-name:~/server-scripts/ –zone “us-east1-b”
READ MORE ABOUT THIS