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.
A.
Create an Amazon CloudFront distribution to cache state 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
The problem with this question is that no sane AWS architect will chose any of these options and go for S3 caching. But given the choices, A is the only one which will solve the problem within reasonable cost.
Amazon CloudFront: CloudFront is a content delivery network (CDN) service that caches content at edge locations worldwide. By creating a CloudFront distribution, static content from the website can be cached at edge locations, reducing the load on the EC2 instances and improving the overall performance.
Caching Static Files: Since the website serves static content, caching these files at CloudFront edge locations can significantly reduce the number of requests forwarded to the EC2 instances. This helps to lower the overall cost by offloading traffic from the instances and reducing the data transfer costs.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
awsgeek75
10 months, 2 weeks agoGuru4Cloud
1 year, 3 months agoTariqKipkemei
1 year, 5 months agocloudenthusiast
1 year, 6 months agonosense
1 year, 6 months ago