
Ultimate access to all questions.
Deep dive into the quiz with AI chat providers.
We prepare a focused prompt with your quiz and certificate details so each AI can offer a more tailored, in-depth explanation.
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
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:
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.
Reduced Data Transfer Costs: CloudFront has lower data transfer out costs compared to EC2, especially for high-volume traffic.
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.