Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
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 (?) , you can switch to a simple comment.
Switch to a voting comment New
Raj40
Highly Voted 1 year, 11 months ago
A & E https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/GeneratingCustomErrorResponses.html#custom-error-pages-procedure
upvoted 33 times
...
atirado
Highly Voted 1 month, 2 weeks 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
...
hoef03
Most Recent 4 weeks, 1 day 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
1 month, 2 weeks 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
1 month, 2 weeks 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
1 month, 2 weeks ago
Selected Answer: AE
A&E are the correct answers imo
upvoted 1 times
...
amministrazione
2 months, 1 week 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
4 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 1 times
...
roger8t8
4 months, 3 weeks ago
A & E https://aws.amazon.com/blogs/aws/custom-error-pages-and-responses-for-amazon-cloudfront/
upvoted 1 times
...
azhar3128
5 months 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 3 times
...
iulian0585
5 months, 2 weeks 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
7 months, 3 weeks 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
7 months, 4 weeks 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
11 months, 2 weeks ago
should be AE
upvoted 2 times
...
severlight
12 months ago
Selected Answer: AE
I haven't found out why should we use C.
upvoted 2 times
...
bur4an
1 year, 2 months ago
Selected Answer: AE
Agree with Raj40
upvoted 3 times
...
dimitry_khan_arc
1 year, 2 months ago
Selected Answer: CE
C & E. B & D are incorrect. Managing lambda is overhead. A is incorrect. Static page from S3 need to retrieve with custom code.
upvoted 2 times
jainparag1
11 months, 2 weeks ago
Do you have any further reference to your explanation of custom code requirement to fetch the error page from S3?
upvoted 1 times
...
_Jassybanga_
9 months ago
not really , you just need to static url provided by aws when you use the bucket for static webpage and embed it anywhere to reach to the static website
upvoted 1 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 ...