SAP-C02 学习助手

SAP-C02 第 109 题

EC2 CloudWatch Config Systems Manager Auto Scaling

题目

A large company is running a popular web application. The application runs on several Amazon EC2 Linux instances in an Auto Scaling group in a private subnet. An Application Load Balancer is targeting the instances in the Auto Scaling group in the private subnet. AWS Systems Manager Session Manager is configured, and AWS Systems Manager Agent is running on all the EC2 instances. The company recently released a new version of the application. Some EC2 instances are now being marked as unhealthy and are being terminated. As a result, the application is running at reduced capacity. A solutions architect tries to determine the root cause by analyzing Amazon CloudWatch logs that are collected from the application, but the logs are inconclusive. How should the solutions architect gain access to an EC2 instance to troubleshoot the issue?

中文翻译:
一家大公司正在运行一个流行的 Web 应用程序。该应用程序在私有子网的 Auto Scaling 组中的多个 Amazon EC2 Linux 实例上运行。应用程序负载均衡器的目标是私有子网中 Auto Scaling 组中的实例。 AWS Systems Manager 会话管理器已配置,并且 AWS Systems Manager 代理正在所有 EC2 实例上运行。该公司最近发布了该应用程序的新版本。一些 EC2 实例现在被标记为不健康并正在终止。因此,应用程序的运行能力会降低。解决方案架构师尝试通过分析从应用程序收集的 Amazon CloudWatch 日志来确定根本原因,但这些日志并没有得出结论。解决方案架构师应如何访问 EC2 实例来解决问题?

选项

A. Suspend the Auto Scaling group’s HealthCheck scaling process. Use Session Manager to log in to an instance that is marked as unhealthy.

中文翻译:
暂停 Auto Scaling 组的 HealthCheck 扩展过程。使用会话管理器登录到标记为不正常的实例。

B. Enable EC2 instance termination protection. Use Session Manager to log in to an instance that is marked as unhealthy.

中文翻译:
启用 EC2 实例终止保护。使用会话管理器登录到标记为不正常的实例。

C. Set the termination policy to OldestInstance on the Auto Scaling group. Use Session Manager to log in to an instance that is marked an unhealthy.

中文翻译:
在 Auto Scaling 组上将终止策略设置为 OldestInstance。使用会话管理器登录到标记为不正常的实例。

D. Suspend the Auto Scaling group’s Terminate process. Use Session Manager to log in to an instance that is marked as unhealthy.

中文翻译:
暂停 Auto Scaling 组的终止进程。使用会话管理器登录到标记为不正常的实例。

答案

D

解析

正确答案:D 解析: 本题应选择 D。 正确选项: D. 暂停 Auto Scaling 组的终止进程。使用会话管理器登录到标记为不正常的实例。 选择理由: 该选项最直接地满足题干中的关键约束。做 SAP-C02 题目时,需要同时对照题干里的限定词,例如最高性能、最低运维开销、成本效益、可靠性、可扩展性、安全性、RTO/RPO、合规要求等。本题相关考点主要包括:EC2、CloudWatch、Config、Systems Manager、...

登录后查看完整解析