AWS Certified Solutions Architect Professional SAP-C02 Practice Question
Your team is decomposing a legacy e-commerce monolith into separate Order, Inventory, Billing, and Shipping microservices that will run on Amazon ECS with AWS Fargate. The existing code base will be modified so that whenever an order is placed, the Order service emits a JSON event that includes the order ID, customer ID, and line-item details. Architectural requirements for the new integration layer include:
Producers must not need to know which consumers exist or how many there are.
Each consumer must receive only the events it needs, without custom filtering logic in its code.
New microservices and SaaS partners must be able to subscribe to events later without requiring changes to producer code.
The solution must be fully managed and impose minimal operational overhead.
Which approach MOST effectively meets these goals?
Send the order events to an Amazon EventBridge custom event bus and create separate rules with content-based filters that route matching events to targets such as Lambda functions, SQS queues, or API destinations used by each microservice.
Write the events to an Amazon SQS standard queue that is polled by each microservice. Add message-attribute filtering in application code so that non-relevant events are ignored.
Invoke each microservice in sequence from a synchronous AWS Step Functions workflow that passes the order payload between tasks and updates the state machine when new services are added.
Publish the events to an Amazon SNS standard topic and configure subscription filter policies for each microservice; extend the fan-out pattern by adding more HTTPS subscriptions when new consumers appear.
Sending the order events to an Amazon EventBridge event bus cleanly decouples producers from consumers. Producers call the PutEvents API and have no knowledge of who is listening. EventBridge rules provide serverless, declarative content-based filtering, so each microservice receives only the events it cares about without custom code. Rules can be added at any time, enabling new microservices or SaaS partners to subscribe without changing the Order service. EventBridge is fully managed and pushes events to up to five targets per rule, including Lambda, SQS, SNS, and API destinations, eliminating the need to run or scale messaging infrastructure.
Publishing to an SNS topic (standard or FIFO) does provide fan-out, but filter policies are limited and do not support the advanced content-based filtering or cross-account SaaS integrations required. Writing to a single SQS queue forces consumers to poll and add in-code filtering, creating tight coupling and operational overhead. A synchronous Step Functions workflow still couples services together in a fixed sequence and requires state-machine updates whenever a new consumer is added, violating the loose-coupling requirement.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is Amazon EventBridge and how does it work?
Open an interactive chat with Bash
How do EventBridge rules with content-based filtering work?
Open an interactive chat with Bash
Why is Amazon SNS not suitable in this architecture?
Open an interactive chat with Bash
AWS Certified Solutions Architect Professional SAP-C02
Accelerate Workload Migration and Modernization
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .