SAP-C02 · Question #41
A company hosts a photography website on AWS that has global visitors. The website has experienced steady increases in traffic during the last 12 months, and users have reported a delay in…
The correct answer is B. Set the Minimum TTL and Maximum TTL to a high value in the CloudFront distribution. D. Set up additional origin servers that are geographically closer to the requesters. Configure. To achieve minimal latency for a global photography website using Amazon CloudFront, configure a high TTL for image caching at edge locations to maximize cache hits. Additionally, setting up multiple origin servers geographically closer to requesters can further reduce latency…
Question
A company hosts a photography website on AWS that has global visitors. The website has experienced steady increases in traffic during the last 12 months, and users have reported a delay in displaying images. The company wants to configure Amazon CloudFront lo deliver photos to visitors with minimal latency. Which actions will achieve this goal? (Choose two.)
Options
- ASet the Minimum TTL and Maximum TTL to 0 in the CloudFront distribution.
- BSet the Minimum TTL and Maximum TTL to a high value in the CloudFront distribution.
- CSet the CloudFront distribution to forward all headers, all cookies, and all query strings to the
- DSet up additional origin servers that are geographically closer to the requesters. Configure
- ESelect Price Class 100 on Ihe CloudFront distribution.
How the community answered
(54 responses)- A15% (8)
- B74% (40)
- C7% (4)
- E4% (2)
Why each option
To achieve minimal latency for a global photography website using Amazon CloudFront, configure a high TTL for image caching at edge locations to maximize cache hits. Additionally, setting up multiple origin servers geographically closer to requesters can further reduce latency for cache misses or non-cacheable content.
Setting the Minimum TTL and Maximum TTL to 0 would prevent CloudFront from caching content at the edge, forcing every request to go back to the origin, which would significantly increase latency rather than reduce it.
Setting a high Minimum TTL and Maximum TTL in the CloudFront distribution allows images to be cached at CloudFront edge locations for a longer duration, maximizing cache hits and significantly reducing latency for subsequent requests as content is served directly from the nearest edge, rather than the origin.
Setting the CloudFront distribution to forward all headers, all cookies, and all query strings would reduce the cache hit ratio because CloudFront would create more unique cache keys or bypass caching, leading to more requests hitting the origin and increasing latency.
Setting up additional origin servers that are geographically closer to different groups of requesters ensures that even if a cache miss occurs, or for content that is not cached, the request travels a shorter distance to the nearest origin server, thereby reducing the overall end-to-end latency for content delivery to global visitors.
Selecting Price Class 100 on the CloudFront distribution extends content delivery to all CloudFront edge locations, including the most remote, but it's primarily a cost-versus-reach configuration and does not directly optimize caching efficiency or origin response times for minimal latency as effectively as high TTLs and geographically distributed origins.
Concept tested: CloudFront latency optimization and caching strategies
Source: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Introduction.html, https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html, https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/MultipleOrigins.html
Community Discussion
No community discussion yet for this question.