Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete 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'
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.
✗ Incorrect
The --gcs-bucket-name flag requires the name of the Cloud Storage bucket to use as the backend bucket.
2fill in blank
mediumComplete 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using the URL map name instead of the backend bucket name.
Confusing backend bucket with backend service.
✗ Incorrect
The --backend-bucket-name flag requires the name of the backend bucket to add to the URL map.
3fill in blank
hardFix 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect flag names like --backend-bucket.
Confusing backend bucket creation with backend service creation.
✗ Incorrect
To create a backend bucket with a Cloud Storage bucket, use the --gcs-bucket-name flag with the bucket name.
4fill in blank
hardFill 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'
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.
✗ Incorrect
The --gcs-bucket-name flag needs the Cloud Storage bucket name, and --enable-cdn should be set to true to enable CDN.
5fill in blank
hardFill 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using backend service name instead of backend bucket.
Not quoting the host name.
Using incorrect path matcher names.
✗ Incorrect
The URL map uses the backend bucket as default, sets the host to example.com, and names the path matcher default.