CloudFront is a Content Delivery Network (CDN) that caches your assets (HTML, JS, Images, Video) at over 400 Edge Locations worldwide.
Your 'Origin' is where the original file lives (usually an **S3 Bucket** or an **ALB**). CloudFront pulls the file once and caches it globally.
CloudFront provides built-in protection against **Layer 3/4 DDoS attacks** (via AWS Shield). It also allows you to enforce HTTPS and use **Lambda@Edge** to run small snippets of code right at the CDN level (e.g., for A/B testing or custom headers).
Q: "Is CloudFront only for static files?"
Architect Answer: "NO. You can also use CloudFront to accelerate **Dynamic Content** (API responses). By using CloudFront as a proxy for your API, you benefit from AWS's optimized global network backbone, which is much faster and more reliable than the public internet. Use it for your global .NET APIs to reduce latency for international users."