
Ultimate access to all questions.
A company operates a web application on AWS, utilizing Amazon S3 for static content storage and Amazon CloudFront for content delivery. The application's dynamic content is managed by an Application Load Balancer (ALB) directing traffic to EC2 instances within Auto Scaling groups. The application's domain is managed through Amazon Route 53. During peak usage, some users experience issues, with the ALB occasionally returning HTTP 503 errors. The company seeks a solution to immediately display a custom error page for these errors with minimal operational effort. Which option offers the most efficient solution?
A
Implement a Route 53 failover routing policy with a health check to monitor the ALB's status and redirect to a failover S3 bucket endpoint.
B
Establish a second CloudFront distribution and S3 static website for the custom error page, configuring a Route 53 failover routing policy with an active-passive setup between the distributions.
C
Set up a CloudFront origin group with two origins: the ALB as the primary and an S3 bucket configured for static websites as the secondary. Enable origin failover in the CloudFront distribution and update the S3 static website to include the custom error page.
D
Develop a CloudFront function to check each HTTP response code from the ALB. Create an S3 static website and upload the custom error page for failover. Modify the function to retrieve and serve the error page from the S3 bucket.