AWS Series

Debugging AWS CloudFront Issues using AWS Athena

Athena | CloudFront | AWS | Cloud | CDN

Arun Kumar Singh
6 min readSep 11, 2022
Photo by Jeremy Bezanger on Unsplash

The best way to prevent failures is to design a resilient architecture.

What is AWS CloudFront?

According to AWS “Amazon CloudFront is a web service that speeds up distribution of your static and dynamic web content, such as .html, .css, .js, and image files, to your users. CloudFront delivers your content through a worldwide network of data centers called edge locations.”

So in a nutshell, Amazon CloudFront is a fast CDN (content delivery network) service that securely delivers your data with low latency and high transfer speeds. CloudFront is natively integrated with AWS services and uses the AWS network. At the time of writing this blog, CloudFront is having 400+ Edge locations.

Image From: AWS

CloudFront Features —


An Origin is the location where CloudFront goes to get content to serve viewers. CloudFront supports different kinds of Origins -

  • S3 bucket
  • Elastic Load Balancing load balancer
  • HTTP service running on Amazon EC2 instance
  • API gateway


Amazon CloudFront provides for 99.9% uptime SLA. Still, if you are worried about the response that how your origin should behave then you can configure timeouts or use Origin failover to handle that.

Error Pages

Apart from that CloudFront provides an Error Pages feature as well. This feature allows you to set a custom error page and assign a different status code returned to the user.


CloudFront provides a wide variety of security options as well like

  • Integration with WAF / Shield / ACM /CloudTrail
  • Signed URLs and Cookies



Arun Kumar Singh

In quest of understanding How Systems Work !