2.1.2 · Lesson 2 of 25
Structured Problem Solving
Some problems are too complex for:
WHAT
Some problems are too complex for:
Prompt → Answer
The application may need a sequence of steps.
For example:
Analyze a customer complaint, retrieve the order, check refund policy, calculate eligibility, and generate a response.
Possible workflow:
User Request
↓
Understand Task
↓
Retrieve Order
↓
Check Policy
↓
Evaluate Eligibility
↓
Calculate Refund
↓
Generate ResponseReAct Pattern
ReAct combines reasoning/planning with actions.
Conceptually:
Think / Decide
↓
Act
↓
Observe Result
↓
Decide Next Step
↓
Act AgainExample:
Question ↓ Need customer information ↓ Call CRM tool ↓ Customer data returned ↓ Need order information ↓ Call order API ↓ Order returned ↓ Generate answer
Important
For implementation, you should think in terms of structured reasoning steps and observable actions, not exposing private chain-of-thought.
Step Functions
AWS Step Functions can orchestrate multi-step workflows.
Step Functions
│
┌──────────┼──────────┐
▼ ▼ ▼
Lambda Bedrock Lambda
Step 1 Step 2 Step 3It can manage:
- sequencing
- branching
- retries
- waiting
- state
- failure handling
- human approval
Exam clue
If the question says:
"Implement a multi-step workflow with explicit states and transitions"
Think:
Step Functions
Key points
- sequencing
- branching
- retries
- waiting
- state
- failure handling
- human approval
- ReAct Pattern
Exam focus
For implementation, you should think in terms of structured reasoning steps and observable actions, not exposing private chain-of-thought.