SAA-C03 ยท Decoupling and serverless patterns
Event-driven design with EventBridge
Event buses, rules and targets, reacting to AWS service events and SaaS events, scheduled rules, and when EventBridge fits better than SNS.
Key points
- EventBridge: an event bus receives events, rules decide where they go.
- Rule: event pattern (JSON on source, detail-type, detail) or schedule, up to five targets (Lambda, SQS, SNS, Step Functions).
- Default bus: AWS service events automatically; custom bus: your app events.
- SaaS: partner event source + partner event bus.
- Over SNS: content-based routing, SaaS, event transformation.
- SNS: high fan-out push, people channels like SMS.
Source: https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-bus.html
Practice questions
Which EventBridge event bus automatically receives events emitted by AWS services such as Amazon EC2?
- The default event bus
- A partner event bus
- A custom event bus named aws
- An EventBridge Pipes source
Show answer
Answer: A. The default event bus
Every account has a default event bus, and AWS services send their events to it without any setup. Custom buses are for your own applications and partner buses for SaaS sources.
Which statements about EventBridge rules are correct?
- A rule uses an event pattern to decide which events it matches
- One event can match more than one rule on the same bus
- A rule automatically applies to every event bus in the account
- Each rule can send a matching event to up to five targets
- Events matching no rule are kept until a matching rule is created
Show answer
Answer: A. A rule uses an event pattern to decide which events it matches, B. One event can match more than one rule on the same bus, D. Each rule can send a matching event to up to five targets
A rule matches events with an event pattern, one event can match several rules, and each rule can have up to five targets. A rule belongs to one specific bus, and an event that matches no rule is simply not acted on rather than held for later.
Events from a supported SaaS partner start arriving on your default event bus as soon as the partner is configured, with no further setup in your account.
Show answer
Answer: False
False. The partner creates a partner event source for your account, and you must associate it with a partner event bus before rules can match its events. Events sent to an unassociated source are dropped.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
