[Question #10] AWS Certified Solutions Architect - Professional SAP-C02 Actual Exam Questions




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.




-------------------------------------------------





소매업체가 AWS에서 전자상거래 애플리케이션을 운영하고 있습니다. 이 애플리케이션은 애플리케이션 로드 밸런서(ALB) 뒤의 Amazon EC2 인스턴스에서 실행됩니다. 이 회사는 Amazon RDS DB 인스턴스를 데이터베이스 백엔드로 사용합니다. Amazon CloudFront는 ALB를 가리키는 하나의 오리진으로 구성됩니다. 정적 콘텐츠는 캐시됩니다. 모든 퍼블릭 존(zone)은 Amazon Route 53을 사용하여 호스팅됩니다.
애플리케이션 업데이트 후 ALB에서 502 상태 코드(잘못된 게이트웨이) 오류가 발생하는 경우가 있습니다. 근본 원인은 잘못된 HTTP 헤더가 ALB로 반환되는 것입니다. 오류 발생 직후 솔루션 아키텍트가 웹페이지를 다시 로드하면 웹페이지가 정상적으로 반환됩니다.
회사가 문제를 해결하는 동안 솔루션 아키텍트는 방문자에게 표준 ALB 오류 페이지 대신 사용자 지정 오류 페이지를 제공해야 합니다.
운영 오버헤드를 최소화하면서 이 요구 사항을 충족하는 단계 조합은 무엇입니까? (두 가지 선택)

  • A. Amazon S3 버킷을 생성합니다. 정적 웹페이지를 호스팅하도록 S3 버킷을 구성합니다. 사용자 지정 오류 페이지를 Amazon S3에 업로드합니다.
  • B. ALB 상태 확인 응답 Target.FailedHealthChecks가 0보다 큰 경우 AWS Lambda 함수를 호출하는 Amazon CloudWatch 알람을 생성합니다. Lambda 함수를 구성하여 ALB의 전달 규칙을 수정하여 공개적으로 액세스 가능한 웹 서버를 가리킵니다.
  • C. 기존 Amazon Route 53 레코드에 상태 확인을 추가하여 수정합니다. 상태 확인 실패 시 대체 대상을 구성합니다. 공개적으로 접근 가능한 웹 페이지를 가리키도록 DNS 레코드를 수정합니다.
  • D. ALB 상태 확인 응답 Elb.InternalError가 0보다 큰 경우 AWS Lambda 함수를 호출하는 Amazon CloudWatch 알람을 생성합니다. Lambda 함수를 구성하여 ALB의 전달 규칙을 수정하여 공개적으로 액세스 가능한 웹 서버를 가리킵니다.
  • E. CloudFront 사용자 지정 오류 페이지를 구성하여 사용자 지정 오류 응답을 추가합니다. 공개적으로 액세스 가능한 웹 페이지를 가리키도록 DNS 레코드를 수정합니다.






Correct 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



https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/GeneratingCustomErrorResponses.html#custom-error-pages-procedure










댓글

이 블로그의 인기 게시물

[AWS] SCP, OU, Policy 사용하기 !!

[AWS] AWS Activate 스타트업 $1,000 지원 성공