ETExamTower
Q1Operational 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?

← → navigate · a answer
Community votes
B
75% (3)
C
25% (1)
A
0% (0)
D
0% (0)
Discussion · 3
B 3
AWS Step Functions is the native AWS orchestrator designed exactly for this. It allows you to define a declarative workflow (ASL) where the output of one agent (e.g., Search) becomes the input for the next (e.g., Recommendation). Using Step Functions is more operationally efficient than writing a "Manager" Lambda function (Options A, C, and D). In a "Lambda-lith" orchestrator, you have to write custom code for state management, error handling, and parallel waiting, all while paying for the Lambda's idle time while it waits for Bedrock agents to respond.
C 1
"The modules must operate sequentially."
B 1
Answer is B