A user wants to invoke an AWS Lambda function when an Amazon EC2 instance enters the “stopping” state.
Which AWS service is appropriate for this use case?
A user wants to invoke an AWS Lambda function when an Amazon EC2 instance enters the “stopping” state.
Which AWS service is appropriate for this use case?
The appropriate service to invoke an AWS Lambda function when an Amazon EC2 instance enters the 'stopping' state is Amazon EventBridge. Amazon EventBridge enables you to detect changes in the state of AWS services and trigger actions, such as executing a Lambda function, based on those events. It is designed specifically for this type of event-driven architecture, making it the most suitable choice for the given use case.
A is correct please help with discussion on 503 ~ 511
answer A is correct. https://repost.aws/knowledge-center/start-stop-lambda-eventbridge