AWS Certified Generative AI – Professional (AIP-C01) — Question 11

A company has deployed an AI assistant as a React application that uses AWS Amplify, an AWS AppSync GraphQL API, and Amazon Bedrock Knowledge Bases. The application uses the GraphQL API to call the Amazon Bedrock RetrieveAndGenerate API for knowledge base interactions. The company configures an AWS Lambda resolver to use the RequestResponse invocation type.
Application users report frequent timeouts and slow response times. Users report these problems more frequently for complex questions that require longer processing.
The company needs a solution to fix these performance issues and enhance the user experience.
Which solution will meet these requirements?

Answer options

Correct answer: A

Explanation

Option A is the best choice as it directly addresses the performance issues by enabling streaming responses, which can significantly reduce latency and improve user experience. Option B, while it may temporarily alleviate the issue, does not fundamentally fix the performance problem. Option C introduces a queuing mechanism that might complicate the architecture without guaranteeing performance improvements, and Option D, although it suggests using streaming, involves more significant changes than needed compared to the straightforward enhancement proposed in Option A.