Q42 — AWS SAA-C03 Ch.14
Question 42 of 100 | ← Chapter 14
Q1042. A company hosts its main public web application in one AWS Region across multiple Availability Zones. The application uses an Amazon EC2 Auto Scaling group and an Application Load Balancer (ALB).A web development team needs a cost-optimized compute solution to improve the company ability to serve dynamic content globally to millions of customers.Which solution will meet these requirements?
- A. Create an Amazon CloudFront distribution. Configure the existing ALB as the origin. ✓
- B. Use Amazon Route 53 to serve traffic to the ALB and EC2 instances based on the geographic location of each customer.
- C. Create an Amazon S3 bucket with public read access enabled. Migrate the web application to the S3 bucket. Configure the S3 bucket for website hosting.
- D. Use AWS Direct Connect to directly serve content from the web application to the location of each customer.
Correct Answer: A. Create an Amazon CloudFront distribution. Configure the existing ALB as the origin.
Explanation
To improve the company's ability to serve dynamic content globally to millions of customers in a cost-optimized manner, the best solution is:A. Create an Amazon CloudFront distribution. Configure the existing ALB as the origin.Explanation:\1. Amazon CloudFront: - CloudFront is a content delivery network (CDN) that caches content at edge locations globally. By using CloudFront, you can serve dynamic content more quickly to users around the world, reducing latency and improving the overall user experience.\2. Cost Optimization: - CloudFront can help reduce the load on the origin (in this case, the ALB) by caching content closer to users, which can lead to lower data transfer costs and reduced usage of backend resources.\3. Dynamic Content: - CloudFront supports dynamic content delivery, allowing it to effectively work with an Application Load Balancer. It can route requests to the ALB for dynamic content while caching static content for faster retrieval.Evaluation of Other Options:B. Use Amazon Route 53 to serve traffic to the ALB and EC2 instances based on the geographic location of each customer: - While Route 53 can direct traffic based on geographic location, it does not cache content, which means it wouldn't reduce latency as effectively as CloudFront. It also does not provide the same performance benefits as a CDN.C. Create an Amazon S3 bucket with public read access enabled. Migrate the web application to the S3 bucket. Configure the S3 bucket for website hosting: - Migrating to S3 would only be suitable for static content and would not meet the requirements for serving dynamic content. Additionally, S3 does not provide the same level of capability for handling dynamic web applications as EC2 instances behind an ALB.D. Use AWS Direct Connect to directly serve content from the web application to the location of each customer: - AWS Direct Connect is primarily used for establishing a dedicated network connection between on-premises data centers and AWS. It is not a suitable solution for serving content to a global audience and does not provide the caching capabilities offered by CloudFront.Conclusion:Option A is the most effective solution for optimizing the delivery of dynamic content globally, leveraging CloudFront to enhance performance and reduce costs.