QuestionQ79

VerifiedImplementation and Integration

A company is developing a generative AI (GenAI) application that processes financial reports and provides summaries to analysts. The application must operate in two compute environments. In one environment, an AWS Lambda function must use the Python SDK to analyze reports on demand. In the other environment, Amazon EKS containers must use the JavaScript SDK to batch-process multiple reports on a schedule. The application must maintain conversational context during multi-turn interactions, use the same foundation model (FM) in both environments, and provide consistent authentication.

Which solution meets these requirements?

Explanation

Amazon Bedrock Converse supplies a consistent inference interface across supported foundation models and is available through language-specific AWS SDKs. IAM roles provide a common authentication mechanism for Lambda and EKS workloads. Converse preserves multi-turn context when prior user and assistant messages are included in each later request's messages array; using the same model ID in both environments ensures the same FM is used.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!