SAP-C02 学习助手

SAP-C02 第 496 题

S3 EC2 Auto Scaling

题目

A company hosts an application that uses several Amazon EC2 instances in an Auto Scaling group behind an Application Load Balancer (ALB). During the initial startup of the EC2 instances, the EC2 instances run user data scripts to download critical content for the application from an Amazon S3 bucket. The EC2 instances are launching correctly. However, after a period of time, the EC2 instances are terminated with the following error message: “An instance was taken out of service in response to an ELB system health check failure.” EC2 instances continue to launch and be terminated because of Auto Scaling events in an endless loop. The only recent change to the deployment is that the company added a large amount of critical content to the S3 bucket. The company does not want to alter the user data scripts in production. What should a solutions architect do so that the production environment can deploy successfully?

中文翻译:
一家公司托管一个应用程序,该应用程序使用应用程序负载均衡器 (ALB) 后面的 Auto Scaling 组中的多个 Amazon EC2 实例。在 EC2 实例初始启动期间,EC2 实例运行用户数据脚本以从 Amazon S3 存储桶下载应用程序的关键内容。 EC2 实例正在正确启动。但是,一段时间后,EC2 实例将终止,并显示以下错误消息:“实例因 ELB 系统运行状况检查失败而停止服务。”由于 Auto Scaling 事件无限循环,EC2 实例不断启动和终止。最近部署的唯一变化是该公司向 S3 存储桶添加了大量关键内容。该公司不想在生产中更改用户数据脚本。解决方案架构师应该怎样做才能成功部署生产环境?

选项

A. Increase the size of the EC2 instances.

中文翻译:
增加 EC2 实例的大小。

B. Increase the health check timeout for the ALB.

中文翻译:
增加 ALB 的运行状况检查超时。

C. Change the health check path for the ALB.

中文翻译:
更改 ALB 的健康检查路径。

D. Increase the health check grace period for the Auto Scaling group.

中文翻译:
增加 Auto Scaling 组的运行状况检查宽限期。

答案

D

解析

正确答案:D 解析: 本题应选择 D。 正确选项: D. 增加 Auto Scaling 组的运行状况检查宽限期。 选择理由: 该选项最直接地满足题干中的关键约束。做 SAP-C02 题目时,需要同时对照题干里的限定词,例如最高性能、最低运维开销、成本效益、可靠性、可扩展性、安全性、RTO/RPO、合规要求等。本题相关考点主要包括:S3、EC2、Auto Scaling。 排除思路: A、B、C 通常会在协议或服务适配、单点故障、跨区域...

登录后查看完整解析