← All CDN Flashcard Decks

Security & Performance Optimization Flashcards

7 cards from real CDN practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.

Read the first 7 Security & Performance Optimization flashcards as text
  1. An attacker sends millions of small DNS queries to a CDN's authoritative nameservers to exhaust UDP processing capacity. Which mitigation is most appropriate?

    Answer: Deploy anycast DNS with rate limiting and response rate limiting (RRL)

    Anycast spreads the attack across multiple nodes while DNS Response Rate Limiting (RRL) throttles repetitive queries from suspicious sources.

  2. Which CDN caching strategy is best suited for an API endpoint that returns user-specific data with a shared boilerplate section?

    Answer: Edge Side Includes (ESI) to cache the shared section separately

    ESI allows the CDN to cache the static boilerplate fragment while dynamically assembling the personalized portion from origin per request.

  3. A CDN customer reports their origin server is receiving repeated requests for the same object at the same time after a TTL expiry — a 'thundering herd'. What CDN feature prevents this?

    Answer: Request collapsing (request coalescing)

    Request collapsing queues simultaneous cache-miss requests for the same object and forwards only one request to the origin, serving all waiters from the single response.

  4. Which security mechanism allows a CDN to verify that a JWT token in an API request is valid before forwarding the request to the origin?

    Answer: Edge-side JWT validation using the CDN's WAF or edge compute

    Edge compute or WAF rules on the CDN can validate JWT signatures and claims before the request ever reaches the origin server.

  5. What does 'Stale-While-Revalidate' allow a CDN to do when a cached object's TTL has just expired?

    Answer: Serve the stale object while asynchronously fetching a fresh copy in the background

    Stale-While-Revalidate lets the CDN serve the expired (stale) cached copy instantly while refreshing it in the background, eliminating the user-visible latency spike.

  6. A CDN WAF detects a high volume of POST requests with SQL syntax in the body targeting a login endpoint. Which WAF action provides the best balance of security without impacting legitimate users?

    Answer: Challenge suspected requests with a CAPTCHA or JS challenge before blocking

    A challenge-based response (CAPTCHA/JS challenge) verifies whether the requester is human before blocking, reducing false positives against legitimate users.

  7. Which metric best measures the effectiveness of a CDN's caching configuration at reducing origin load?

    Answer: Cache Hit Ratio (CHR)

    Cache Hit Ratio (CHR) is the percentage of requests served from cache versus total requests; a higher CHR means fewer requests reach the origin.

How this page was made: written with AI tools and published by Nathan Beja, founder of Practice Test Geeks, who is responsible for its content. We have not yet matched this exam's facts to an official source, so confirm fees, dates and rules with the exam body. Not reviewed by a subject-matter expert. Editorial policy