List of questions
Related questions
Question 542 - DOP-C01 discussion
A company uses Amazon EC2 instances to host applications for its customers. Recently, the company’s support team has received EC2 scheduled maintenance notifications regarding its EC2 instances. The support team wants to automatically perform a restart of any EC2 instances with a scheduled maintenance event before the scheduled date. Which solution will meet these requirements while requiring the MINIMUM amount of development effort?
A.
Create an AWS Systems Manager maintenance window with a Systems Manager Automation tast that uses the RebootInstnaces EC2 API operation to restart the affected EC2 instances. Attach the EC2 instances to the maintenance window. Configure AWS Health to invoke the maintenance window whenever a scheduledChange event for Amazon EC2 is generated.
B.
Create an Amazon CloudWatch alarm for the StatusCheckFailed metric of each EC2 instance. Configure the CloudWatch alarm to recover any affected EC2 instance.
C.
Create an Amazon EventBridge (Amazon CloudWatch Events) rule that matches scheduledChange events for Amazon EC2 from AWS Health. Configure the rule to run the AWS-RestartEC2Instance AWS Systems Manager Automation runbook.
D.
Create an Amazon EventBridge (Amazon CloudWatch Events) rule that matches scheduledChange events for Amazon EC2 from AWS Health. Create an AWS Lambda function that uses the EC2 API to list all EC2 instances with scheduled events and then uses the RebootInstances EC2 API operation to restart the affected EC2 instances. Configure the EventBridge (CloudWatch Events) rule to invoke the Lambda function.
Your answer:
0 comments
Sorted by
Leave a comment first