SAP-C02 · Question #703
SAP-C02 Question #703: Real Exam Question with Answer & Explanation
The correct answer is A: Create an Amazon S3 bucket. Configure the S3 bucket to host a static webpage. Upload the. https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/GeneratingCustomError Responses.html#custom-error-pages-procedure
Question
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.)
Options
- ACreate an Amazon S3 bucket. Configure the S3 bucket to host a static webpage. Upload the
- BCreate an Amazon CloudWatch alarm to invoke an AWS Lambda function if the ALB health check
- CModify the existing Amazon Route 53 records by adding health checks. Configure a fallback
- DCreate an Amazon CloudWatch alarm to invoke an AWS Lambda function if the ALB health check
- EAdd a custom error response by configuring a CloudFront custom error page. Modify DNS
Explanation
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/GeneratingCustomError Responses.html#custom-error-pages-procedure
Community Discussion
No community discussion yet for this question.