AWS Certified Developer – Associate (DVA-C02) — Question 500
A video streaming company has a pipe in Amazon EventBridge Pipes that uses an Amazon Simple Queue Service (Amazon SQS) queue as an event source. The pipe publishes all source events to a target EventBridge event bus. Before events are published, the pipe uses an AWS Lambda function to retrieve the stream status of each event from a database and adds the stream status to each source event.
The company wants the pipe to publish events to the event bus only if the video stream has a status of ready.
Which solution will meet these requirements?
Answer options
- A. Add a filter step to the pipe that will match on a stream status of ready.
- B. Update the Lambda function to return only video streams that have a status of ready.
- C. Include a filter for a status of ready in all EventBridge rules that subscribe to the event bus.
- D. Add an input transformer to the pipe output that filters streams that have a status of ready.
Correct answer: A
Explanation
EventBridge Pipes allows you to define a filter step that evaluates events after enrichment but before they are sent to the target. By adding a filter pattern to the pipe that checks for a status of ready, only the desired events will be published to the event bus. Modifying the Lambda function or using input transformers cannot perform this filtering natively, and applying filters to individual event bus rules would still allow unwanted events to reach the bus itself.