QuestionQ99

VerifiedIncident and Event Response

An application runs on Amazon EC2 instances in an Auto Scaling group. During bootstrapping, the instances register their private IP addresses with a monitoring system. The monitoring system conducts frequent health checks by sending ping requests to those IP addresses and issues alerts when an instance is non-responsive.

The current deployment strategy replaces the existing EC2 instances with new instances. A DevOps Engineer has observed that the monitoring system generates false alarms during deployments and must stop those false alarms.

Which solution meets these requirements without changing the current deployment method?

Explanation

An EC2 Auto Scaling termination lifecycle hook pauses an instance before it is terminated and emits a lifecycle-action event to Amazon EventBridge. An EventBridge rule can invoke a Lambda function to remove the terminating instance’s private IP address from the monitoring system before termination continues, preventing health checks against a stale registration.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!