Soru

Zorluk: KolayConfigure and Manage Azure CDN Endpoints and Caching Rules

An organization deploys an Azure Content Delivery Network (CDN) endpoint to deliver static images for a web application. The application frequently appends version query strings to image URLs (e.g., `image.png?v=1.1` and `image.png?v=1.2`) to force updates. However, the CDN currently serves stale images by returning the cached version of `image.png` for all versioned requests.

Which query string caching setting should you configure on the Azure CDN endpoint to ensure that each unique version query string is cached and served as a separate asset?

  1. Cache every unique URLCevap
  2. B
    Ignore query strings
  3. C
    Bypass caching
  4. D
    Use dynamic site acceleration

Cevap

Configure the Azure CDN endpoint query string caching behavior to 'Cache every unique URL'.
The correct setting is to cache every unique URL. This ensures that when a client requests an asset with a specific query string (such as `image.png?v=1.1`), the Azure CDN treats it as a unique asset and caches it separately from `image.png?v=1.2` or the base `image.png` URL.

Adım Adım Çözüm

1
Analyze the business requirement and current problematic behavior.
The application requires query-string versioned URLs (e.g., `?v=1.1`) to be treated as distinct assets, but the CDN currently returns the same cached version of the base file.
This indicates that the CDN is ignoring query parameters during caching lookup.
2
Evaluate Azure CDN query string caching options.
Azure CDN offers three behaviors: 'Ignore query strings' (default, ignores parameters), 'Bypass caching' (does not cache any parameterized requests), and 'Cache every unique URL' (caches each unique URL as a separate asset).
We need to identify the setting that permits caching of individual versioned requests.
3
Select the correct caching setting.
Choosing 'Cache every unique URL' matches the requirement because each query string is treated as a unique identifier for caching.
This enables versioned assets to be cached and served directly from CDN edge servers without returning stale content or overloading the origin.

Anahtar Kavram

Azure CDN query string caching behavior determines how requests with query parameters are cached at edge nodes.
Tahmini Süre:45s
Bu soruyu puanla