
Answer-first summary for fast verification
Answer: 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.
Option C is the most operationally efficient solution because it leverages AWS Systems Manager Automation runbook to run a script that restarts the application on the instances. Additionally, it involves creating an AWS Lambda function to invoke the runbook and configuring the Lambda function as an event destination of the SNS topic. This approach ensures that the application restart process is fully automated and reliable without human intervention, utilizing the combined capabilities of AWS Lambda and Systems Manager.
Author: LeetQuiz Editorial Team
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.
No comments yet.