Q8 — AWS SOA-C02 Ch.1
Question 8 of 100 | ← Chapter 1
A SysOps administrator needs to monitor a process that runs on Linux Amazon EC2 instances. If the process stops, the process must restart automatically. The Amazon CloudWatch agent is already installed on all the EC2 instances. Which solution will meet these requirements?
- A. Add a procstat monitoring configuration to the CloudWatch agent for the process. Create an Amazon EventBridge event rule that initiates an AWS Systems Manager Automation runbook to restart the process after the process stops.
- B. Add a StatsD monitoring configuration to the CloudWatch agent for the process. Create a CloudWatch alarm that initiates an AWS Systems Manager Automation runbook to restart the process after the process stops.
- C. Add a StatsD monitoring configuration to the CloudWatch agent for the process. Create an Amazon EventBridge event rule that initiates an AWS Systems Manager Automation runbook to restart the process after the process stops.
- D. Add a procstat monitoring configuration to the CloudWatch agent for the process. Create a CloudWatch alarm that initiates an AWS Systems Manager Automation runbook to restart the process after the process stops. ✓
Correct Answer: D. Add a procstat monitoring configuration to the CloudWatch agent for the process. Create a CloudWatch alarm that initiates an AWS Systems Manager Automation runbook to restart the process after the process stops.
Explanation
AWS服务中,CloudWatch Agent的procstat插件用于监控特定进程的状态,并将指标发送到CloudWatch。Amazon EventBridge可通过事件规则响应系统状态变化,如进程停止,并与AWS Systems Manager Automation集成以执行重启操作。选项中,procstat正确捕获进程数据,结合EventBridge的事件驱动机制实现自动化响应,无需中间警报环节。选项B、C涉及的StatsD用于自定义指标收集,与进程监控场景无关。选项D依赖CloudWatch Alarm触发动作,但题目明确要求使用EventBridge作为事件响应服务。正确配置符合答案A的描述。