AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 210

A company has an AWS CloudFormation stack that is deployed in a single AWS account. The company has configured the stack to send event notifications to an Amazon Simple Notification Service (Amazon SNS) topic.

A DevOps engineer must implement an automated solution that applies a tag to the specific CloudFormation stack instance only after a successful stack update occurs. The DevOps engineer has created an AWS Lambda function that applies and updates this tag for the specific stack instance.

Which solution will meet these requirements?

Answer options

Correct answer: C

Explanation

The correct answer is C because Amazon EventBridge can filter events based on specific patterns, allowing the Lambda function to be triggered precisely when the CloudFormation stack reaches the UPDATE_COMPLETE status. Option A involves using Systems Manager, which is unnecessary for this task, while Option B requires AWS Config rules which are not needed for a straightforward event-driven solution. Option D does not directly invoke the Lambda function based on the stack's event status, making it less efficient.