Lesson 2 of 4 Agentic AI on AWS

Choosing Between Bedrock Agents, AgentCore and Strands Agents

This lesson explains the three layers at which AWS provides agents: fully managed agents in Amazon Bedrock, Amazon Bedrock AgentCore services for deploying and operating agents built with any framework, and the open-source Strands Agents SDK.

Learning outcomes

After completing this lesson, you will be able to:

  • Describe what Amazon Bedrock Agents needs: instructions, action groups and knowledge bases.
  • Describe the services that Amazon Bedrock AgentCore provides for running agents in production.
  • Describe how the Strands Agents SDK builds agents in code.
  • Choose between the three options for a requirement.

Amazon Bedrock Agents

A fully managed way to build an agent without orchestration code. You provide:

  • Instructions describing its role and goals.
  • Action groups: API schemas or Lambda functions it may call, such as CheckInventory and PlaceOrder.
  • Knowledge bases for RAG.

The agent breaks tasks into steps, asks for missing information, supports multi-agent collaboration through a supervisor, returns traces of its reasoning and works with Guardrails.

Select all that apply

Configuring a Bedrock agent

Exam skills 3.1.6 · 2.3.1

A retailer is configuring an Amazon Bedrock agent that checks stock and places orders.

Log in to try this activity Interactive activities are free with an account.

Amazon Bedrock AgentCore

Building an agent is only part of the work; running it safely in production needs hosting, memory, secure access to tools and monitoring. Amazon Bedrock AgentCore provides these as services that work with agents built in any framework, such as Strands, LangGraph, CrewAI or LlamaIndex, and with any model, inside or outside Bedrock. They can be used together or separately.

Runtime hosts agents securely without servers, isolating each user's session and supporting long-running sessions. Memory stores short- and long-term memory. Gateway turns existing APIs, Lambda functions and services into tools that agents can call through the Model Context Protocol (MCP). Identity gives agents their own identities and lets them access AWS and third-party services securely on behalf of users. Browser and Code Interpreter give agents a managed web browser and a sandbox for running code. Observability provides traces, metrics and dashboards, Evaluations measure agent quality, and Policy sets boundaries on the tools and actions an agent may use. The following table summarises the services.

ServiceProvides
RuntimeSecure serverless hosting with session isolation and long-running sessions
MemoryShort- and long-term memory
GatewayTurns APIs, Lambda functions and services into MCP-compatible tools
IdentityAgent identities and secure access to AWS and third-party services on behalf of users
BrowserA managed browser for web tasks
Code InterpreterSandboxed code execution
ObservabilityTraces, metrics and dashboards
EvaluationsMeasuring agent quality
PolicyBoundaries on the tools and actions an agent may use
Match the pairs

AgentCore services

Exam skills 2.3.1 · 3.1.6

Match each production need with the AgentCore service that meets it.

Log in to try this activity Interactive activities are free with an account.

Strands Agents

Strands Agents is an open-source SDK for building agents in a few lines of Python. It is model-driven: you provide a model, a prompt and tools, and the model plans and chooses tools. It supports Bedrock and other providers, MCP tools and multi-agent patterns, and agents can run on AgentCore Runtime, Lambda, containers or elsewhere.

Which to choose

AWS offers three main ways to build agents, suited to different needs. Bedrock Agents is the quickest, fully managed option: you configure an agent in Bedrock with action groups, which define the actions it can take, and knowledge bases, with little code. Strands Agents, or another open-source framework, is the choice when you want to build agents in code with full flexibility over how they reason and use tools. AgentCore is the choice when agents must be run and governed in production, whatever framework built them. The following table summarises the choice.

ChooseWhen
Bedrock AgentsYou want the quickest fully managed agent with action groups and knowledge bases
Strands (or another framework)You want to build agents in code with full flexibility
AgentCoreYou need to run and govern agents in production
Sort into groups

Which way to build?

Exam skills 2.3.1 · 3.1.6

Decide which option each team's requirement points to.

Log in to try this activity Interactive activities are free with an account.
Worked example

A small agent in code with Strands

A developer builds an internal agent that answers questions about order status. With the open-source Strands Agents SDK, a tool is an ordinary Python function with a description, and the model decides when to call it:

from strands import Agent, tool

@tool
def order_status(order_id: str) -> str:
    '''Return the shipping status of an order.'''
    return lookup_order(order_id)          # the company's own code

agent = Agent(
    model="us.amazon.nova-2-lite-v1:0",
    system_prompt="You help staff check customer orders. Be brief.",
    tools=[order_status],
)
agent("Has order A-1042 shipped yet?")

For production, the team deploys the agent to AgentCore Runtime for secure, isolated hosting, uses AgentCore Memory for conversation history, AgentCore Gateway to expose the existing order API as an MCP tool, and AgentCore Observability to trace every step. A team that wanted no code at all could instead define the same capability in Bedrock Agents with an action group.

Check yourself

What does Amazon Bedrock AgentCore provide?

Show answer

Managed building blocks for running agents in production, such as a runtime, memory, a gateway to tools, identity and observability, for agents built with any framework.

Exam Tips

Remember for the exam

  • A fully managed agent with action groups and knowledge bases points to Bedrock Agents.
  • To deploy and operate agents from any framework or model securely, use Bedrock AgentCore.
  • To turn existing APIs into MCP tools for agents, use AgentCore Gateway.
  • For agent credentials and access on behalf of users, use AgentCore Identity.
  • To set boundaries on an agent's actions, use Policy in AgentCore.
  • An open-source, model-driven agent SDK is Strands Agents.