A legacy order system cannot wait for slow model calls, but every new order should get an AI-written summary. How do you integrate them?
- Exam domain
- Implementation and Integration26% of the exam
- Difficulty
- Medium
- In this mock
- 19 questions on this domainPractise this domain
Why the exam asks this
Task 2.3: Design and implement enterprise integration architectures.
Objective in the exam guide: Skill 2.3.1: Create enterprise connectivity solutions to incorporate FM capabilities into existing enterprise environments (for example, by using event-driven architectures to implement loose coupling).
Enterprises add GenAI to systems that were never designed to wait on a model. Event-driven integration is how you add it without breaking those systems.
Why B is the answer
Publish an event for each order to Amazon EventBridge, and process it asynchronously with a model call
An event-driven design decouples the legacy system from slow model calls.
Remember: Slow AI work next to a system that must not wait: go event-driven.
How it works
In an event-driven design, the existing system publishes events, and other services react to them independently.
Amazon EventBridge routes events to consumers; a consumer calls the model and stores the result.
The original system never waits for the model, so model latency or outages cannot slow it.
Clues in the question
The words that point to the answer, and what each one tells you.
- Cannot wait for slow model calls
- Decouple the two.
- Every new order
- A clear event to react to.
In detail
- Loose coupling lets each side scale and fail independently.
- Amazon SQS can buffer work between the event and the model call.
Side by side with look-alikes
| Integration | Legacy system waits? |
|---|---|
| Event-driven with EventBridge | No |
| Synchronous call in the transaction | Yes |
| Rewrite the system | Costly and risky |
| Manual pasting | Not scalable |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Ask staff to paste orders into a chat windowWrong
Manual pasting does not scale and is error prone.
B. Publish an event for each order to Amazon EventBridge, and process it asynchronously with a model callRight
Slow AI work next to a system that must not wait: go event-driven.
C. Call the model synchronously inside the order transactionWrongMost tempting
The order flow would wait on every model call and fail when the model is slow.
Why it tempts: It is the simplest code change. But it makes every order wait on the model, which the requirement forbids.
D. Rewrite the legacy system around the modelWrong
A rewrite is costly and risky when integration is enough.
In practice
- Add a queue between the event and the model call to absorb bursts.
- Make the consumer idempotent, since events can be delivered more than once.
Use case
An illustrative scenario, not a real incident.
An order system emits an "order created" event, and a separate consumer writes the summary a few seconds later without slowing checkout.
See how it works
sequenceDiagram participant O as Order system participant E as EventBridge participant C as Consumer participant M as Model O->>E: Order created O-->>O: Checkout continues at once E->>C: Deliver event C->>M: Write a summary M-->>C: Summary C->>C: Store it with the order
How to read this chart
- 1. Order system sends "Order created" to EventBridge.
- 2. Order system gets a reply from Order system: "Checkout continues at once".
- 3. EventBridge sends "Deliver event" to Consumer.
- 4. Consumer sends "Write a summary" to Model.
- 5. Consumer gets a reply from Model: "Summary".
- 6. Consumer sends "Store it with the order" to Consumer.