
Ultimate access to all questions.
A DevOps engineer at a company uses AWS Systems Manager for maintenance tasks during specified windows. The company has several Amazon EC2 instances that need to be restarted following notifications from AWS Health. The engineer must set up an automated solution to address these notifications by creating an Amazon EventBridge rule. What configuration should the engineer use for the EventBridge rule to ensure the EC2 instances are restarted as required?
A
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.
B
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.
C
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.
D
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.
Explanation:
The correct answer is A. This option is the most suitable as it configures AWS Health as the event source, which will capture notifications related to EC2 instances. Targeting a Systems Manager document to restart the EC2 instance takes advantage of Systems Manager's capabilities for automating tasks like instance restarts. Options B, C, and D either focus on unrelated event sources or introduce unnecessary complexity with AWS Lambda functions. Therefore, configuring the event source as AWS Health with an event type indicating instance maintenance and targeting a Systems Manager document is the appropriate solution.