DOP-C02 exam dumps

DOP-C02 practice question 318 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 318

Select 3

Your organization is managing a fleet of EC2 instances running a web application. The fleet is configured to scale automatically based on traffic demand. Recently, your team has observed that some instances in the fleet are frequently failing health checks and being replaced, which is causing service disruptions. You need to implement a solution to diagnose and resolve issues on the failing instances before they are terminated. Which combination of actions can help you achieve this?

  1. A

    Use AWS Systems Manager Run Command to execute diagnostic scripts on instances before termination.

  2. B

    Enable EC2 Instance Termination Protection for the Auto Scaling group to prevent replacement of unhealthy instances.

  3. C

    Use AWS Systems Manager Automation to run pre-defined remediation workflows on unhealthy instances.

  4. D

    Configure an Auto Scaling lifecycle hook to pause instance termination and invoke AWS Systems Manager for troubleshooting.

  5. E

    Modify the Auto Scaling health check grace period to allow more time for diagnostic checks before terminating instances.

Show answer and explanation

Correct answers: A, C, D

Explanation

To effectively diagnose and resolve issues on unhealthy instances in an Auto Scaling group, you can use AWS Systems Manager tools such as Run Command and Automation for diagnostics and remediation. Additionally, lifecycle hooks allow you to pause the termination process, providing time to troubleshoot. These actions help reduce service disruptions by addressing the root cause of the instance failures before replacement.

  • A. Correct.

    Correct. AWS Systems Manager Run Command allows you to remotely execute diagnostic scripts on EC2 instances, enabling you to gather insights and troubleshoot issues before termination.

  • B. Incorrect.

    Incorrect. Enabling EC2 Instance Termination Protection at the Auto Scaling group level is not a valid option. Termination protection is designed for individual instances, not for managing Auto Scaling behavior.

  • C. Correct.

    Correct. AWS Systems Manager Automation can be used to define and execute remediation workflows, making it a powerful tool for addressing issues on failing instances.

  • D. Correct.

    Correct. Configuring an Auto Scaling lifecycle hook enables you to pause the termination process, giving you time to invoke AWS Systems Manager for troubleshooting before the instance is replaced.

  • E. Incorrect.

    Incorrect. Modifying the health check grace period delays health evaluations but does not provide a mechanism for diagnosing or resolving issues on unhealthy instances.

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