A claims portal sends uploaded documents through Amazon API Gateway to a Lambda function that calls a Bedrock model synchronously. Extraction now takes two to five minutes per claim, so clients time out, and during peaks Bedrock throttles and those claims are lost. The company needs every claim processed eventually, the web client told when results are ready, and the least operational overhead. Which design should the developer implement?
Choose one.
Decoupling long-running FM calls from the client with a queue and a status store.
Two separate failures need one design. Long processing means the client must not wait on the model call, and throttling means requests need a durable buffer with retries. Putting an SQS queue behind API Gateway solves both: the API returns immediately with an ID, the consumer retries throttled calls from the queue, and the client polls a status record (or is notified). Longer timeouts and a synchronous Express workflow keep the client blocked and lose throttled work; provisioned throughput addresses throttling only and at a fixed cost.
- Separate the symptoms: client timeouts and lost requests under throttling.
- A queue gives durability and retries; an asynchronous response frees the client.
- Reject options that keep the request synchronous.
- Prefer managed services over standing capacity for the least overhead.
Exam tip: Long or throttle-prone FM calls belong behind a queue; return a job ID, not the answer.
AIP-C01 GenAI Solution Design: Architecture, Proofs of Concept and Standards — the lesson that teaches this.