SAP-C02 学习助手

SAP-C02 第 10 题

Route 53 Lambda CloudFront S3 EC2 RDS CloudWatch Config

题目

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

中文翻译:
一家零售公司正在 AWS 上运行其电子商务应用程序。该应用程序在应用程序负载均衡器 (ALB) 后面的 Amazon EC2 实例上运行。该公司使用 Amazon RDS 数据库实例作为数据库后端。 Amazon CloudFront 配置有一个指向 ALB 的源。静态内容被缓存。 Amazon Route 53 用于托管所有公共区域。更新应用程序后,ALB 偶尔会返回 502 状态代码(错误网关)错误。根本原因是返回到 ALB 的 HTTP 标头格式错误。当解决方案架构师在错误发生后立即重新加载网页时,网页会成功返回。当公司正在解决该问题时,解决方案架构师需要向访问者提供自定义错误页面,而不是标准 ALB 错误页面。哪种步骤组合能够以最少的运营开销满足这一要求? (选择两个。)

选项

A. Create an Amazon S3 bucket. Configure the S3 bucket to host a static webpage. Upload the custom error pages to Amazon S3.

中文翻译:
创建 Amazon S3 存储桶。配置 S3 存储桶以托管静态网页。将自定义错误页面上传到 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.

中文翻译:
如果 ALB 运行状况检查响应 Target.FailedHealthChecks 大于 0,则创建 Amazon CloudWatch 警报以调用 AWS Lambda 函数。配置 Lambda 函数以修改 ALB 上的转发规则以指向可公开访问的 Web 服务器。

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.

中文翻译:
通过添加运行状况检查来修改现有 Amazon Route 53 记录。配置健康检查失败时的回退目标。修改 DNS 记录以指向可公开访问的网页。

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.

中文翻译:
如果 ALB 运行状况检查响应 Elb.InternalError 大于 0,则创建 Amazon CloudWatch 警报以调用 AWS Lambda 函数。配置 Lambda 函数以修改 ALB 上的转发规则以指向公共可访问的 Web 服务器。

E. Add a custom error response by configuring a CloudFront custom error page. Modify DNS records to point to a publicly accessible web page.

中文翻译:
通过配置 CloudFront 自定义错误页面来添加自定义错误响应。修改 DNS 记录以指向可公开访问的网页。

答案

AE

解析

正确答案:AE 解析: 本题应选择 AE。 正确选项: A. 创建 Amazon S3 存储桶。配置 S3 存储桶以托管静态网页。将自定义错误页面上传到 Amazon S3。 E. 通过配置 CloudFront 自定义错误页面来添加自定义错误响应。修改 DNS 记录以指向可公开访问的网页。 选择理由: 该选项最直接地满足题干中的关键约束。做 SAP-C02 题目时,需要同时对照题干里的限定词,例如最高性能、最低运维开销、成本效益、可靠...

登录后查看完整解析