※ 他の問題集は「タグ:Professional Cloud Developer の模擬問題集」から一覧いただけます。
原本(英語)の「Professional Cloud Developer Practice Exam (2020.05.05)」もご覧ください。
Google Cloud 認定資格 -Professional Cloud Developer(全33問)
From GratisExam’s v2020-05-05.by.david.33q
QUESTION 1
データ移行の一環として、オンプレミスの仮想マシンからGoogle Cloud Storage にファイルをアップロードを行います。これらのファイルは、Google Cloud Platform 環境のGoogle Cloud DataProc Hadoop クラスタによって使用されます。
どのコマンドを使用しますか?
- 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:
gsutil cp コマンドを使うと、「gsutil config」 を実行して生成されたローカルファイル、ストレージ、boto ファイル間でデータをコピーすることができます。
QUESTION 2
次のgcloud コマンドを使用してHTTP(s) Load Balancer をデプロイしました。
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
Google Compute Engine 仮想マシンインスタンス上のポート 80へのヘルスチェックが失敗しており、インスタンスにトラフィックが送信されません。
あなたはこの問題を解決したいと思います。
どのコマンドを実行しますか?
- 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
– ネットワーキング用に VM を構成したユースケース
QUESTION 3
ローカル環境から Google Compute Engine 仮想マシン インスタンスに local-scripts ディレクトリとそのすべてのコンテンツをコピーする必要があります。
どのコマンドを使用しますか?
- 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”