MCP, A2A & Interoperability
18 questionsDONEUNLOCKEDLOCKED
MCP & A2A Interview Questions
The protocols that connect agents to tools, to each other and to the people using them. What MCP standardises and what it leaves to you, including its 2026 stateless revision; delegation with A2A 1.0; streaming a run to a user interface with AG-UI; generative UI with A2UI and MCP Apps; and where authorization sits at each boundary.
Worked answers that trace the run, put each decision on the right side of the authority line, and end with the follow-ups and scoring a panel applies.
You have 5 free answers unlocked here.Sign in free for 1 more · 12 are premium.
01–08Foundationsthe mechanisms behind this topic, and the terms a panel uses for them0/8 done
09–15Core questionsthe questions this topic is most often tested on, with full worked answers0/7 done
16–18Field scenariosopen-ended designs, incidents and trade-offs where you must state what is missing0/3 done
The concepts behind MCP, A2A & Interoperability
Lessons behind these answers. The opening lessons are free; deeper ones are Premium.
Foundational
The Model Context ProtocolMCP defines host, client and server roles, tools, resources, prompts and versioned message contracts. The host still chooses the tool surface and the server enforces user permissions. Separate the legacy initialization exchange from current request metadata; verify the supported revision before integrating.Foundational
Agent-to-Agent Delegation with A2AThe Agent2Agent protocol (A2A), announced by Google in April 2025 and later moved to the Linux Foundation, lets independent agents, often built by different teams or vendors, delegate work to each other without sharing internals. A remote agent publishes an Agent Card describing its skills, endpoint and authentication; a client agent sends it a task; the task moves through states (working, input required, completed, failed and others); messages carry parts such as text, files and structured data; results arrive as artifacts, streamed or delivered by push notification. The caller holds a task id, not the other agent's tools or memory.Core
Authorization at the Protocol BoundaryWhen an agent calls a tool server or another agent for a user, authorization has to answer: on whose behalf, by which agent, to which service, for what. OAuth mechanisms answer most of it: audience-bound tokens (resource indicators) so a token works only at the intended server, token exchange so an agent obtains a narrower token for a downstream call instead of forwarding the user's, scopes requested incrementally as the task needs them, and no token passthrough. The server still makes the final decision per call, against the user's actual permissions on the specific resource, which is how confused-deputy failures are avoided.Sign in
Advanced
Long-Running Tool CallsSome tools take minutes or hours: a test suite, a data export, a background check. The asynchronous pattern starts the work and returns a handle; the caller tracks it by polling with backoff, a progress stream or a notification; the result is fetched when ready and kept for a stated time; cancellation and timeouts are explicit. MCP (experimental task handles since its 2025-11-25 revision) and A2A support this shape, but the rules are protocol-independent: idempotent start, a durable record of the handle, authorization bound to it, and no worker held while waiting.🔒 Premium
Advanced
Gateways and RegistriesOrganisations that connect agents to dozens or hundreds of tool servers converge on two components. A registry records each server and tool: owner, purpose, data classification, approved version and a fingerprint of its descriptions and schemas, so changes are reviewed rather than silently picked up. A gateway sits between agents and servers: it authenticates callers, exchanges tokens per backend, exposes to each agent only the tools its role and task allow, enforces policy on calls and arguments, applies rate limits and records an audit trail. Together they turn a sprawl of integrations into a governed catalogue.🔒 Premium
Advanced
MCP Without Sessions: The 2026 Stateless CoreMCP revision 2026-07-28 is the largest since launch and is breaking. The initialize handshake and session id are gone: each request carries its protocol version and client capabilities in _meta, and servers answer server/discover. Instead of calling back for sampling or user input, a server returns input_required with its questions and the client repeats the request with the answers. Tasks became an opt-in extension, list results carry cache lifetimes, and roots, sampling, logging and HTTP+SSE are deprecated with a year's notice. The protocol now load-balances like ordinary HTTP.🔒 Premium
Foundational
Streaming a Run to the User with AG-UIAG-UI, the Agent-User Interaction Protocol, was created by CopilotKit and is MIT licensed; 1.0 is a frozen specification backed by JSON Schema. A client sends one RunAgentInput (thread, run, messages, front-end tools, context, state) and receives an ordered stream of typed events: run lifecycle, text and tool-call chunks, state snapshots and JSON Patch deltas, reasoning, activity, subagents and custom events. Front-end tools are executed by the application, and a run can end in an interrupt that the next run resumes.Advanced
Generative UI with A2UI and MCP AppsGenerative UI lets an agent compose interface elements at run time without executing model output in your page. A2UI (Google, Apache-2.0, 1.0 in November 2026) is declarative data: the agent sends createSurface, updateComponents and updateDataModel messages, components form a flat list bound to a data model by JSON Pointer, and the client renders only components from a catalog it registered. MCP Apps, an official MCP extension, instead points a tool at a ui:// HTML template that the host renders in a sandboxed iframe and talks to over postMessage.🔒 Premium
Foundational
The Agent Protocol MapBy late 2026 agent systems had a protocol for nearly every edge. MCP connects an agent to tools and data. A2A delegates tasks to independent agents. AG-UI streams a run to a user interface, and A2UI or MCP Apps describe the interface itself. AP2 carries signed proof of what a user authorised an agent to buy, inside commerce protocols such as UCP and ACP, while x402 lets an agent pay per HTTP request. Several now sit under the Linux Foundation's Agentic AI Foundation. Each standardises an envelope; authorization, trust and verification remain design work.Advanced
The MCP Authorization Flow, Step by StepRemote MCP servers use OAuth. A request without a valid token gets 401 with a WWW-Authenticate header naming the server's protected resource metadata (RFC 9728), which lists its authorization servers. The client reads their metadata, registers (Client ID Metadata Documents preferred, Dynamic Client Registration deprecated in the 2026-07-28 revision), runs an authorization code flow with PKCE and the resource parameter (RFC 8707), checks the issuer (RFC 9207), and sends the token on every request. Servers check audience, never pass tokens through, and answer missing scope with 403 insufficient_scope.🔒 Premium
Advanced
MCP from the Wire Up: JSON-RPC, stdio and the Three PrimitivesBeneath every MCP SDK is a small protocol: JSON-RPC 2.0 messages (requests with ids, notifications without, results and errors) carried over a transport, which for local servers is a child process whose stdin and stdout carry one message per line. The server exposes three primitives that differ by who controls them: tools the model calls, resources the application attaches, prompts the user picks. A tool call has two kinds of failure that travel differently: a protocol error (the request could not be processed) is a JSON-RPC error, while a tool error (the tool ran and failed) is a normal result flagged isError that the model reads as an observation. Building a minimal server and client by hand makes the framing bugs (a stray print on stdout), the version negotiation (the 2026-07-28 revision replaced the initialize handshake with per-request metadata and server/discover) and the pagination of tool lists concrete, and makes every SDK readable afterwards.🔒 Premium
Advanced
Composing Many MCP Servers in One HostA host that connects to several MCP servers needs a layer between its agent loop and its clients, usually called a hub or aggregator. It owns one client per server and presents one tool list, and it solves four problems that appear only in composition. Name collisions: two servers each offer search, so the hub namespaces tools as server and tool and maps the model's choice back. Surface size: the union of every server's tools is more than the model can choose among well, so the hub shows a projection per task or a search step over the catalogue. Latency: calls to different servers in one turn run concurrently with a timeout per server, so one slow server cannot hold the turn. Failure isolation: a crashed or hanging server is contained to its own calls, restarted within a budget, and reported, while the other servers keep working. Each of these is host code, and each is measured: collisions caught at connect time, selection accuracy on a labelled set, turn latency against the slowest server, and the restart budget's exhaustion rate.🔒 Premium
FROM THE BLOG
Unlock all 18 answers · $25
All 19 topics with every worked answer, all lessons and courses, the full practice bank, and anything new that appears during your access.
6 months · One payment · No auto-renewal