AWS SAA-C03 · Question 25 · Domain 2.3: Decoupling
An application needs to react to state changes in Amazon EC2 instances (e.g., when an instance goes from 'pending' to 'running'). When this happens, a Lambda function must be triggered. What is the MOST decoupled way to achieve this?
Answer options:
Write a script on the EC2 instance to call the Lambda function on startup.
Use Amazon EventBridge to capture the EC2 state change event.
Use AWS CloudTrail to trigger an SNS topic.
Poll the EC2 API every minute using a scheduled Lambda function.
65 questions · hints · full answers · grading