0
0
GCPcloud~10 mins

Backend services and backend buckets 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 backend bucket with a specified Cloud Storage bucket name.

GCP
gcloud compute backend-buckets create my-backend-bucket --gcs-bucket-name=[1]
Drag options to blanks, or click blank then click option'
Astorage-bucket-123
Bmy-backend-bucket
Cbackend-bucket-1
Dmy-storage-bucket
Attempts:
3 left
💡 Hint
Common Mistakes
Using the backend bucket name instead of the Cloud Storage bucket name.
Confusing the backend bucket name with the storage bucket name.
2fill in blank
medium

Complete the code to add a backend bucket to a URL map.

GCP
gcloud compute url-maps add-backend-bucket my-url-map --backend-bucket-name=[1]
Drag options to blanks, or click blank then click option'
Amy-backend-bucket
Bmy-url-map
Cdefault-backend
Dbucket-backend-1
Attempts:
3 left
💡 Hint
Common Mistakes
Using the URL map name instead of the backend bucket name.
Confusing backend bucket with backend service.
3fill in blank
hard

Fix the error in the command to create a backend bucket with a Cloud Storage bucket name.

GCP
gcloud compute backend-buckets create my-backend-bucket --[1]=my-storage-bucket
Drag options to blanks, or click blank then click option'
Agcs-bucket-name
Bbucket-name
Cbackend-bucket
Dstorage-bucket
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect flag names like --backend-bucket.
Confusing backend bucket creation with backend service creation.
4fill in blank
hard

Fill both blanks to configure a backend bucket with Cloud CDN enabled and a custom description.

GCP
gcloud compute backend-buckets create my-backend-bucket --gcs-bucket-name=[1] --enable-cdn=[2] --description="Static content bucket"
Drag options to blanks, or click blank then click option'
Amy-static-bucket
Btrue
Cfalse
Dmy-backend-bucket
Attempts:
3 left
💡 Hint
Common Mistakes
Setting --enable-cdn to false when CDN is desired.
Using backend bucket name instead of Cloud Storage bucket name.
5fill in blank
hard

Fill all three blanks to create a URL map that routes requests to a backend bucket with a host rule.

GCP
gcloud compute url-maps create my-url-map --default-service=[1] && gcloud compute url-maps add-host-rule my-url-map --hosts=[2] --path-matcher-name=[3]
Drag options to blanks, or click blank then click option'
Amy-backend-bucket
B"example.com"
Cdefault
Ddefault-backend-service
Attempts:
3 left
💡 Hint
Common Mistakes
Using backend service name instead of backend bucket.
Not quoting the host name.
Using incorrect path matcher names.