ETExamTower
Q4Operational Efficiency and Optimization for GenAI Applications

A company is developing a generative AI (GenAI) application that uses Amazon Bedrock APIs to process complex customer inquiries. During periods of peak use, the application has intermittent API timeouts that result in issues such as broken response chunks and delayed data delivery. The application has difficulty ensuring prompts stay within token limits when processing complex customer inquiries of different lengths. Users have reported truncated inputs and incomplete responses. The company has also identified foundation model (FM) invocation failures. The company requires a retry strategy that automatically manages transient service errors and avoids overwhelming Amazon Bedrock during peak usage periods. The strategy must adapt to changing service availability and support response streaming and token-aware request handling. Which solution meets these requirements?

← → navigate · a answer
Community votes
B
60% (3)
C
40% (2)
A
0% (0)
D
0% (0)
Discussion · 4
B 3
Exponential backoff with jitter — handles transient errors without thundering herd, adapts to service conditions Circuit breaker — prevents overwhelming Bedrock during peak by pausing retries when error rates spike Chunk-level streaming resume — buffers received chunks and resumes from last successful chunk, avoiding wasted tokens and broken responses
B 3
The answer is B because it combines the three pillars of resilient distributed systems design: adaptive retry (exponential backoff + jitter) to handle transient errors gracefully, a circuit breaker to prevent cascading failures during sustained issues, and intelligent stream resumption to handle the streaming-specific challenges — all of which adapt dynamically rather than relying on static thresholds.
C 1
SDK Native Support: The AWS SDK’s standard mode retry strategy is built specifically to handle transient service errors and throttling.Token-Aware Handling: Implementing lightweight token trimming addresses the "varying length" and "truncated input" issues by ensuring prompts fit within FM limits before the API call is even made.
C 1
Gemini answer is C