DVA-C02 · Question #507
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…
The correct answer is A. Add a filter step to the pipe that will match on a stream status of ready. This question tests knowledge of the EventBridge Pipes filter step to conditionally route enriched events to a target based on attribute values.
Question
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?
Options
- AAdd a filter step to the pipe that will match on a stream status of ready.
- BUpdate the Lambda function to return only video streams that have a status of ready.
- CInclude a filter for a status of ready in all EventBridge rules that subscribe to the event bus.
- DAdd an input transformer to the pipe output that filters streams that have a status of ready.
How the community answered
(22 responses)- A82% (18)
- B9% (2)
- C5% (1)
- D5% (1)
Why each option
This question tests knowledge of the EventBridge Pipes filter step to conditionally route enriched events to a target based on attribute values.
EventBridge Pipes has a native filter step that evaluates event patterns against the enriched event payload before forwarding to the target. Adding a filter that matches on stream_status = ready ensures only qualifying events are published to the event bus, without modifying the Lambda enrichment function or requiring downstream rule changes.
Updating the Lambda enrichment function to return only ready-status events changes the enrichment logic and suppresses non-ready events from being enriched at all, which could prevent their use in other contexts and conflates enrichment with filtering responsibilities.
Adding a filter to EventBridge rules on the target event bus still allows all events to be published to the bus; the filtering happens after ingestion and does not prevent non-ready events from entering the bus.
An input transformer reshapes the event payload structure for the target but cannot conditionally suppress or filter events; all events still get published to the event bus regardless of stream status.
Concept tested: EventBridge Pipes filter step for conditional event routing
Source: https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-pipes-event-filtering.html
Community Discussion
No community discussion yet for this question.