0
0
GCPcloud~10 mins

Cloud CDN integration 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 enable Cloud CDN on a backend service in GCP.

GCP
gcloud compute backend-services update my-backend-service --enable-cdn=[1]
Drag options to blanks, or click blank then click option'
Afalse
Benable
Ctrue
Don
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'false' instead of 'true' disables CDN.
Using 'enable' or 'on' are invalid values.
2fill in blank
medium

Complete the code to create a URL map that directs traffic to a backend service with Cloud CDN enabled.

GCP
gcloud compute url-maps create my-url-map --default-backend-service=[1]
Drag options to blanks, or click blank then click option'
Amy-backend-service
Bmy-instance-group
Cmy-load-balancer
Dmy-cdn-config
Attempts:
3 left
💡 Hint
Common Mistakes
Using instance group name instead of backend service.
Confusing load balancer name with backend service.
3fill in blank
hard

Fix the error in the command to invalidate cached content on Cloud CDN.

GCP
gcloud compute url-maps invalidate-caches my-url-map --path [1]
Drag options to blanks, or click blank then click option'
Aimages
Bimages/*
C/images
D/images/*
Attempts:
3 left
💡 Hint
Common Mistakes
Omitting the leading slash causes the command to fail.
Not using wildcards invalidates only a single file.
4fill in blank
hard

Fill both blanks to configure cache key policies for Cloud CDN.

GCP
gcloud compute backend-services update my-backend-service --cache-key-include-[1]=[2]
Drag options to blanks, or click blank then click option'
Aquery-string
Btrue
Cfalse
Dheader
Attempts:
3 left
💡 Hint
Common Mistakes
Setting include flag to false disables query string caching.
Using 'header' instead of 'query-string' changes cache key behavior.
5fill in blank
hard

Fill all three blanks to define a backend bucket with Cloud CDN enabled and a custom TTL.

GCP
gcloud compute backend-buckets create my-backend-bucket --gcs-bucket-name=[1] --enable-cdn=[2] --default-ttl=[3]
Drag options to blanks, or click blank then click option'
Amy-static-assets
Btrue
C3600
Dfalse
Attempts:
3 left
💡 Hint
Common Mistakes
Using false disables CDN.
Setting TTL to zero disables caching.