QuestionQ1

Operational Efficiency and Optimization for GenAI Applications

A company plans to establish an annual customer rewards program. The rewards customers earn differ according to various parameters, including the categories of items they order and the customers' purchase history.

The company requires a generative AI (GenAI) solution that uses three Amazon Bedrock agents to assist customers while they browse an online catalog. The agents must use knowledge bases and action groups to manage the search, recommendation, and order modules. The modules must run sequentially. An AWS Lambda function must calculate estimated rewards for every recommended item. The solution must offer graceful degradation during service disruptions.

Which solution meets these requirements with the MOST operational efficiency?

Explanation

AWS Step Functions provides managed orchestration for sequential service tasks and supports task-level Retry and Catch error handling. A state machine can invoke the three Amazon Bedrock agents in order and then invoke the rewards-calculation Lambda function. Configuring retry and catch branches for each task enables targeted recovery or fallback behavior when an individual agent or function fails, without maintaining custom Lambda orchestration and error-handling code.

Learn more

Community Discussion

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