nerdexam
Amazon

CLF-C02 · Question #168

A company needs to use an AWS service to invoke an AWS Lambda function when an Amazon EC2 instance enters the stopping state. Which AWS service will meet this requirement?

The correct answer is A. Amazon EventBridge. Explanation Amazon EventBridge is the correct choice because it is an event-driven service that can detect EC2 state change notifications (such as an instance entering the "stopping" state) and automatically trigger a Lambda function as a target - this is a core, native use case

Submitted by kwame.gh· Mar 6, 2026Cloud Technology and Services

Question

A company needs to use an AWS service to invoke an AWS Lambda function when an Amazon EC2 instance enters the stopping state. Which AWS service will meet this requirement?

Options

  • AAmazon EventBridge
  • BAWS Config
  • CAmazon Simple Notification Service (Amazon SNS)
  • DAWS CloudFormation

How the community answered

(28 responses)
  • A
    79% (22)
  • B
    7% (2)
  • C
    4% (1)
  • D
    11% (3)

Explanation

Explanation

Amazon EventBridge is the correct choice because it is an event-driven service that can detect EC2 state change notifications (such as an instance entering the "stopping" state) and automatically trigger a Lambda function as a target - this is a core, native use case for EventBridge rules. AWS Config (B) is used for evaluating and recording resource configurations and compliance over time, not for real-time event-driven triggering of Lambda functions based on instance state changes. Amazon SNS (C) is a messaging/notification service that can deliver messages but cannot independently detect EC2 state changes and initiate a workflow - it would need another service to feed it events first. AWS CloudFormation (D) is an infrastructure-as-code service for provisioning and managing AWS resources, and has no role in responding to runtime EC2 state changes.

Memory Tip: Think of EventBridge as the "if this, then that" engine of AWS - if an EC2 instance enters a stopping state, then invoke Lambda. Whenever an exam question involves detecting a state change and automatically triggering an action, EventBridge is almost always the answer.

Topics

#Amazon EventBridge#AWS Lambda#EC2 Events#Event-driven Architecture

Community Discussion

No community discussion yet for this question.

Full CLF-C02 Practice