Agents and agentic workflows: MLA-C02 study notes and practice questions
What to know about Agents and agentic workflows for the MLA-C02 exam, from the Deployment and Orchestration of ML and AI Workflows domain (24% of the exam guide), then 1 free question to test it. Part of the MLA-C02 study guide.
A public library is building a patron assistant agent with an open-source agent framework, hosted on Amazon Bedrock AgentCore Runtime. The agent must look up patron records and place holds through two existing REST services that have OpenAPI specifications, and renew loans through an existing AWS Lambda function.
The team wants the agent to discover and call all three as tools through one Model Context Protocol (MCP) endpoint that authenticates the agent. It does not want to write, host or patch its own MCP server.
Which solution meets these requirements?
Choose one answer.
AA. Build a custom MCP server in a container on Amazon ECS that wraps the two REST services and the Lambda function, and connect the agent to it.
BB. Create an Amazon Bedrock knowledge base over the two OpenAPI specifications, so that the agent can retrieve the API details and build the HTTP calls itself.
CC. Put an Amazon API Gateway REST API in front of the services and the Lambda function, and list the endpoint URLs in the agent's system prompt.
DD. Create an AgentCore Gateway with targets for the two OpenAPI specifications and the Lambda function, and point the agent at the gateway's MCP endpoint.
Show the answer and explanation
Answer: D
A. Wrong: A custom MCP server can expose the same tools, but the team would write, host and patch it, which the stem rules out. A managed gateway provides the MCP endpoint and authentication without that work.
B. Wrong: A knowledge base retrieves text for answers, and it does not call APIs or authenticate the agent. The agent would still have no managed tool endpoint for the lookups, holds and renewals.
C. Wrong: API Gateway exposes HTTP endpoints but not MCP tools, so the agent gets no tool definitions to discover. URLs in a prompt also leave the request format and authentication to the model.
D. Right: Correct. AgentCore Gateway converts APIs described by OpenAPI specifications and Lambda functions into MCP-compatible tools behind one endpoint, and it handles inbound authentication for the agent. The library writes and hosts no MCP server. Learn more: Amazon Bedrock AgentCore Gateway (opens in a new tab)
Explanation
AgentCore Gateway turns existing APIs, defined by OpenAPI specifications, and Lambda functions into MCP-compatible tools that an agent discovers and calls through one managed endpoint with inbound authentication. A self-hosted MCP server adds the operations the team wants to avoid, a knowledge base does not call APIs, and URLs in a prompt give the agent no tool definitions.
Want more on Agents and agentic workflows? The 5 full-length practice sets have 11 more Agents and agentic workflows questions, 325 in all, none of them in the free exam. One payment of $14.99, no subscription. See the practice sets →