Q1Design Cost-Optimized Architectures
A company runs a website on Amazon EC2 instances behind an Application Load Balancer (ALB). The website delivers static content. Traffic to the website is increasing. The company wants to reduce the website hosting costs as much as possible. Which solution will meet these requirements?
← → navigate · a answer
Community votes
Discussion · 12
A 9
Answer A
Based on https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/getting-started-secure-static-website-cloudformation-template.html
Amazon CloudFront:
Uses the durable storage of Amazon Simple Storage Service (Amazon S3) – This solution creates an Amazon S3 bucket to host your static website’s content. To update your website, just upload your new files to the S3 bucket.
B 3
S3 for static contents, and ElastiCache for traffic increasing. No need for cloudfront cuz there is no need for global deliver for the website
A 3
A. Move the website to an Amazon S3 bucket. Configure an Amazon CloudFront distribution for the S3 bucket.
A 3
static content -> S3
A 2
Why??? Guys, you'll fail the others. Don't troll or believe everything chatgpt says... 😕
The question indicates "The website serves static content", why would you use elasticache for it? It may work, but it'll take a helluva effort.
S3 and CloudFront is straightforward and simple. Not only that, it also works great for static content. It's AWS's cdn. It can also serve dynamic content, but that's out of scope for this question.
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/getting-started-secure-static-website-cloudformation-template.html
2
i changed my answer to A because elasticache is only for dynamic content but question only requires static content
A 1
I don't think anyone has mentioned it, but cloudfront helps reduce costs. If you want to use ElastiCache, it is possible but incredibly difficult, the question asks to reduce costs and cloudfront is cheaper than ElastiCache.
B 1
website serves static content So we need to ElastiCache when traffic increases , no need for cloudfront
A 1
A. but questions should specify it is static or dynamic website
1
" customers often complement S3 with an in-memory cache, such as Amazon ElastiCache for Redis, to reduce the S3 retrieval cost and to improve performance." --https://aws.amazon.com/blogs/storage/turbocharge-amazon-s3-with-amazon-elasticache-for-redis/
A 1
A vs B -> A. Because Elsticache is for DB, not for S3.
B 1
S3 bucket is correct, so it's between A or B.
B because cache to handle when traffic increase.