DOP-C02 practice question 30 of 35
A company's DevOps engineer uses AWS Systems Manager to perform maintenance tasks during maintenance windows. The company has a few Amazon EC2…
Full set: 449 questionsAWS Health provides real-time events and information related to your AWS infrastructure. It can be integrated with Amazon EventBridge to act upon the health events automatically. If the maintenance notification from AWS Health indicates that an EC2 instance requires a restart, you can set up an EventBridge rule to respond to such events. In this case, the target of this rule would be a Lambda function that would trigger a Systems Manager automation to restart the EC2 instance during a maintenance window. Remember, AWS Health is the source of the events (not EC2 or Systems Manager), and AWS Lambda can be used to execute complex remediation tasks, such as scheduling maintenance tasks via Systems Manager. The following are the steps involved in configuring 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 newly created AWS Lambda function that registers an automation task to restart the EC2 instance during a maintenance window. The AWS Lambda function will be triggered by the event from AWS Health. The function will then register an automation task to restart the EC2 instance during the next maintenance window.
Keep practicing
Take the free DOP-C02 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other DOP-C02 practice questions
- Question 1A company has enabled all features for its organization in AWS Organizations. The organiz…
- Question 2A company is developing a web application's infrastructure using AWS CloudFormation The d…
- Question 3A company uses Amazon Redshift as its data warehouse solution. The company wants to creat…
- Question 4A company recently deployed its web application on AWS. The company is preparing for a la…
- Question 5A company is migrating from its on-premises data center to AWS. The company currently use…
- Question 6A security team is concerned that a developer can unintentionally attach an Elastic IP ad…
