🔥 3-day streak
AWS Certified Generative AI Developer - Professional151 / 166
Question 151 of 166
A developer builds a customer-facing chatbot where a Lambda function calls Bedrock's InvokeModelWithResponseStream API and must deliver tokens to the browser as they are generated. The Lambda is fronted by a REST API Gateway endpoint. During testing, the browser receives nothing until the model has fully finished generating, after which the entire response arrives at once. The team needs true incremental token delivery to the client without a major re-architecture of the compute layer. Which change best achieves streaming behavior end-to-end?
Reviewed for accuracy · Report an issueNext question