DOP-C02 exam dumps

DOP-C02 practice question 279 of 411

AWS Certified DevOps Engineer - Professional. Professional level, Amazon Web Services. Free question with the correct answer and a full explanation.

DOP-C02 Question 279

Select 2

A company has a critical web application running on Amazon EC2 instances behind an Application Load Balancer. The company has a requirement to automatically recover failed EC2 instances while ensuring that the operations team is notified about such events. As a DevOps Engineer, which combination of actions should you take to meet this requirement?

  1. A

    Create a CloudWatch alarm that monitors the EC2 instance status and triggers a recovery action when the instance becomes impaired.

  2. B

    Configure the CloudWatch alarm to send a notification to an Amazon SNS topic when it is triggered.

  3. C

    Set up an EC2 Auto Scaling group with the minimum, maximum, and desired instance count set to 1.

  4. D

    Use an AWS Lambda function to periodically check the health of the EC2 instance and restart it if it becomes unhealthy.

  5. E

    Enable detailed monitoring for the EC2 instance to automatically recover it upon failure.

Show answer and explanation

Correct answers: A, B

Explanation

To meet the requirement of automatically recovering EC2 instances and notifying the operations team, you should use a CloudWatch alarm to monitor instance health and configure it to take a recovery action when the instance becomes impaired. Additionally, the alarm should be set up to publish notifications to an Amazon SNS topic, ensuring that the operations team is alerted about the event. This approach leverages native AWS services to provide a robust and automated solution.

  • A. Correct.

    This is correct. CloudWatch alarms can monitor the status of EC2 instances and trigger an automatic recovery action if the instance becomes impaired.

  • B. Correct.

    This is correct. Configuring the CloudWatch alarm to send notifications to an Amazon SNS topic ensures that the operations team is notified when the alarm is triggered.

  • C. Incorrect.

    This is incorrect. While an Auto Scaling group can help maintain the desired number of instances, it is not necessary in this case as the requirement is to recover the same instance, not to replace it.

  • D. Incorrect.

    This is incorrect. Using a Lambda function to monitor and restart EC2 instances is not a recommended or native AWS solution for this scenario. CloudWatch alarms with automatic recovery are a more appropriate choice.

  • E. Incorrect.

    This is incorrect. Enabling detailed monitoring provides more granular metrics but does not automatically recover instances upon failure.

Timed practice exam

Take a DOP-C02 practice test under exam conditions

75 questions in 180 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam