【ACE】練習問題019

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

問題16: Google Cloud Storageのバケットポリシー設定

Cloud Storageのバケットに対して全てのオブジェクトを公開読み取り可能にするためのコマンドはどれですか?

A. gsutil acl ch -u AllUsersgs://my-bucket
B. gsutil acl set public-read gs://my-bucket
C. gsutil iam ch allUsersgs://my-bucket
D. gsutil acl ch -g AllUsersgs://my-bucket

問題17: VPCサブネットの追加

既存のVPC「my-vpc」に新しいサブネットを追加するためのコマンドはどれですか?サブネット名は「my-subnet」、リージョンは「us-central1」、CIDRブロックは「10.0.0.0/24」です。

A. gcloud compute networks subnets create my-subnet –network=my-vpc –region=us-central1 –range=10.0.0.0/24
B. gcloud compute networks create-subnet my-subnet –vpc=my-vpc –region=us-central1 –range=10.0.0.0/24
C. gcloud compute networks subnets add my-subnet –vpc=my-vpc –region=us-central1 –range=10.0.0.0/24
D. gcloud compute networks subnets new my-subnet –network=my-vpc –region=us-central1 –range=10.0.0.0/24

問題18: Compute Engineインスタンスの起動

停止中のCompute Engineインスタンスを起動するためのコマンドはどれですか?インスタンス名は「my-instance」、ゾーンは「us-central1-a」です。

A. gcloud compute instances start my-instance –zone=us-central1-a
B. gcloud compute instances run my-instance –zone=us-central1-a
C. gcloud compute instances power-on my-instance –zone=us-central1-a
D. gcloud compute instances boot my-instance –zone=us-central1-a

問題19: BigQueryのデータセットの作成

新しいBigQueryデータセットを作成するためのコマンドはどれですか?データセットIDは「my_dataset」、プロジェクトIDは「my_project」です。

A. bq mk my_project
B. bq create my_project
C. bq mk –dataset my_project
D. bq create –dataset my_project

問題20: Cloud Functionsのログ確認

デプロイされたCloud Functionのログを確認するためのコマンドはどれですか?関数名は「myFunction」です。

A. gcloud functions logs read myFunction
B. gcloud functions get-logs myFunction
C. gcloud functions logs show myFunction
D. gcloud functions view-logs myFunction

答え

  1. A. gsutil acl ch -u AllUsersgs://my-bucket
  2. A. gcloud compute networks subnets create my-subnet –network=my-vpc –region=us-central1 –range=10.0.0.0/24
  3. A. gcloud compute instances start my-instance –zone=us-central1-a
  4. A. bq mk my_project
  5. A. gcloud functions logs read myFunction
スポンサーリンク