Medium1 markMultiple Choice
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?
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:
A.
Write a script on the EC2 instance to call the Lambda function on startup.
B.
Use Amazon EventBridge to capture the EC2 state change event.
C.
Use AWS CloudTrail to trigger an SNS topic.
D.
Poll the EC2 API every minute using a scheduled Lambda function.
How to approach this question
Look for the AWS event bus service.
Full Answer
B.Use Amazon EventBridge to capture the EC2 state change event.✓ Correct
Use Amazon EventBridge to capture the EC2 state change event and route it to the Lambda function.
Amazon EventBridge is a serverless event bus that makes it easy to connect applications together using data from your own applications, SaaS applications, and AWS services.
Common mistakes
Choosing polling, which is an anti-pattern in cloud architecture.
Practice the full AWS SAA-C03 Practice Exam 2
65 questions · hints · full answers · grading
More questions from this exam
Q01A company wants to ensure that no AWS resources can be created in the ap-northeast-1 region acros...EasyQ02A web application runs on Amazon EC2 instances behind an Application Load Balancer (ALB). The com...EasyQ03A company is storing highly sensitive data in an Amazon S3 bucket. The security team requires tha...MediumQ04An application running on an EC2 instance needs to access an Amazon DynamoDB table in a different...HardQ05A company needs to store database credentials securely. The credentials must be automatically rot...Medium
Expert