Home
← All questions

DNS resolution and CDN edge caching | Web Fundamentals

MediumPremiumWeb Fundamentals

Asked at Google · Cloudflare · Amazon

Web Fundamentals interview practice: Trace a URL from DNS lookup to CDN cache hit

Answer

DNS resolution chain:

  1. Browser/OS cache → resolver (ISP/8.8.8.8)
  2. Recursive query: root → TLD (.com) → authoritative NS
  3. Returns A/AAAA record (IP) or CNAME (alias, e.g. to CDN)

CDN places cached copies at edge PoPs near users:

  • First request: cache miss → origin fetch → store at edge
  • Subsequent: cache hit — lower latency, origin offload
  • Control via Cache-Control, CDN-Cache-Control, cache keys (URL + headers)

Anycast routing sends users to nearest healthy PoP.

Premium question

Unlock the full model answer with Mentoxis Premium.

Unlock with Premium