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?