Question 960
A global web application reduces repeated origin and transfer expenses. The team confirms that a live service pays for CloudFront yet caching is disabled for every route. Which design adjustment best addresses that requirement?
Explanation
Correct Answer
The scenario identifies this requirement: A live service pays for CloudFront yet caching is disabled for every route. Select Enable cache behaviors only on safe reusable content and measure hit ratio as the specified technical mechanism. Cache utility depends on response reusability. This response addresses the problem described rather than a different design goal.
Incorrect Answers
Add cache-control headers and versioned object filenames would help if s3 origin serves immutable assets but clients re-request them despite unchanged contents. Versioned immutable assets permit long cache retention. That is not the symptom described here: a live service pays for CloudFront yet caching is disabled for every route. The matching response is Enable cache behaviors only on safe reusable content and measure hit ratio, because cache utility depends on response reusability.
For the alternative failure an API is billed for large uncompressed HTTP responses, the control Enable appropriate HTTP compression and compact response formats is relevant: compression lowers bytes transmitted. Here the evidence instead is a live service pays for CloudFront yet caching is disabled for every route. The selected technical mechanism is Enable cache behaviors only on safe reusable content and measure hit ratio: cache utility depends on response reusability.
Use CloudFront caching with an appropriate cache policy solves a different operational problem where every global user downloads identical static images directly from a regional ALB. Edge cache hits reduce origin requests and data transfer paths. It does not directly address a live service pays for CloudFront yet caching is disabled for every route. The case calls for Enable cache behaviors only on safe reusable content and measure hit ratio, since cache utility depends on response reusability.