AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 147

A DevOps engineer notices that all Amazon EC2 instances running behind an Application Load Balancer in an Auto Scaling group are failing to respond to user requests. The EC2 instances are also failing target group HTTP health checks.

Upon inspection, the engineer notices the application process was not running in any EC2 instances. There are a significant number of out of memory messages in the system logs. The engineer needs to improve the resilience of the application to cope with a potential application memory leak. Monitoring and notifications should be enabled to alert when there is an issue.

Which combination of actions will meet these requirements? (Choose two.)

Answer options

Correct answer: A, E

Explanation

Correct answers A and E are appropriate as they focus on replacing failing instances and monitoring memory usage to prevent outages. Option A ensures that unhealthy instances are replaced, while option E sets up memory monitoring and alerts. Options B and C do not address the underlying memory issue, and option D does not utilize the CloudWatch agent, which provides more detailed memory metrics.