0
0
GCPcloud~10 mins

Network intelligence tools in GCP - Interactive Code Practice

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

Complete the code to create a VPC network in Google Cloud.

GCP
gcloud compute networks create [1] --subnet-mode=auto
Drag options to blanks, or click blank then click option'
Acloud-net
Bdefault
Cglobal-network
Dmy-vpc-network
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'default' which already exists and causes conflict.
Using invalid characters in the network name.
2fill in blank
medium

Complete the code to list all firewall rules in your Google Cloud project.

GCP
gcloud compute firewall-rules [1]
Drag options to blanks, or click blank then click option'
Adescribe
Bdelete
Clist
Dcreate
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'describe' which requires a specific firewall rule name.
Using 'create' or 'delete' which modify firewall rules.
3fill in blank
hard

Fix the error in the command to test network connectivity to a VM instance.

GCP
gcloud compute [1] ssh my-instance --zone=us-central1-a
Drag options to blanks, or click blank then click option'
Ainstances
Bvm
Cconnect
Dcompute
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'connect' which is not a valid gcloud command group.
Using 'vm' which is not recognized by gcloud.
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 instead of TCP.
Using port 443 which is for HTTPS.
5fill in blank
hard

Fill all three blanks to create a route that directs traffic to a specific instance.

GCP
gcloud compute routes create [1] --network [2] --next-hop-instance [3] --next-hop-instance-zone us-central1-a
Drag options to blanks, or click blank then click option'
Acustom-route
Bmy-vpc-network
Cmy-instance
Ddefault-route
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'default-route' which may conflict with existing routes.
Mixing network and instance names incorrectly.