AWS Certified SysOps Administrator – Associate — Question 254
A company runs its applications on a large number of Amazon EC2 instances. A SysOps administrator must implement a solution to notify the operations team whenever an EC2 instance state changes.
What is the MOST operationally efficient solution that meets these requirements?
Answer options
- A. Create a script that captures instance state changes and publishes a notification to an Amazon Simple Notification Service (Amazon SNS) topic. Use AWS Systems Manager Run Command to run the script on all EC2 instances.
- B. Create an Amazon EventBridge event rule that captures EC2 instance state changes. Set an Amazon Simple Notification Service (Amazon SNS) topic as the target
- C. Create an Amazon EventBridge event rule that captures EC2 instance state changes. Set as the target an AWS Lambda function that publishes a notification to an Amazon Simple Notification Service (Amazon SNS) topic.
- D. Create an AWS Config custom rule that evaluates instance state changes with automatic remediation. Use the rule to invoke an AWS Lambda function that publishes a notification to an Amazon Simple Notification Service (Amazon SNS) topic.
Correct answer: B
Explanation
The most operationally efficient solution is option B because it directly uses Amazon EventBridge to capture EC2 instance state changes and sends notifications to an SNS topic without the need for custom scripts or additional functions. Options A and C involve unnecessary complexity by requiring scripts or Lambda functions, while option D introduces an additional layer of evaluation and remediation that is not needed for simple notifications.