Question 980
An application uses edge networking to reduce requests to origin infrastructure. The team confirms that cloudFront cache misses are high because query parameters vary without affecting image content. What is the best design response for this workload?
Explanation
Correct Answer
The scenario identifies this requirement: CloudFront cache misses are high because query parameters vary without affecting image content. Select Normalize cache-key settings to only meaningful parameters as the specified technical mechanism. Smaller cache-key variation improves reusable hit ratio. This response addresses the problem described rather than a different design goal.
Incorrect Answers
The option Bundle or optimize static assets and use HTTP compression where appropriate addresses a separate condition: a site contains many tiny font assets requiring separate requests. Fewer smaller requests reduce network overhead. The actual requirement is cloudFront cache misses are high because query parameters vary without affecting image content. Recommended corrective action: Normalize cache-key settings to only meaningful parameters. Smaller cache-key variation improves reusable hit ratio.
For the alternative failure dynamic per-user API calls cannot be shared safely among different users, the control Restrict caching to safe routes and authentication-aware cache keys is relevant: personalized responses require private cache behavior. Here the evidence instead is cloudFront cache misses are high because query parameters vary without affecting image content. The selected technical mechanism is Normalize cache-key settings to only meaningful parameters: smaller cache-key variation improves reusable hit ratio.
Configure CloudFront edge caching for versioned images solves a different operational problem where users fetch identical large images from S3 multiple times per session. Cache hits reduce object GET and transfer from origin. It does not directly address cloudFront cache misses are high because query parameters vary without affecting image content. The case calls for Normalize cache-key settings to only meaningful parameters, since smaller cache-key variation improves reusable hit ratio.