Concept · Builds on AIF-C01
Agentic workflow infrastructure
Flows, Step Functions, Lambda tools, queues, and the IaC, VPC and IAM that connect them.
You know from AI Practitioner
- Bedrock Flows links prompts, models, knowledge bases, Lambda functions and conditions along a path you design.
- A flow has a draft, versions and aliases.
Bedrock Flows
- It does
- Visual path of nodes
- Pick it when
- The steps are known
Step Functions
- It does
- Retries, waits, approval, parallel
- Pick it when
- A long process around agents
Lambda tools
- It does
- Quick actions for the agent
- Pick it when
- Work ends in seconds
SQS and a worker
- It does
- Slow jobs off the request path
- Pick it when
- Work takes minutes
IaC, IAM and VPC
- It does
- Repeatable, least-privilege wiring
- Pick it when
- Every environment
| Piece | It does | Pick it when |
|---|---|---|
| Bedrock Flows | Visual path of nodes | The steps are known |
| Step Functions | Retries, waits, approval, parallel | A long process around agents |
| Lambda tools | Quick actions for the agent | Work ends in seconds |
| SQS and a worker | Slow jobs off the request path | Work takes minutes |
| IaC, IAM and VPC | Repeatable, least-privilege wiring | Every environment |
1 / 2
Bedrock Flows
- It does
- Visual path of nodes
- Pick it when
- The steps are known
Step Functions
- It does
- Retries, waits, approval, parallel
- Pick it when
- A long process around agents
Lambda tools
- It does
- Quick actions for the agent
- Pick it when
- Work ends in seconds
| Piece | It does | Pick it when |
|---|---|---|
| Bedrock Flows | Visual path of nodes | The steps are known |
| Step Functions | Retries, waits, approval, parallel | A long process around agents |
| Lambda tools | Quick actions for the agent | Work ends in seconds |
2 / 2
SQS and a worker
- It does
- Slow jobs off the request path
- Pick it when
- Work takes minutes
IaC, IAM and VPC
- It does
- Repeatable, least-privilege wiring
- Pick it when
- Every environment
| Piece | It does | Pick it when |
|---|---|---|
| SQS and a worker | Slow jobs off the request path | Work takes minutes |
| IaC, IAM and VPC | Repeatable, least-privilege wiring | Every environment |
- 1The agent calls a tool that puts a job on the queue and returns a job id.
- 2A worker takes the job from the queue.
- 3The worker saves the result. The agent reads it later.
What it is
Flows nodes include input and output, prompt, agent, knowledge base, Lambda function, condition, iterator and collector, a DoWhile loop (with a maximum number of iterations, 10 by default), S3 storage and retrieval, Amazon Lex, and inline code. A flow runs when you call InvokeFlow on an alias. Use Flows when the steps are known and the model should not choose them.
What it is
AWS Step Functions orchestrates longer processes around agents. A state machine can call the agent through Lambda or an SDK integration, branch on the result, retry, wait for a human approval and run several agents in parallel. Use Lambda functions as tools for short work. For slow work, the tool puts a job on an Amazon SQS queue and returns a job id, a worker processes it, and the agent checks the result later or is called back.
What it is
Wire it with infrastructure as code. Define agents, aliases, flows, Lambda functions and roles in one stack. A Lambda tool needs a resource-based policy that lets Bedrock invoke it. Roles follow least privilege. Lambda functions in a VPC need an interface endpoint for Bedrock Runtime or a NAT gateway. AgentCore Runtime has network settings for reaching private resources.
Remember
- Flows: fixed paths made of prompt, agent, knowledge base, Lambda, condition and loop nodes.
- DoWhile loops stop at a maximum iteration count.
- Step Functions: long workflows with retries, approvals and parallel agents.
- Lambda tools for quick actions. SQS and a worker for slow ones.
Remember
- IaC for agents and flows. Resource policy lets Bedrock invoke the Lambda tool.
- In a VPC, use interface endpoints or NAT for Bedrock calls.
On the exam
- “A fixed multi-step AI process with a branch on a condition” points to Bedrock Flows.
- “Agent output needs a human approval that may take days” points to Step Functions with a callback.
- “A tool takes ten minutes” points to a queue and a worker, with the agent checking later.
- “Lambda tool is never called by the agent” points to a missing resource-based policy for Bedrock.
In this task · 3.2
- Provisioned vs on-demand resources
- IaC for ML: CloudFormation, CDK and Service Catalog
- Containers for ML: images, ECR and own containers
- ECS, EKS and Batch for ML workloads
- SageMaker endpoints in a VPC
- Auto scaling endpoints and choosing metrics
- Scaling GPU and LLM workloads
Knowledge Bases
- Retrieval pipelines
- Agent state and memory management
- Agentic workflow infrastructure