【ACE】練習問題028

この記事は約5分で読めます。
スポンサーリンク

問題17

あなたはGCPプロジェクトで特定のCompute Engineインスタンスのタグを設定する必要があります。どのgcloudコマンドを使用しますか?

A)

shellコードをコピーするgcloud compute instances add-tags <instance-name> --tags <tag1>,<tag2> --zone=<zone>

B)

shellコードをコピーするgcloud compute instances set-tags <instance-name> --tags <tag1>,<tag2> --zone=<zone>

C)

shellコードをコピーするgcloud compute instances update-tags <instance-name> --tags <tag1>,<tag2> --zone=<zone>

D)

shellコードをコピーするgcloud compute instances add-tag <instance-name> --tags <tag1>,<tag2> --zone=<zone>

問題18

あなたはGCPプロジェクトで新しいVPCネットワークを作成し、特定のサブネットを定義する必要があります。次のうち、正しいコマンドはどれですか?

A)

shellコードをコピーするgcloud compute networks create <network-name> --subnet-mode=custom
gcloud compute networks subnets create <subnet-name> --network=<network-name> --region=<region> --range=<CIDR-range>

B)

shellコードをコピーするgcloud compute networks create <network-name> --subnet-mode=custom
gcloud compute networks subnets add <subnet-name> --network=<network-name> --region=<region> --range=<CIDR-range>

C)

shellコードをコピーするgcloud compute networks new <network-name> --subnet-mode=custom
gcloud compute networks subnets create <subnet-name> --network=<network-name> --region=<region> --range=<CIDR-range>

D)

shellコードをコピーするgcloud compute networks new <network-name> --subnet-mode=custom
gcloud compute networks subnets add <subnet-name> --network=<network-name> --region=<region> --range=<CIDR-range>

問題19

あなたはGCPプロジェクトでCloud Functionsを削除する必要があります。どのコマンドを使用しますか?

A)

shellコードをコピーするgcloud functions remove <function-name>

B)

shellコードをコピーするgcloud functions delete <function-name>

C)

shellコードをコピーするgcloud functions terminate <function-name>

D)

shellコードをコピーするgcloud functions clear <function-name>

問題20

あなたはGCPプロジェクトである特定のCompute EngineインスタンスにSSHで接続する必要があります。次のコマンドのうち、正しいものはどれですか?

A)

shellコードをコピーするgcloud compute ssh <instance-name> --zone=<zone>

B)

shellコードをコピーするgcloud compute ssh connect-to-instance <instance-name> --zone=<zone>

C)

shellコードをコピーするgcloud compute instances ssh <instance-name> --zone=<zone>

D)

shellコードをコピーするgcloud compute instances connect <instance-name> --zone=<zone>

解答

  1. 問題17の解答: B
  2. 問題18の解答: A
  3. 問題19の解答: B
  4. 問題20の解答: A
スポンサーリンク