How can a stateless MCP server be hosted?
Why B is the answer
On AWS Lambda functions
A stateless MCP server fits AWS Lambda, because each tool call can be handled on its own.
In detail
- A stateless server runs well on Lambda functions.
- Keep state outside the function.
Use case
An illustrative scenario, not a real incident.
A team hosts a stateless MCP server on Lambda, so it runs only when an agent calls it.
See it in different ways
sequenceDiagram participant A as Agent participant T as Tool participant D as Durable storage A->>A: Reason A->>T: Act, with a timeout T-->>A: Result or clear error A->>D: Save state A->>A: Observe, then decide
sequenceDiagram participant P0 as Agent participant P1 as Lambda MCP server participant P2 as Data source P0->>P1: Tool call P1->>P2: Fetch P2-->>P0: Result
Key point: Lambda can host stateless MCP servers.
Why the other options are wrong
- A. In Amazon Bedrock Prompt Management
- Prompt Management stores prompts.
- C. On an Amazon SQS queue
- A queue does not host a server.
- D. In an Amazon S3 bucket, as static files
- Static files cannot run a server.

