Question 580
An AWS developer is designing a production GenAI workflow. Requirement: A streaming chat UI currently waits for an entire response even though users need incremental output. Which design decision addresses the requirement most directly?
Explanation
Correct Answer
Streamed tokens improve perceived responsiveness only if the API/client can consume events. This is the action that directly meets the stated design requirement. Acceptance evidence: An early response chunk arrives before completion and client disconnect cancels/cleans up safely.
Incorrect Answers
Message acknowledgement and model completion are distinct; failed jobs must be traceable. By contrast, the relevant technical condition here is: Streamed tokens improve perceived responsiveness only if the API/client can consume events. The appropriate selection is: Use a compatible Bedrock streaming API with safe chunk forwarding and disconnect handling.
That option concerns: An API façade must shield provider details and prevent unauthorized model usage. The current question instead depends on: Streamed tokens improve perceived responsiveness only if the API/client can consume events. The directly supported result is: Use a compatible Bedrock streaming API with safe chunk forwarding and disconnect handling.
Dynamic routing is useful only if the router does not send hard cases to inadequate models. This is a separate requirement; the current case instead hinges on: Streamed tokens improve perceived responsiveness only if the API/client can consume events. The matching answer is: Use a compatible Bedrock streaming API with safe chunk forwarding and disconnect handling.