exam questions

Exam AWS Certified Solutions Architect - Professional All Questions

View all questions & answers for the AWS Certified Solutions Architect - Professional exam

Exam AWS Certified Solutions Architect - Professional topic 1 question 831 discussion

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.)

  • A. Create an Amazon S3 bucket. Configure the S3 bucket to host a static webpage. Upload the custom error pages to Amazon S3.
  • B. Create an Amazon CloudWatch alarm to invoke an AWS Lambda function if the ALB health check response Target FailedHealthChecks is greater than 0. Configure the Lambda function to modify the forwarding rule at the ALB to point to a publicly accessible web server.
  • C. Modify the existing Amazon Route 53 records by adding health checks. Configure a fallback target if the health check fails. Modify DNS records to point to a publicly accessible webpage.
  • D. Create an Amazon CloudWatch alarm to invoke an AWS Lambda function if the ALB health check response Elb.InternalError is greater than 0. Configure the Lambda function to modify the forwarding rule at the ALB to point to a public accessible web server.
  • E. Add a custom error response by configuring a CloudFront custom error page. Modify DNS records to point to a publicly accessible web page.
Show Suggested Answer Hide Answer
Suggested Answer: AE 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Jonfernz
Highly Voted 2 years, 1 month ago
Selected Answer: AE
"Save your custom error pages in a location that is accessible to CloudFront. We recommend that you store them in an Amazon S3 bucket, and that you don’t store them in the same place as the rest of your website or application’s content. If you store the custom error pages on the same origin as your website or application, and the origin starts to return 5xx errors, CloudFront can’t get the custom error pages because the origin server is unavailable." https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/GeneratingCustomErrorResponses.html
upvoted 6 times
...
Chungies
Most Recent 4 months ago
A and C are the ones i will pick
upvoted 1 times
...
rsn
1 year, 4 months ago
Selected Answer: AC
Appears logical to me
upvoted 1 times
...
zWarez
1 year, 9 months ago
AE. CloudWatch cannot be used here since it's not repoint to error page in time.
upvoted 1 times
...
JohnPi
2 years, 1 month ago
Selected Answer: AB
AB ALB 502 means FailedHealthChecks DNS has a TTL and relies on the client's good behavior.
upvoted 1 times
JohnPi
2 years, 1 month ago
furthermore, "The webpage returns successfully when a solutions architect reloads the webpage immediately after the error occurs"
upvoted 1 times
...
Naj_64
2 years, 1 month ago
Not true. HTTP 502: Bad gateway -- https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-troubleshooting.html#http-502-issues
upvoted 1 times
JohnPi
2 years, 1 month ago
https://aws.amazon.com/premiumsupport/knowledge-center/elb-fix-failing-health-checks-alb/
upvoted 1 times
...
...
JohnPi
2 years, 1 month ago
AE is the answer
upvoted 1 times
...
...
gnic
2 years, 3 months ago
Selected Answer: AE
AE no brain
upvoted 1 times
...
rockc
2 years, 5 months ago
Selected Answer: AE
https://aws.amazon.com/blogs/aws/custom-error-pages-and-responses-for-amazon-cloudfront/
upvoted 1 times
...
[Removed]
2 years, 6 months ago
I think DE As in D you need a health-check and lambda mechanism to handle the incident https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/GeneratingCustomErrorResponses.html
upvoted 1 times
...
titleone
2 years, 6 months ago
AE C, there is not InternalError type error but InternalFailure. E, CloudFront provides the error page features exactly
upvoted 3 times
...
user0001
2 years, 7 months ago
A/C , you need it only on failure, E does not provide this option
upvoted 2 times
hfeng95
2 years, 6 months ago
Read the problem, you will see that they would like to have a customized error page while troubleshooting. A&E is correct in my opinion
upvoted 1 times
...
...
Bigbearcn
2 years, 7 months ago
AE. Custom error page for CF.
upvoted 2 times
...
shailurtm2001
2 years, 7 months ago
It's AE https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/GeneratingCustomErrorResponses.html
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...