iTranslated by AI

The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
📖

re:Invent 2025: Data Implementation for Agentic AI - ReAct Loops, Memory Management, MCP, and Governance

に公開
2025/12/10

Introduction

By transcribing various overseas lectures into Japanese articles, we aim to make high-quality, hidden information more accessible. The presentation featured in this project, which operates under that concept, is as follows!

For transcription articles of re:Invent 2025, information has been compiled in this Spreadsheet. Please check it as well.

📖re:Invent 2025: AWS re:Invent 2025 - A practitioner’s guide to data for agentic AI (DAT315)

In this video, Tim, a senior principal engineer at Aurora, and Siva, a director of worldwide specialist solutions architects, explain a practitioner’s guide to data for Agentic AI. They look back on the rapid evolution of AI technology from 2023 to 2025, explaining the development path from chatbots to RAG, MCP, and finally autonomous AI agents. Using the concrete example of purchasing auto insurance, they detail the three pillars of inference, action, and memory, the mechanism of the ReAct loop, management of short-term, medium-term, and long-term memory, and caching strategies. They comprehensively explain how to implement enterprise-level data governance and security—such as tool standardization via the Model Context Protocol, data product marketplace architecture, fine-grained access control leveraging Lake Formation, and trusted identity propagation using JWT tokens—through three personas: external customers, internal users, and data engineers.

https://www.youtube.com/watch?v=XLWjq5FInyQ

  • Please note that this article was automatically generated while maintaining the content of the existing lecture as much as possible. There is a possibility that typos, omissions, or incorrect information may be included.

Main Body

Thumbnail 0

Welcome to DAT315: A Practitioner’s Guide to Agentic AI and Data

Well, hello. Welcome to DAT315. Some of you might be data practitioners. Yes, I am a data practitioner. Perhaps there are also some Agentic AI practitioners here? Anyone? Well, by the time this session ends, you will all likely be practitioners in both data and Agentic AI. That is our goal. My name is Tim. I am a senior principal engineer at Aurora. My friend Siva will join us shortly. He is a director of worldwide specialist solutions architects. And we are going to talk about a practitioner's guide to data for Agentic AI.

Thumbnail 40

Now, if anyone thinks they fully understand all of this, congratulations. You are better than most people in the world. It is changing really fast. So, first, I would like to look a bit at this evolving situation. It started in 2023, not that long ago. We had these chatbots, and we were talking about vector search. We had just started talking about LLMs, right? We had single-shot interactions with agents, that was what we could do.

Thumbnail 70

Thumbnail 90

Thumbnail 100

Then in 2024, more advanced chatbots appeared, and we gained context. Agents gained the ability to remember a little bit of what they were doing, the ability to perform hybrid search, and the ability to bring other data types in here. There was RAG, Retrieval Augmented Generation. That was all the rage last year, wasn't it? That was truly 2024. And near the end of 2024, the MCP, Model Context Protocol, appeared. This gave these agents tools to talk to each other and to data sources, and standardization progressed. And now, 2025, nearly at its end, we have autonomous AI agents. They can reason, plan, and execute tasks.

Thumbnail 120

All of this, count it, happened in just a few years. And I don’t think we are anywhere near the end. But now, we can have much more natural conversations with agents, and agents can do things for us much more autonomously. So today, we will follow one example. Buying auto insurance. This is something everyone loves, always. Buying auto insurance. And we will proceed as Terry, who wants to buy auto insurance.

Thumbnail 140

Thumbnail 160

And back in 2023, the AI experience would have been interesting, but probably just a thin wrapper for preprocessing, after which it was handed over to a human to do the actual work. Now, in 2025, in our auto insurance company example, the agent can have a much more fluid conversation, and instead of handing it off to a human, it can probably actually execute the entire task for Terry. Whether we like it or not, that is what is happening, and that is what we are going to dig into today.

Thumbnail 180

Thumbnail 190

The Three Pillars of Agentic AI: The Reasoning, Action, and Memory Loop

Now, let's cover the foundational parts. There are three pillars of Agentic AI. First, there is reasoning. Here, we use large language models. Next, there is action. We can execute actions from these models. We call some tools or follow the instructions of the LLM to execute something. And there is memory. We need to remember things. Otherwise, it’s like talking to a goldfish that doesn’t remember anything, right? It’s very frustrating and not very helpful.

Thumbnail 210

The special sauce of Agentic AI is putting this into a loop. We make this iterative. If you have done computer science, you know that writing a program without a loop is quite difficult and quite boring. Once you get this loop—the ReAct loop, the loop of reasoning and action—you are already in the realm of Agentic AI. That is where we are today. Now, AnyCompany Auto Insurance. Terry needs to buy auto insurance. He will go through this loop again and again before finally giving an answer like, "Your insurance quote is $10. Thank you for using our service."

Thumbnail 240

Now, let's dive into one iteration of that loop. Reasoning and planning. The user inputs a request. There is a system prompt inside this. It manages context, the system prompt comes in, and there might be an existing state. And the user request comes in, saying something like, "I need insurance for my Buick." The next part passes through the LLM. The LLM does some magic. I am not a scientist who can explain how an LLM actually works. And then it passes the output. It executes an action, and the agent creates an action plan. It decides what the next step of the action plan is. It might stop, or it might return a response to the user.

Thumbnail 260

Thumbnail 270

We will talk about this action and context management, and this is where we can finally start talking about data. After calling a tool, or perhaps you call a tool to retrieve data and return a response to the user, that tool executes what it is supposed to do. And it might access a data store. This is what we will talk about today. And we feed these results into this context manager.

Thumbnail 300

And it performs caching, updates conversation history so that it can be remembered, and also evaluates what it was doing for reinforcement learning. By doing so, the next time we go through it—perhaps for the next customer—we can create a better experience for this iteration. This is also important.

Thumbnail 320

Thumbnail 330

Practicing the ReAct Loop with the Auto Insurance Purchase Example

Now, with this in mind, let's look a bit at the auto insurance example. Here, you need to pay attention to the colors. In the first interaction, the customer, Terry, says, "I need auto insurance." We get the system prompt, which is the purple one here. We pass it to the agent, along with other context obtained from previous conversation history, etc. When we format this and pass it to the LLM, the LLM processes it and we get the output again. It determines the next step, and the next step might be to call a tool.

Thumbnail 350

Thumbnail 360

Thumbnail 370

This is the first interaction, so we don't know anything about this customer yet. Therefore, we need to call a tool called get driver details. We need to figure out what this driver's history is like. This gives us the purple result. And now we run this loop again. We know that we are remembering the purple result in the state; we are remembering the driver's information, and now we call another tool to check the vehicle information. Again, pink information comes in, we remember it, and now we calculate the risk for that vehicle and that person. And we get a quote; you can see the context stacking up, right?

Thumbnail 380

Thumbnail 390

Finally, we have enough information to generate a response for the user, pass it to the user, and wait for the user's input again. You can see how the context—all these colors—is stacking up. This is great. But what happens if we need to continue? That context is not infinitely large. I am really good at drawing, as you can tell from my amazing color usage. Therefore, we need to perform a process called compaction on the context. What we did was merge these colors.

Here, you can use several different algorithms. You don't need to worry too much about this. Frameworks provide it, but you can perform summarization. You can also have the LLM summarize it for you. You can use something simple like LRU (least recently used). There are various algorithms for remembering the necessary parts and discarding the parts that might not be needed. The important thing is that in this case, we have looped through this seven times and are remembering most of what we have done. This is the ReAct loop.

Thumbnail 440

The Continuum of Agent Memory: From Short-term to Long-term

About memory, this is the interesting part. There is a continuum, with short-term memory on the left and long-term memory on the right. Let's delve into this a bit more; agent memory. Short-term memory has this agent state. Think of this as the agent's RAM, its working memory. This is something the framework will likely handle for you. You probably don't need to code this yourself. You want it to be fast, and here it might be something like ElastiCache for Valkey. Frameworks like Strands Agents or LangGraph usually provide these. Yes, and they are simple, small, and short-term.

Thumbnail 470

And in the middle, we have this medium-term semantic memory, episodic memory. This is usually what you are retrieving using tools. You are going through tools to access a source of memory or to put something into it. Here, we are talking about things like enterprise databases, vector stores, and so on. You all probably have a better understanding of what's happening here. And on the far right, we have prompts. You would probably treat this like Infrastructure as Code. Here, the builder puts in a system prompt, saying something like, "You are an insurance agent, these are your guardrails." You would likely manage it like code, in a code artifact repository or a key-value store. You won't be accessing it frequently. You won't be changing it frequently either. This is how to think about these three types of memory.

Thumbnail 530

Thumbnail 510

Now, let's look at some code. I'm an engineer, so this helps me understand. Here are two different examples. I chose Strands Agents and LangChain, and LangGraph. If you don't know the code, that's perfectly fine. Because there isn't really that much here. The only thing you really need to pay attention to is these few lines at the top. Here, in this case, I'm saying I'll use the AgentCore session memory manager. You can use another one. Conversation manager, in this case, I'll use the summarizing conversation manager. This is the one that uses a summarization algorithm that compresses the colors together, as I showed you earlier. And you just pass that to the framework. That's it. The LangChain version is pretty similar; it just uses a different name, bundling everything into something called a checkpointer. It's the same idea. In other words, you aren't writing all this code, the agent is probably writing it for you, right? But it's very simple.

Thumbnail 590

Connecting Agents to Data: MCP Servers and Tool Utilization

Now, let's dive a bit deeper and talk about how to connect agents to data. You receive an inbound user query. It likely goes through an MCP server. I'll dive into what that means a little later. And you might communicate with some database to retrieve a customer profile. And you might iterate again, communicating with another database to get vehicle data or telemetry. And iterate again. As you can see, you are communicating with various types of databases. They might be relational, key-value, or vector. Some of those might already belong to our company, and some might be third-party ones, like the Department of Motor Vehicles in my example. You are calling all of these through tools and MCP services.

Thumbnail 610

The same basic pattern applies to everything here. And that is the beauty of MCP. You don't have to write all the specialized code to deal with this.

Thumbnail 620

So, how did we get there? Those tools first need to be discovered. Let's look at the other part of the same example. We are creating and instantiating an agent. We create a Bedrock model for it and pass it a list of tools. There are four tools there, such as searching documents. And there is a system prompt: "You are an insurance agent." Now, I'll come back later to how you had to specify tool names or hardcode them, which I didn't really like, but you can see that this is still quite simple.

Thumbnail 650

The Power of Caching: Strategies to Reduce Latency and Cost

Now, let's shift gears and talk a bit about the power of caching. You all know the basics here, right? As you've probably noticed, every time we go around this loop, it looks like we're doing a lot of redundant work. We're fetching the same data over and over again. Maybe that's slowing things down, or maybe it's costing more money than it should. That's not ideal, is it? Caching is a very natural approach here.

Thumbnail 670

So, let's talk about where we can inject caching in a diagram like this. Why do we do it? We can reduce latency, which is quite standard. These LLMs, large language models—they aren't called SLMs, small language models, are they?—are costly. So, if we can avoid calling them or avoid running out of token space, we can save both money and time. That's why caching is a really good way to achieve that. Even if the backend system isn't an LLM, but some other type of database, there's a limit to the capacity for providing performance, so reducing that load is likely a good thing. And regarding reinforcement learning, caching is a really important way to get a signal on whether something is popular. In other words, if you're hitting the cache a lot, that's likely something popular, so you should cache more of it, and update your plans to do this more often.

Thumbnail 720

So, where can we insert a cache? On the right side, this is the closest point to the data source, let's say the bottom layer of the stack. This is probably what you're most familiar with in your work today. You have a database, and you place a cache in front of it, like ElastiCache. This makes tool responses faster, but it doesn't help at all in avoiding going around this loop. It just lets you cycle through this loop a bit faster. So, it probably won't help in saving LLM costs or context space.

Thumbnail 750

As a next step, you can place a cache in the memory context manager, right after calling a tool. This is for tool results. This might help reduce LLM usage. This is the first thing that achieves that. Since you can reuse existing action plans or sequences of callable tools, you don't need to ask the LLM to do this every time. Whether this is helpful is quite optimistic, but it's worth considering.

Thumbnail 780

Next, you can place a cache on the opposite side of the memory context manager, on the output side. This is likely within the scope of the user's session. So, if the session contains a lot of cacheable information, such as information that doesn't change much—in our example, things like conveying vehicle information over and over again—that's the kind of thing you would use here. This doesn't have a huge impact on LLM usage, but it makes processing much faster.

Thumbnail 810

And finally, before this entire loop repeats, you can implement a semantic cache as close to the user as possible. If this works well, it's really, really powerful. That's because it avoids calling everything. This works when the agent's response doesn't contain personal information. For instance, if the agent is asked a question like "Tell me the legal requirements for insurance in Nevada." There's nothing specific to me contained in this, so you can cache that response. That's the kind of case you would use it for. This reduces latency, lowers costs, and makes customer interactions smoother, leading to higher customer satisfaction.

Thumbnail 840

Analogy: Agentic AI and Relational Databases

Well, you might be experts by now, or perhaps you're a bit dazzled. I'm an old Unix graybeard, and I'd like to share an analogy that might help you understand what's happening here. Let's draw an analogy between Agentic AI and relational databases. If you know relational databases, great, this might be helpful. If you don't, don't worry, it won't be on the take-home assignment.

Thumbnail 870

Thumbnail 880

First, let's talk about the interface. What is the interface to a relational database? It's SQL and JDBC. It's all very standardized. Agentic AI is also gaining that through MCP, so it's quite similar. Then, there's the concept of memory that we've been talking about all day. Agentic AI has short-term and long-term memory. And of course, within a relational database, there's also memory—B-trees, heaps, indexes, and all that.

Then there's the execution aspect. We talked about the ReAct loop, where you make a plan and then execute the steps of the plan.

In a SQL engine, there's a SQL query planner that plans how to use indexes or heap sorts, which is very similar. And we talked about caching earlier, which is a one-to-one relationship. Databases rely heavily on caching. And finally, there's what's called canned execution.

Thumbnail 920

In other words, with MCP, you can place whatever tools you like behind an MCP server and execute any operation you want. And within a SQL engine, you have stored procedures, PL/pgSQL, and many other pre-prepared execution features. If this doesn't make sense to anyone, I apologize. If it's helpful, I'm glad. Now, let's dive a bit deeper into the Model Context Protocol.

Thumbnail 940

Thumbnail 960

Model Context Protocol (MCP): Standardizing Tool Discovery and Invocation

This standardizes the interaction between an agent and the tools it invokes in two ways: it enables the agent to discover tools and understand their purpose, and it allows for their invocation. These are two very important, separate steps. Now, here is our automotive insurance agent. Inside this agent, there is an MCP client—standard Python. It communicates with an MCP server. In this case, the MCP server advertises three tools: get owner vehicles, and so on. Tools have parameters. They come with documentation to tell humans—and the tools themselves—what they do.

Thumbnail 980

Thumbnail 990

That tool likely makes a call to a database, just doing the usual things. It's just like executing a standard database driver to talk to a regular relational database, probably. Once you're inside the MCP server, there's nothing magical going on. So, let's zoom in and go to the next level. The agent has an embedded MCP client. What is the MCP server actually doing?

Thumbnail 1000

Inside the agent, there is a tool catalog. Now, there are two tools in it. How did they get there? Well, the MCP server advertises these two tools. There is an MCP operation called tools/list. Since MCP works over JSON-RPC, the first thing the MCP client does is say, "Please list the tools." Then, you get vehicle_by_VIN, get_vehicle_owners, and get_owner_vehicles. You learn how to call them and add them to the catalog. The agent then understands how calling that tool is helpful, so you don't need to instruct the agent to "call tool named X with parameter Y." It already understands all of this.

Thumbnail 1060

This is the job of the tool catalog, and it was discovered using MCP. In other words, the hard-coding I didn't like in my example is replaced by this. You no longer need to hard-code tools. You can if you want to, but you don't have to. Also, you can plug multiple MCP servers into one agent, one MCP client. This means you can keep building your catalog while querying multiple MCP servers. And this is, for example, how we build our internal data stores and then communicate with things like the DMV or other systems we intend to build over time. You are building this catalog. This is all internal to how MCP operates.

Now, let's implement the MCP client and server, the purple boxes you saw earlier. We'll look at a bit more Python code. On the left is the standard MCP SDK, which I didn't create; it's just creating a client session. On the right is the MCP server, which might communicate with a database or similar. The important part on the client side is to initialize the session and call the list_tools function. That's it. On the right, there is actually no Python code at all. That's interesting. It just has a few little pink decorators that simply state, "Please call this function when you want to list tools" or "This is the function to call when invoking a tool."

Thumbnail 1140

Choose the Right Tool for the Job: General-Purpose vs. Specialized Categorization

What I want you to take away from this is that the barrier to entry is very, very low. Creating an MCP server isn't that difficult. You probably just need to add a few annotations to the code you already have. Now, from here on, I'm going to talk about how to choose the right tool for the right job. I created a classification system like this: the X-axis is read-only data retrieval versus data modification, and the Y-axis represents whether it's a general-purpose tool—meaning it can do almost anything—or a specialized tool, like the ones we've been discussing.

Thumbnail 1160

Thumbnail 1190

In the top-left, we have general-purpose retrieval tools, read-only tools. This is, for example, a business analyst at an insurance company who needs full functionality for SQL queries—read-only SQL queries—and wants to invoke them through an agentic AI workflow. This might be an MCP server tool that we provide for many AWS databases, such as Aurora or DSQL. To the right of that, we have the data modification version. This is very powerful; basically, it can perform generic SQL execution and the like. It can create, delete, and read generic data within the data store. You probably wouldn't offer this to customers; you'd likely provide it to internal developers.

Thumbnail 1220

Thumbnail 1230

You might be accessing it through Kairo, Claude Code, or similar. Now, down below, the specialized read-only calls are like the ones we've built in our examples, such as retrieving a vehicle by VIN. They are read-only, but specialized; you can't learn about tractors, only about cars. And the data modification version of specialized tools—in our example, this might be when you want to save the progress of a quote or calculate an insurance premium.

Thumbnail 1270

In short, the most business value is likely packed into this bottom row, the specialized ones. These are the tools you're building for your customers to invoke. Since they are for frequently executed tasks, they are worth the effort, and you get better performance, too. Now that we have this classification, we can see how it maps to the personas we're assuming as users and customers within the business. In the top-left, we have data analysts and engineers. They are running read-only queries against general-purpose data.

If you took the term "MCP" out of your heads right now, this diagram would probably look quite familiar. This is what business intelligence tools and the like are doing, right? MCP is just providing a different perspective to think about this. The top-right is for developers and DevOps folks, and the bottom is for end-users and consumers. It changes depending on whether they are performing reads or writes. I think this sets up a framework for further thought on this topic. Now, I'll hand it over to Siva, who will explain the data behind the tools.

Addressing Data Challenges: Building a Data Marketplace Architecture

Thank you, Tim. So, everyone, where does the data behind the tools come from? You might think you already have many challenges on the data side. There are data quality issues, you might need to track data lineage, and there might be existing systems that are running and have APIs. How do you convert that into MCP tools, pass them to agents, and what about security end-to-end? These are the questions we are getting from customers.

Thumbnail 1360

Thumbnail 1380

In the next section, I will explain how to address these challenges. Also, as an architect, I'm always thinking about whether there is a reference architecture I can provide to customers. I saved the best for last, so I'd like to wrap up with a reference architecture and, of course, a call to action. Let's look at it in detail. At a technical level, where does the data come from? Data comes from operational databases. These might be things you're running on MySQL, Postgres, Oracle, SQL Server, or NoSQL databases like DynamoDB, DocumentDB, or MongoDB.

Thumbnail 1430

It can also come from data warehouses—data warehouses like Redshift or Snowflake. Or you might have data in open table formats like Iceberg, with this data in Parquet format on S3. SageMaker, Lakehouse, or other lakehouses. Or perhaps you have streaming data coming into the organization, residing in streaming data sources like Kinesis or Kafka. Let's look at this challenge from a business level.

This is AnyCompany.com Insurance. This is the company example Tim mentioned, and Terry is trying to purchase insurance from them. Looking at this, every company has multiple departments, right? For example, claims history comes from the claims department. They are the data producers for this dataset. And the legal department might have information on rules and regulations, and this company might be obtaining data like accident records from the DMV. If there's usage-based insurance, that data might need to be obtained from a telematics dataset, right?

Thumbnail 1480

In other words, this configuration has data producers and data consumers. And whenever you have multiple departments, producers, and consumers, you will inevitably face the problem of data silos. And data quality issues come up as well. For example, if the sales department and the marketing department both have information about a customer, you need to merge all the fields, and that should be reflected in a Customer 360, right? There is also the issue of data lineage.

How do you track data lineage? There is personally identifiable information (PII) like social security numbers. If there's a crash and a claim occurs, medical information gets involved. You can't just pass this to every user. And then there's access control: who can access this, and what are their permissions? All these challenges are further magnified in the world of agents. Because agents are applications. They operate much faster than humans. They know how to navigate various paths and access them. You want to ensure that you send the agent down the right path, with appropriate governance, security checks, and filters along the way. That way, you ensure the agent doesn't pass the wrong dataset to end-users or internal users.

Thumbnail 1560

So, as an architect, how do you deal with this? You're probably familiar with Data Marketplace Architecture. Some people call this a data mesh. I use the term Data Marketplace Architecture. What this architecture says is, let's imagine our company as data producers and data consumers. For example, the claims department is a data producer for claims. And the underwriting department, which consumes this dataset to evaluate customer risk, is actually a data consumer. Usually, the data producer is responsible for data quality. Because they generate the data. For them, it's often much easier to set some data quality rules and confirm that the data they generate actually complies with the expected standards.

And data consumers like the underwriting department usually discover the dataset and then subscribe to that dataset. You can also use these primitives to address some of these problems. Let's take a look. You probably want to take three steps. First, build a Data Product Marketplace. Now, when I tell customers this, the common question is, won't that take years, maybe even longer? Therefore, I think we need to be a bit more pragmatic here. You could build all these data products for the company and try to boil the ocean, and perhaps you should continue doing that. However, once you identify some key use cases for Agentic AI, you should probably prioritize those use cases, build the data products associated with them, identify the data producers and consumers, and start from there; that is very practical.

Thumbnail 1630

Thumbnail 1670

And how do you supply these data products to agents? Let's build a Data API on top of them. If you have claims history, given customer information, you can actually retrieve all claims information related to that customer. Why should you do that? The fact that you've created a data product—it's likely a table in a lakehouse. An agent could technically select everything from the table, but in reality, you want to be a bit more cautious. You want to create a specialized path. If an external customer comes in through an agent and requests it, you actually want to restrict that usage only to data that belongs to them. Building an API on top of that makes a lot of sense.

Another important point is that no one will do this for you. You own the data. You know what this dataset is. You know what your business procedures and practices are. And actually building these APIs is a responsibility that belongs to us, the producers and consumers of the data. And again, another challenge for agents in our industry right now is that everything is changing daily or weekly. As an architect, must I always think about how to build things in a world that is constantly changing? I build primitives. They can be very useful today, tomorrow, and the day after. And clearly, you can leverage Agentic AI to build these APIs. They make my job much easier, but they do need verification. You need to build them yourself.

Thumbnail 1760

Transitioning from Traditional Applications to Agentic AI: External Customer and Internal User Experiences

After doing that, the next step is to hand this over. How do you hand this over to an agent? You can expose these APIs as MCP tools. To give you an example, something like Amazon Bedrock AgentCore Gateway becomes quite useful here. As long as you have an API, you can actually define it using the OpenAPI Standard. If you register it with AgentCore, it will actually expose that API as an MCP server and as a tool on your behalf, so you don't necessarily have to do it yourself. Or, if you really want to create an API, you can simply write a Lambda function in Python or your preferred language and expose it to the AgentCore Gateway, and magically, these tools become available to your agent. Now, what happens when you do that?

Thumbnail 1810

Your agent has the brain to choose the right tool for the job. When a user requests a specific function, the agent can reason about that request. It looks through the tool repository it has and identifies the tool suitable for the job. Or, you can guide this with prompt templates.

Thumbnail 1830

Thumbnail 1840

Now, we may have addressed some of the data silo problems. Let's take these principles and apply them to how you transition traditional applications into agentic AI applications. Before we go there, I want to clarify who the audience is for this agentic experience we are creating and who the users are. Again, back to the AnyCompany Insurance example. It's easier to explain there.

Thumbnail 1860

Thumbnail 1870

Tim mentioned Terry wanting to purchase car insurance or file a claim. This is one user class. People who are outside our company and want to accomplish something by talking to us. That is the external customer. Now, looking inside the company, there might be data producers and data consumers. In this case, I will use Nikki as an example. Nikki is a claims investigator. Nikki actually wants to see all claims that occurred in a specific state.

Thumbnail 1900

Nikki lives in Nevada and is in charge of Nevada. And when she investigates claims, she wants to retrieve all claims exceeding a certain amount to check for fraud. These are internal users. And then there might also be data engineers. In this case, Jane is a data engineer who wants to build new data products. We talked about telematics. Perhaps she wants to subscribe to a telematics dataset from a telematics provider, host that dataset as a data product, and make it available for departments like underwriting.

Thumbnail 1930

In other words, generalized, an agentic application potentially has three access paths. Now, with this as background, perhaps AnyCompany doesn't have an agentic experience. Today, what Terry does is probably access the insurance website, fill out the appropriate form, and say, "I want to purchase insurance" or "I want to file a claim." So, how do we turn this into an agentic experience?

Thumbnail 1950

Presumably, there's already an API. When Terry fills out and submits a form, your web server is likely already calling an API, and that is implemented in the application server. By simply converting that to an MCP tool, suddenly you can connect that tool to an agentic application. And the wonderful thing is, voilà, you have an agentic experience you can offer and start building.

In short, what you see generally today is not a complete revolution. Migrating an application from a non-agentic experience to an agentic experience is an evolution for most customers. And the idea of thinking of existing functions as APIs, exposing them as MCP tools, and passing them to an agent is a powerful mechanism for plugging them in.

Now, we talked about RAG. Two years ago, RAG was the answer to whatever the question was, right? RAG hasn't gone anywhere. The great thing about RAG is that if I say I live in Nevada and want insurance, you can say there might be some rules and regulations associated with that. If you have a vector database containing all these documents explaining the rules for purchasing car insurance in Nevada, it's likely already chunked and stored in a vector data store.

What this does is, given a string like "I want to buy car insurance," it retrieves the related information and passes it to the agent, the reasoning loop. And this, too, can simply be exposed as an API. The input is a string, and the output is a set of incoming documents. So, these, too, could potentially be exposed as semantic APIs.

Thumbnail 2060

Let's look at the internal user experience. How does this unfold? For an internal user, again, I'll take Nikki as an example. She is a data consumer. And in this case, Jane is a data producer. Usually, today, Nikki accesses some BI tool and says, "Please give me a list of all claims larger than a certain value." She sorts them, picks the top 5 or 10, and then starts her investigation. That is the current experience.

Now, Jane likely wants to find a way to subscribe to this telematics provider to move this dataset.

Thumbnail 2120

Since it's IoT data, the current path is to place this data in Kinesis or Kafka, build some streaming workflow, create a data pipeline, and place this in an open table format on S3. AWS is currently very busy building many MCP servers for all the services we have. From what I've seen, there are various MCP servers with varying levels of maturity. As Tim pointed out, you can also build them yourself if you want to enhance them. And imagine all query engines and data processing engines being front-ended by MCP servers and tools. Once you register the tools with an agent, suddenly, instead of specifying or writing SQL queries, Nikki can simply ask the agent, "Please give me a list of high-value claims in Nevada." It's that simple. The underlying tools know how to translate that, and we will look at this full experience a little later.

Similarly, Jane can create long-term memory, prompt templates in the data engineering team. Perhaps there is a data engineering agent they trained, and there are templates like "If you have IoT data, do this." The organizational standard might be Kafka. They might use MSK. This is a managed service for Kafka. They might be used to Spark. They might want to use Spark Streaming. If all these are templated again, Jane can simply say, "Create an MSK, Kafka topic, fetch data from a third-party provider, and stage it in S3." The agent knows what the tools are, actually goes through the reasoning loop, understands, gets confirmation from Jane, and can deploy this entire thing. This magic happens just by exposing existing functionality as tools to an agentic application.

Thumbnail 2230

Thumbnail 2240

Thumbnail 2250

Thumbnail 2290

Governance for Data Consumers: Fine-Grained Access Control in Nikki's Case

So, this looks pretty good, right? How does governance actually work under the hood? This is quite important, isn't it? Let's put this into action. Nikki, as a claims investigator, has a role. When she uses the claims investigator role, how does it actually function? For example, if she says, "Show me all high-value claims in Nevada," what happens? The moment Nikki connects to the agent, the agent inherits that characteristic and assumes the role of an investigator. And what happens is, the agent is smart enough to say, "By the way, Nikki is asking about collision claims and such. I need to look up in the business catalog what this means." Assuming tools are registered, the agent says, "Let's check it out, let's find the data product." It calls the SageMaker business catalog and asks, "Are there any data products related to claims?" This catalog contains metadata describing what those data products are—claims, policies, etc.

Thumbnail 2310

Thumbnail 2350

As soon as the first call is made, it retrieves a list of claims and policies. Now, here, the agent inherits the investigator role, so there are restrictions. It cannot see all data products. It only accesses what the claims investigator department can access. Basically, it lists from the catalog only the data products related to the user, the use case, and those Nikki is authorized to access. The same thing happens. The next step is to get the data product and say it is supported by several tables, such as the claims table and policies table. Then, it checks the technical catalog, saying, "I'll get the structure of these tables." As it retrieves that, the context continues to build up, just as Tim showed. We are in that loop, building the context for this agentic application.

Thumbnail 2370

Next, it says there are tables, and it needs to retrieve data from them. It says, "Let's call it; I have a list of tools." AWS has created a data processing MCP server and uses Athena as the engine, so it says, "Let's actually use Athena; it's like query-as-a-service, no need to provision clusters. I just pass the query, and it executes it and gets the results." It starts an Athena session and simply packages the select statement built from the table metadata. Remember, Nikki hasn't said anything about a query. The agent builds it for her and passes it to Athena.

Now, before Athena retrieves this data, it communicates with Lake Formation to apply filters, including column-level and row-level filters. For example, suppose the claims dataset has personally identifiable information and contains data for all states. Lake Formation actually looks at the query and says, "You are requesting all this data, the entire dataset. However, I won't allow that." Lake Formation says, "I'll apply a column filter. I'll rewrite the query and add a WHERE clause because you are only in charge of Nevada. I'll show only Nevada records. And I'll mask and remove the Social Security number column because you shouldn't have access to it." This happens automatically. Isn't that amazing?

Thumbnail 2460

Thumbnail 2470

Thumbnail 2480

Now, remember, the user hasn't asked anything about that. Lake Formation is simply looking at permissions, and this magic happens internally. After that, the usual process occurs. Athena executes the query in the investigator's context, ensuring that only the parts of the S3 keyspace that she—or rather, the agent—is authorized to access are used for data retrieval. It is then sent back to the user, and the agent generates a report and sends it back to Nikki. This is how governance works for internal consumers.

Thumbnail 2490

Next, let's look at some key elements of data consumer priorities in agentic technology. When providing an experience for data consumers, you need to care about data quality in the loop. If a data quality score is associated, the agent can also set constraints on Nikki's behalf, such as "Only publish this dataset if the column data quality rule is 95% or higher." I didn't show this in the agentic loop, but it could be part of the prompt template. If data quality is required, you can build it into the agentic call.

Data discoverability becomes very important. The agent needs to search the business catalog, potentially retrieve data products, and associate them with technical catalog column metadata to get results. I'll talk a bit more about how this trusted identity propagation works. Hang on. However, when I said that when Nikki logs in, "By the way, this agent actually assumes the role," how does that actually happen? You'll need some primitives. AWS IAM, and OpenID Connect and OAuth2. Rather than getting into those details, let me show you how it actually works internally. Suppose there is a user. The user first logs into their portal via the agent portal.

At that point, what happens is the user is authenticated with a federated identity provider. In the case of enterprise identity, think of Okta or similar. Basically, the user says, "Hello, this is my user ID, this is my login, this is the MFA token on my device." Once you enter that, something called a JWT token is sent. I didn't fully understand what this was myself. I was just starting to understand it in detail. As data practitioners, we need to understand the primitives of what these things mean.

The easiest way to imagine this is as a driver's license.

We are talking about insurance, and a driver's license is easy to use. A driver's license contains your name, photo, signature, and age details. That's your ID. When you hand that ID to someone else, they look at it, look at your photo, and say, "Yeah, I think this is the person." It also contains entitlements, such as information on what class of vehicle you can drive. I live in Washington state, and the default is a Class C driver's license. It's not listed, but that's the default. Also, I have Restriction B, which means in the US, I must wear glasses or contact lenses to drive a car. That is an entitlement.

Thumbnail 3050

Thumbnail 3060

Thumbnail 3070

Thumbnail 3080

Thumbnail 3090

A JWT token is an access token and a permission token. It looks like this. When you send a token to an agent, that token must be passed through. There are several use cases here. One is when the identity provider doesn't change within the organization. That's Nikki's use case. When Nikki executes a query, it is passed to the tool. At each stage, it checks with the identity provider if necessary. Then, it faithfully passes the identity token and access token to the API. The same path continues beyond the API. These credentials may be exchanged for temporary AWS credentials via single sign-on, which then communicates with the database. Or, you can retrieve details from a secure store using user ID and password.

Thumbnail 3100

Then, there is another path. Remember Jane's case. Jane is actually fetching a dataset from a telematics provider. The telematics provider might be using a different identity provider. In that case, you need to exchange credentials. It's like showing a driver's license; if you go to a different country, a US driver's license won't work. You have to go to AAA and say, "Can I get an International Driving Permit?" What they do is look at your ID and give you new credentials. They print this paper and say, "This is your international driving permit." Then, when you go to another country, you show that, and you can rent a car. That is what actually happens.

Thumbnail 3150

Thumbnail 3170

Bedrock identity can actually do that. It acts as a token vending machine on your behalf. It takes the token and provides other tokens that can be used in other systems. That's what happens, as you can see here. And it faithfully sends those tokens to the tools, which are propagated to the API calls it makes. At that point, these credentials can be converted into IAM credentials that can be used to access the data store. Or, in this case, converted into the credentials needed to access this third-party telematics use case.

Thumbnail 3190

This is extremely important. As data practitioners or AI practitioners, we must deeply dig into how to instruct an agent to act on our behalf. This is crucial. Otherwise, it might do unpredictable things. Now, summarizing everything, this is the last slide set. Ready? Five minutes, right? So, this is the most exciting part for me. I will try to summarize all of this into a single reference architecture that I hope you can see. Let's go.

Thumbnail 3200

The Big Picture of Reference Architecture: An End-to-End Solution Centered on Amazon Bedrock AgentCore

Here is the external user. This is where Terry comes and asks a question. "I want to buy car insurance." You are running an agent app and building an agent app. Perhaps you are using Strands, or LangChain, or other frameworks. Well, we think Amazon Bedrock AgentCore is the best place to run this. Why? Because it provides a very secure, containerized runtime. That is, it is owned by its execution. Tim talked about memory, short-term and long-term memory. Those structures are there. We also talked about gateways. If you have an API, you can quickly expose it as a tool using a gateway. We also talked about identity, the process of showing your ID to AAA to get another ID. All those magic things can actually be simplified by AgentCore identity. That is why we feel AgentCore is currently the best place to run this, even though there are some things we haven't discussed yet.

Thumbnail 3260

Thumbnail 3280

Thumbnail 3300

This doesn't have to be for external customers. Your internal teams will potentially have agents to build as they move forward. Or this might be something like an IDE, an agentic IDE like Quiro or other IDEs, where you input a prompt and use it for internal deployments, as long as all the tools can be connected to it. This is what it looks like. Remember Amazon Bedrock LLMs. Amazon Bedrock has a choice of every LLM from Meta to Anthropic. We add some LLMs every year because you can use the LLM suitable for the reasoning task. That is, we provide a choice of LLMs. And remember Amazon Bedrock Knowledge Bases.

Amazon Bedrock can take your strings and search knowledge bases on your behalf to retrieve additional information. There are many features for Postgres. If you have a Postgres engine and use SQL, if you are familiar with it and want to use the engine, you can use the vector capabilities of Postgres via PGvector. OpenSearch is great for combining vector search and traditional search. There are many tools there.

Thumbnail 3350

Thumbnail 3360

If you are doing GraphRAG, you can use Neptune as a vector store. You can perform both graph traversal and vector search there. We also added S3 vectors. This is what Milan talked about yesterday. You can use that and expose it as an MCP tool. Yes, we talked about this API, right? One that retrieves related information when you pass it a string. If you have an MCP server, you can build an MCP server for that and expose it as a tool.

Thumbnail 3370

Now, this is the frontend. Tim talked about packaging this as an API. Remember the special-purpose paths Tim talked about? You are creating canned queries and APIs. Well, if you expose them as MCP tools, both customer-facing agents and internal agents can actually interact with those backend engines. From Aurora to DynamoDB, ElastiCache, Redshift, and Athena, there are many features. And the list keeps growing based on which tools you need and which engines perform best. You can expose APIs and canned queries through this tool.

Thumbnail 3400

Now, what about the backend? There is a data processing engine. This is where Jane provisions Kafka topics and runs Glue jobs. This sequence of flows can be orchestrated by tools. This completes the diagram I have been drawing with great focus. I hope you understood it well. At least for me, I feel this is a reference architecture. Of course, we will continue to make changes and adjustments. Feedback on this is more than welcome.

Thumbnail 3450

Left is the agent, right is the data. MCP is like this big USB-C, connecting data and AI. And this is where the magic happens, everyone. So, I'd like to close with a call to action. For me, specific-purpose paths are something you must build. I recommend starting by building data APIs. As Tim pointed out, they are very easy to build and provide a secure path. However, you can also build data products and provide slightly riskier, generalized paths. You can use both, but I strongly recommend building APIs and exposing them as MCP tools via the MCP protocol.

Thumbnail 3500

As we discussed, data governance and end-to-end security are top priorities. These should be considered from day one, not after the agent has provided data it shouldn't have. Finally, we are working hard to simplify this experience for you. By doing so, you can focus on your business and leave the rest of the tedious work to us. So, I'd like to end the session. Thank you. I hope this session was meaningful. We look forward to your feedback.


This article was automatically created using Amazon Bedrock, maintaining the original video content as much as possible.

Discussion