Complete the code to enable Cloud CDN on a backend service in GCP.
gcloud compute backend-services update my-backend-service --enable-cdn=[1]To enable Cloud CDN on a backend service, the flag --enable-cdn must be set to true.
Complete the code to create a URL map that directs traffic to a backend service with Cloud CDN enabled.
gcloud compute url-maps create my-url-map --default-backend-service=[1]The URL map should point to the backend service name where Cloud CDN is enabled.
Fix the error in the command to invalidate cached content on Cloud CDN.
gcloud compute url-maps invalidate-caches my-url-map --path [1]The path must start with a slash to correctly specify the cache invalidation path.
Fill both blanks to configure cache key policies for Cloud CDN.
gcloud compute backend-services update my-backend-service --cache-key-include-[1]=[2]
To include query strings in the cache key, use query-string=true.
Fill all three blanks to define a backend bucket with Cloud CDN enabled and a custom TTL.
gcloud compute backend-buckets create my-backend-bucket --gcs-bucket-name=[1] --enable-cdn=[2] --default-ttl=[3]
The backend bucket uses the GCS bucket name, enables CDN with true, and sets TTL in seconds.