
Ultimate access to all questions.
A company operates an application on multiple Amazon EC2 instances that necessitates frequent restarts due to error messages indicating the need for a restart. These logs are sent to Amazon CloudWatch Logs, and an alarm triggers an Amazon SNS notification to an application engineer when numerous restart-related errors are detected. Currently, the engineer manually restarts the application upon receiving this notification. A DevOps engineer is tasked with automating this process without affecting the instances themselves. Which solution provides the most efficient operational approach to achieve this automation?
A
Configure an AWS Systems Manager Automation runbook that runs a script to restart the application on the instances. Configure the SNS topic to invoke the runbook.
B
Create an AWS Lambda function that restarts the application on the instances. Configure the Lambda function as an event destination of the SNS topic.
C
Configure an AWS Systems Manager Automation runbook that runs a script to restart the application on the instances. Create an AWS Lambda function to invoke the runbook. Configure the Lambda function as an event destination of the SNS topic.
D
Configure an AWS Systems Manager Automation runbook that runs a script to restart the application on the instances. Configure an Amazon EventBridge rule that reacts when the CloudWatch alarm enters ALARM state. Specify the runbook as a target of the rule.