
Answer-first summary for fast verification
Answer: Create an Amazon CloudFront distribution to cache static files at edge locations
## Explanation **Correct Answer: A** Amazon CloudFront is a content delivery network (CDN) service that caches static content at edge locations worldwide. This solution will MOST reduce costs because: 1. **Reduced EC2 Load**: By caching static files at edge locations, CloudFront serves content directly from edge locations, reducing the load on EC2 instances and decreasing compute costs. 2. **Reduced Data Transfer Costs**: CloudFront has lower data transfer out costs compared to EC2, especially for high-volume traffic. 3. **Edge Caching**: Static content is served from locations closer to users, reducing latency and decreasing the amount of data transferred from the origin (EC2 instances). **Why other options are incorrect:** **B. Amazon ElastiCache**: While ElastiCache can improve performance by caching data, it doesn't reduce data transfer costs significantly. It's primarily for database caching, not static file delivery, and doesn't provide edge caching capabilities. **C. AWS WAF**: AWS WAF is a web application firewall for security, not for caching. It doesn't have caching capabilities for static files. **D. Second ALB in another Region**: This would increase costs by duplicating infrastructure in another region. While it might improve latency for users in that region, it doesn't reduce overall costs and actually increases infrastructure expenses. **Key Takeaway**: For static content delivery with increasing traffic, Amazon CloudFront is the most cost-effective solution as it reduces origin server load, decreases data transfer costs, and improves performance through edge caching.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
A company hosts a website on Amazon EC2 instances behind an Application Load Balancer (ALB). The website serves static content. Website traffic is increasing, and the company is concerned about a potential increase in cost. Which solution will MOST reduce costs?
A
Create an Amazon CloudFront distribution to cache static files at edge locations
B
Create an Amazon ElastiCache cluster. Connect the ALB to the ElastiCache cluster to serve cached files
C
Create an AWS WAF web ACL and associate it with the ALB. Add a rule to the web ACL to cache static files
D
Create a second ALB in an alternative AWS Region. Route user traffic to the closest Region to minimize data transfer costs