0
0
GCPcloud~10 mins

Why GCP for cloud computing - Test Your Understanding

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to create a virtual machine instance in GCP using the correct command.

GCP
gcloud compute instances create my-instance --zone=[1]
Drag options to blanks, or click blank then click option'
Aeurope-west1-b
Bus-central1-a
Casia-east1-c
Dinvalid-zone
Attempts:
3 left
💡 Hint
Common Mistakes
Using an invalid or misspelled zone name.
2fill in blank
medium

Complete the code to list all storage buckets in your GCP project.

GCP
gsutil [1]
Drag options to blanks, or click blank then click option'
Arm
Bmb
Ccp
Dls
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'mb' which creates a bucket instead of listing.
3fill in blank
hard

Fix the error in the command to deploy an app to App Engine.

GCP
gcloud app deploy [1]
Drag options to blanks, or click blank then click option'
Aapp.yaml
Bapp.yml
Capplication.yaml
Ddeploy.yaml
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect file names like app.yml or deploy.yaml.
4fill in blank
hard

Fill both blanks to create a firewall rule allowing HTTP traffic on port 80.

GCP
gcloud compute firewall-rules create allow-http --allow=[1]:[2]
Drag options to blanks, or click blank then click option'
Atcp
Budp
C80
D443
Attempts:
3 left
💡 Hint
Common Mistakes
Using UDP protocol or wrong port numbers like 443.
5fill in blank
hard

Fill all three blanks to create a GCP Pub/Sub topic and publish a message.

GCP
gcloud pubsub topics create [1]
gcloud pubsub topics publish [2] --message=[3]
Drag options to blanks, or click blank then click option'
Amy-topic
C"Hello, GCP!"
D"Test message"
Attempts:
3 left
💡 Hint
Common Mistakes
Using different topic names or missing quotes around the message.