Reduce latency and origin load for a dynamic API globally.
AdvancedScenarioRoute 53, CloudFront and Messaging
Answer
Situation read → Cache what is safe, and use CloudFront as a global network accelerator even for uncacheable calls.
What I'd do →
- Define cache policies per path: short TTL for GETs, no cache for POST
- Add Origin Shield in the region closest to the origin
- Use persistent connections to origin and HTTP/3 to clients
- Compress with Brotli
- Consider Global Accelerator for non-HTTP or static IP needs
Why → Edge termination of TLS cuts handshake latency even without cache hits.
Interview tip → Cache key design is where most wins and bugs live.
More on Route 53, CloudFront and Messaging
You want users routed to the nearest healthy region. Which Route 53 policy do you use?BeginnerPrimary region fails; how do you fail over DNS in a controlled way?IntermediateWhat is the difference between a CNAME and an alias record in Route 53?BeginnerRoll out a new version to 5 percent of users using DNS. How?IntermediateCloudFront serves stale content after you deployed a new JS bundle. How do you handle cache correctly?IntermediateCloudFront returns 403 from an S3 origin. List the checks.Intermediate