nerdexam
Amazon

SOA-C02 · Question #356

An application runs on Amazon EC2 instances in an Auto Scaling group. Following the deployment of a new feature on the EC2 instances, some instances were marked as unhealthy and then replaced by the…

The correct answer is C. Add a lifecycle hook to the Auto Scaling group to invoke the Lambda function through Amazon. https://docs.aws.amazon.com/autoscaling/ec2/userguide/lifecycle-hooks.html

Submitted by skyler.x· Mar 30, 2026Monitoring, Logging, and Remediation

Question

An application runs on Amazon EC2 instances in an Auto Scaling group. Following the deployment of a new feature on the EC2 instances, some instances were marked as unhealthy and then replaced by the Auto Scaling group. The EC2 instances terminated before a SysOps administrator could determine the cause of the health status changes. To troubleshoot this issue, the SysOps administrator wants to ensure that an AWS Lambda function is invoked in this situation. How should the SysOps administrator meet these requirements?

Options

  • AActivate the instance scale-in protection setting for the Auto Scaling group.
  • BActivate the instance scale-in protection setting for the Auto Scaling group.
  • CAdd a lifecycle hook to the Auto Scaling group to invoke the Lambda function through Amazon
  • DAdd a lifecycle hook to the Auto Scaling group to invoke the Lambda function through Amazon

How the community answered

(49 responses)
  • A
    14% (7)
  • B
    4% (2)
  • C
    76% (37)
  • D
    6% (3)

Explanation

https://docs.aws.amazon.com/autoscaling/ec2/userguide/lifecycle-hooks.html

Topics

#Auto Scaling lifecycle hooks#Lambda invocation#instance termination#EventBridge

Community Discussion

No community discussion yet for this question.

Full SOA-C02 Practice