SAP-C02 学习助手

SAP-C02 第 190 题

Route 53 CloudFront S3 EC2 EBS Config Auto Scaling

题目

A company runs a web application on AWS. The web application delivers static content from an Amazon S3 bucket that is behind an Amazon CloudFront distribution. The application serves dynamic content by using an Application Load Balancer (ALB) that distributes requests to a fleet of Amazon EC2 instances in Auto Scaling groups. The application uses a domain name setup in Amazon Route 53. Some users reported occasional issues when the users attempted to access the website during peak hours. An operations team found that the ALB sometimes returned HTTP 503 Service Unavailable errors. The company wants to display a custom error message page when these errors occur. The page should be displayed immediately for this error code. Which solution will meet these requirements with the LEAST operational overhead?

中文翻译:
一家公司在 AWS 上运行 Web 应用程序。 Web 应用程序从 Amazon CloudFront 分配后面的 Amazon S3 存储桶传送静态内容。该应用程序通过使用应用程序负载均衡器 (ALB) 提供动态内容,该负载均衡器将请求分发到 Auto Scaling 组中的一组 Amazon EC2 实例。该应用程序使用 Amazon Route 53 中的域名设置。一些用户报告在高峰时段尝试访问该网站时偶尔会出现问题。运营团队发现 ALB 有时会返回 HTTP 503 服务不可用错误。该公司希望在发生这些错误时显示自定义错误消息页面。应立即显示此错误代码的页面。哪种解决方案能够以最少的运营开销满足这些要求?

选项

A. Set up a Route 53 failover routing policy. Configure a health check to determine the status of the ALB endpoint and to fail over to the failover S3 bucket endpoint.

中文翻译:
设置 Route 53 故障转移路由策略。配置运行状况检查以确定 ALB 端点的状态并故障转移到故障转移 S3 存储桶端点。

B. Create a second CloudFront distribution and an S3 static website to host the custom error page. Set up a Route 53 failover routing policy. Use an active-passive configuration between the two distributions.

中文翻译:
创建第二个 CloudFront 分配和一个 S3 静态网站来托管自定义错误页面。设置 Route 53 故障转移路由策略。在两个发行版之间使用主动-被动配置。

C. Create a CloudFront origin group that has two origins. Set the ALB endpoint as the primary origin. For the secondary origin, set an S3 bucket that is configured to host a static website Set up origin failover for the CloudFront distribution. Update the S3 static website to incorporate the custom error page.

中文翻译:
创建具有两个源的 CloudFront 源组。将 ALB 端点设置为主要原点。对于辅助源,设置配置为托管静态网站的 S3 存储桶 为 CloudFront 分配设置源故障转移。更新 S3 静态网站以合并自定义错误页面。

D. Create a CloudFront function that validates each HTTP response code that the ALB returns. Create an S3 static website in an S3 bucket. Upload the custom error page to the S3 bucket as a failover. Update the function to read the S3 bucket and to serve the error page to the end users.

中文翻译:
创建一个 CloudFront 函数来验证 ALB 返回的每个 HTTP 响应代码。在 S3 存储桶中创建 S3 静态网站。将自定义错误页面上传到 S3 存储桶作为故障转移。更新函数以读取 S3 存储桶并向最终用户提供错误页面。

答案

C

解析

正确答案:C 解析: 本题应选择 C。 正确选项: C. 创建具有两个源的 CloudFront 源组。将 ALB 端点设置为主要原点。对于辅助源,设置配置为托管静态网站的 S3 存储桶 为 CloudFront 分配设置源故障转移。更新 S3 静态网站以合并自定义错误页面。 选择理由: 该选项最直接地满足题干中的关键约束。做 SAP-C02 题目时,需要同时对照题干里的限定词,例如最高性能、最低运维开销、成本效益、可靠性、可扩展性、安...

登录后查看完整解析