Medium1 markMultiple Choice
Domain 2.3: DecouplingDomain 2ResilienceEventBridge

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:

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