
Explanation:
Amazon EventBridge (formerly CloudWatch Events) natively monitors EC2 instance state changes. Setting up a rule to match these events and selecting an SNS topic as the target is the most efficient and serverless way to handle notifications. While option C would also work, it adds the unnecessary complexity of a Lambda function, as SNS can be targeted directly by EventBridge. Option A is inefficient as it requires managing scripts on instances, and option D is overly complex for a simple notification requirement.
Ultimate access to all questions.
No comments yet.
Question 5. 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?
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.
E
None
F
None