How should the DevOps engineer configure the EventBridge rule to meet these requirements?
Configure an event source of AWS Health, a service of EC2. and an event type that indicates instance maintenance. Target a Systems Manager document to restart the EC2 instance.
Configure an event source of Systems Manager and an event type that indicates a maintenance window. Target a Systems Manager document to restart the EC2 instance.
Configure an event source of AWS Health, a service of EC2, and an event type that indicates instance maintenance. Target a newly created AWS Lambda function that registers an automation task to restart the EC2 instance during a maintenance window.
Configure an event source of EC2 and an event type that indicates instance maintenance. Target a newly created AWS Lambda function that registers an automation task to restart the EC2 instance during a maintenance window.
Explanations:
AWS Health can trigger notifications for EC2 maintenance events. The event rule should target a Systems Manager document to restart the EC2 instance.
Systems Manager events do not trigger based on AWS Health notifications. Systems Manager maintenance windows are separate from AWS Health events.
While AWS Health can trigger EC2 maintenance events, targeting a Lambda function is unnecessary here. A Systems Manager document can directly restart EC2.
EC2 events do not directly relate to AWS Health notifications. AWS Health is the correct source for maintenance event notifications, not EC2.