Q4 — AWS DOP-C02 Ch.3
Question 4 of 100 | ← Chapter 3
A company’s DevOps engineer uses AWS Systems Manager to perform maintenance tasks during maintenance windows. The company has an Amazon EC2 instance that must be restarted upon receiving an AWS Health notification. The DevOps engineer needs to implement an automated solution to remediate these notifications. The DevOps engineer creates an Amazon EventBridge rule. How should the DevOps engineer configure the EventBridge rule to meet these requirements?
- A. Configure AWS Health as the event source, specifying EC2 as the service and events indicating instance maintenance. Use a Systems Manager document as the target to restart the EC2 instance. ✓
- B. Configure Systems Manager as the event source and events indicating maintenance windows. Use a Systems Manager document as the target to restart the EC2 instance.
- C. Configure AWS Health as the event source, EC2 as the service, and events indicating instance maintenance. Use a newly created AWS Lambda function as the target, which registers an automation task to restart the EC2 instance during the maintenance window.
- D. Configure EC2 as the event source and events indicating instance maintenance. Use a newly created AWS Lambda function as the target, which registers an automation task to restart the EC2 instance during the maintenance window.
Correct Answer: A. Configure AWS Health as the event source, specifying EC2 as the service and events indicating instance maintenance. Use a Systems Manager document as the target to restart the EC2 instance.
Explanation
The EventBridge rule must listen for AWS Health events to trigger Systems Manager for restarts. AWS Health serves as the event source, providing notifications about EC2 instance maintenance. A Systems Manager document can be directly invoked as the target to handle the restart—no Lambda intermediary is needed. Option A correctly specifies the event source, service, event type, and target. Option B incorrectly uses Systems Manager as the source; Options C and D introduce unnecessary Lambda functions. AWS documentation states that direct integration between EventBridge and AWS Health events enables automation such as executing SSM documents.