AWS Certified Solutions Architect – Professional (SAP-C02) — Question 9

A retail company is operating its ecommerce application on AWS. The application runs on Amazon EC2 instances behind an Application Load Balancer (ALB). The company uses an Amazon RDS DB instance as the database backend. Amazon CloudFront is configured with one origin that points to the ALB. Static content is cached. Amazon Route 53 is used to host all public zones.
After an update of the application, the ALB occasionally returns a 502 status code (Bad Gateway) error. The root cause is malformed HTTP headers that are returned to the ALB. The webpage returns successfully when a solutions architect reloads the webpage immediately after the error occurs.
While the company is working on the problem, the solutions architect needs to provide a custom error page instead of the standard ALB error page to visitors.
Which combination of steps will meet this requirement with the LEAST amount of operational overhead? (Choose two.)

Answer options

Correct answer: A, E

Explanation

Option A is correct because creating an S3 bucket for static website hosting is a simple and low-overhead solution for serving custom error pages. Option E is also correct as it allows for a CloudFront custom error response, which is efficient in managing error pages without changing backend configurations. The other options involve more complex setups and operational overhead, such as modifying health checks or using Lambda functions, which are unnecessary for simply providing custom error pages.