nerdexam
Amazon

DOP-C02 · Question #34

A company has an application that runs on a fleet of Amazon EC2 instances. The application requires frequent restarts. The application logs contain error messages when a restart is required. The…

The correct answer is D. Configure an AWS Systems Manager Automation runbook that runs a script to restart the. This solution meets the requirements in the most operationally efficient manner by automating the application restart process on the instances without restarting them. When the CloudWatch alarm enters the ALARM state, the EventBridge rule is triggered, which in turn invokes the…

Submitted by helene.fr· Mar 6, 2026Incident & Event Response

Question

A company has an application that runs on a fleet of Amazon EC2 instances. The application requires frequent restarts. The application logs contain error messages when a restart is required. The application logs are published to a log group in Amazon CloudWatch Logs. An Amazon CloudWatch alarm notifies an application engineer through an Amazon Simple Notification Service (Amazon SNS) topic when the logs contain a large number of restart-related error messages. The application engineer manually restarts the application on the instances after the application engineer receives a notification from the SNS topic. A DevOps engineer needs to implement a solution to automate the application restart on the instances without restarting the instances. Which solution will meet these requirements in the MOST operationally efficient manner?

Options

  • AConfigure an AWS Systems Manager Automation runbook that runs a script to restart the
  • BCreate an AWS Lambda function that restarts the application on the instances. Configure the
  • CConfigure an AWS Systems Manager Automation runbook that runs a script to restart the
  • DConfigure an AWS Systems Manager Automation runbook that runs a script to restart the

How the community answered

(45 responses)
  • A
    13% (6)
  • B
    4% (2)
  • C
    7% (3)
  • D
    76% (34)

Explanation

This solution meets the requirements in the most operationally efficient manner by automating the application restart process on the instances without restarting them. When the CloudWatch alarm enters the ALARM state, the EventBridge rule is triggered, which in turn invokes the Systems Manager Automation runbook that contains the script to restart the application on the instances.

Topics

#CloudWatch Alarms#Systems Manager Automation#EC2 Restart#Automated Remediation

Community Discussion

No community discussion yet for this question.

Full DOP-C02 Practice