AWS Certified Solutions Architect – Associate (SAA-C02) — Question 256
A company serves a multilingual website from a fleet of Amazon EC2 instances behind an Application Load Balancer (ALB). This architecture is currently running in the us-west-1 Region but is exhibiting high request latency for users located in other parts of the world.
The website needs to serve requests quickly and efficiently regardless of a user's location. However, the company does not want to recreate the existing architecture across multiple Regions.
How should a solutions architect accomplish this?
Answer options
- A. Replace the existing architecture with a website served from an Amazon S3 bucket. Configure an Amazon CloudFront distribution with the S3 bucket as the origin.
- B. Configure an Amazon CloudFront distribution with the ALB as the origin. Set the cache behavior settings to only cache based on the Accept-Language request header.
- C. Set up Amazon API Gateway with the ALB as an integration. Configure API Gateway to use an HTTP integration type. Set up an API Gateway stage to enable the API cache.
- D. Launch an EC2 instance in each additional Region and configure NGINX to act as a cache server for that Region. Put all the instances plus the ALB behind an Amazon Route 53 record set with a geolocation routing policy.
Correct answer: B
Explanation
The correct answer is B because configuring an Amazon CloudFront distribution with the ALB as the origin allows for content caching at edge locations, reducing latency for users globally. Option A is incorrect as switching to S3 would not provide the dynamic content necessary for a multilingual site. Option C does not utilize CloudFront, which is crucial for reducing latency globally. Option D involves unnecessary complexity and additional costs by launching EC2 instances in multiple Regions.