exam questions

Exam AWS Certified Solutions Architect - Professional SAP-C02 All Questions

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

Exam AWS Certified Solutions Architect - Professional SAP-C02 topic 1 question 10 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
Raj40
Highly Voted 2 years, 3 months ago
A & E https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/GeneratingCustomErrorResponses.html#custom-error-pages-procedure
upvoted 34 times
...
atirado
Highly Voted 6 months, 1 week ago
Selected Answer: AE
Option A - This option helps: Allows exposing custom error pages from a highly-available location Option B - This option requires a lot of set up Option C - This option might not work because modifying DNS will redirect all traffic publicly accessible webpage Option D - This option requires a lot of set up Option E - This option helps: Shows a custom error page when the error occurs
upvoted 9 times
...
teeee123
Most Recent 1 month, 1 week ago
Selected Answer: AE
Maybe A and E
upvoted 1 times
...
hoef03
5 months, 3 weeks ago
Selected Answer: AC
AC, beacuse for E to work, another s3 origin needs to be created, ( OAI when not static website ) , and a behaviour for the path routing to the error html.. Also unclear what the "DNS record motification" is made for.
upvoted 1 times
...
Parimal1983
6 months, 1 week ago
Selected Answer: AE
Custom error pages need to setup in different location then source (where web pages is hosted), configure CloudFront to use those custom error pages
upvoted 2 times
...
Sarutobi
6 months, 1 week ago
Selected Answer: AE
We need a combination, so A provides the error page; should we go with DNS health-check (C+A) or CloudFront (E+A)? In my case, I try to stick to a single service to do failover, and DNS is a great option, but it looks like, in this question, CloudFront is already present with the least-operational overhead.
upvoted 5 times
...
dev112233xx
6 months, 1 week ago
Selected Answer: AE
A&E are the correct answers imo
upvoted 1 times
...
amministrazione
7 months ago
A. Create an Amazon S3 bucket. Configure the S3 bucket to host a static webpage. Upload the custom error pages to Amazon S3. E. Add a custom error response by configuring a CloudFront custom error page. Modify DNS records to point to a publicly accessible web page.
upvoted 1 times
...
agatim
9 months ago
Selected Answer: AC
Option A - Allow us to expose a error page with low effort. Option B - Requires a lot of set up Option C - Allow us to redirect all the traffic to our error page exposed by S3 in case of errors. Option D - requires a lot of set up Option E - Custom Error Pages in CloudFront refers to the same Origin (in our case the Load Balancer) so it does not work with all the other answers. So correct answer are A and C
upvoted 2 times
...
roger8t8
9 months, 2 weeks ago
A & E https://aws.amazon.com/blogs/aws/custom-error-pages-and-responses-for-amazon-cloudfront/
upvoted 1 times
...
azhar3128
9 months, 4 weeks ago
I think it is wordplay. Option A says to upload "error pages", which will be an overhead for creating a page for each error and unnecessary. that's where C & E are correct
upvoted 4 times
shmoeee
2 months, 3 weeks ago
my exact thoughts. Why not use already available pages
upvoted 1 times
...
...
iulian0585
10 months, 1 week ago
Selected Answer: AE
A and E according to AWS documentation: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/GeneratingCustomErrorResponses.html#custom-error-pages-procedur
upvoted 1 times
...
kz407
1 year ago
Selected Answer: AE
The only problem with E is that it say "Modify DNS records to point to a publicly accessible web page" at the end. It doesn't make sense to begin with. And configuring custom error responses in CF has nothing to do with DNS anyway.
upvoted 6 times
...
MoT0ne
1 year ago
I think why is not A is because of this sentence - "The webpage returns successfully when a solutions architect reloads the webpage immediately after the error occurs." - so let's not think it as requiring a maintenance page
upvoted 1 times
...
abeb
1 year, 4 months ago
should be AE
upvoted 2 times
...
severlight
1 year, 4 months ago
Selected Answer: AE
I haven't found out why should we use C.
upvoted 3 times
...
bur4an
1 year, 7 months ago
Selected Answer: AE
Agree with Raj40
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago