AWS Certified CloudOps Engineer - Associate
Troubleshooting CloudFront Issues
A CloudFront error can come from the viewer, the edge, or your origin, and the status code alone will not tell you which. This lesson teaches you to read the response headers and log fields that do, and to fix a collapsing cache hit ratio.
Intermediate 28 minutes 5 Learning Objectives
- Determine whether a CloudFront response was generated by the edge or by the origin using response headers and log fields
- Interpret x-edge-result-type, x-edge-response-result-type, and x-edge-detailed-result-type together
- Diagnose a low cache hit ratio by finding the cache key dimension that is fragmenting the cache
- Work through the common causes of CloudFront 403, 502, and 504 responses in the order that resolves them fastest
- Choose between raising cache TTLs, adding Origin Shield, and invalidating, based on what the evidence shows
