How to become an AI Integration Engineer
Step by step and free: 12 phases, 85 topics and 286 graded practice questions.
Open any topic and mark it Learning, Done or Skip to track your progress. Sign in to save it to your account.
0 of 85 done · 0 learning · 0 skipped · Start with the first topic
Saved on this device only. Sign up free or sign in to keep your progress everywhere.
It's saved on this device only. Sign up free to keep it everywhere; your marks move into your account.
What is an AI Integration Engineer?
An AI integration engineer connects language models to the systems a business already runs, such as CRM, ERP, ticketing, document stores and data warehouses. They design tool calls and MCP servers over existing APIs, handle OAuth and acting on a user's behalf, map data between old and new formats, build event-driven and async workflows, and keep the whole thing secure, observable and ready for the next model migration.
Who this roadmap is for
Backend and integration engineers who already ship APIs, connect SaaS platforms or maintain enterprise middleware. Solutions and platform engineers fit too. You should be comfortable with HTTP, JSON, authentication and one server-side language. Training models and designing chat interfaces are out of scope; this is about plumbing AI into real systems.
What you will be able to do
You will be able to call model provider APIs with streaming and structured output, turn an existing API into safe tools and an MCP server, implement OAuth delegated access, build idempotent webhook and queue workflows, integrate legacy SOAP and batch systems, test around a nondeterministic model, and switch models or providers without breaking production.
The AI Integration Engineer roadmap
AI Integration Engineer
-
Phase 1 Integration foundations
-
Phase 2 Identity, OAuth and delegated access
-
Phase 3 Model provider APIs
-
Phase 4 Tool calling over business systems
-
Phase 5 Building MCP servers over enterprise systems
-
Phase 6 Connectors to business platforms
-
Phase 7 Events, workflows and async jobs
-
Phase 8 Data mapping and legacy systems
-
Phase 9 Testing integrations
-
Phase 10 Running integrations in production
-
Phase 11 Data boundaries and security
-
Phase 12 Migrating models and providers
All topics, in order
Mark each topic Learning, Done or Skip, and sign in to save your place to your account. Done is your own word, not passing: a topic is passed when you score 50 or more on its questions. This order is the study plan.
-
Phase 1 · Integration foundations
-
What an AI integration engineer does
An AI integration engineer connects model capabilities to the software a business already runs: the CRM, the ticket queue, the ledger, the document store. Most of the work is plumbing, so identity, contracts, retries, data mapping and audit matter more than prompt wording. Call an integration done when it survives the other system's outage, that system's owner has signed off, and anyone can trace a single call from end to end.
Reading
- Enterprise Integration Patterns: introduction to messaging enterpriseintegrationpatterns.com
- Anthropic: building effective agents anthropic.com
- Anthropic: writing effective tools for agents anthropic.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
The systems a business already runs
A system of record is the authoritative source for a kind of data, such as the ERP for invoices or the HR system for employees; systems of engagement, like chat or a help desk, are where people work with that data. Each has an owner, a change window and limits you will be held to. Before you build, write an inventory: each system, its owner, the data it holds, how you reach it and who must approve any write to it.
Reading
- Wikipedia: system of record en.wikipedia.org
- Martin Fowler: integration database martinfowler.com
- Martin Fowler: bounded context martinfowler.com
- Atlassian: IT change management atlassian.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Choosing an integration pattern
Four patterns cover most integrations: a synchronous request when a person waits for the answer, an asynchronous job when the work is slow, an event when other systems must react to a change, and a scheduled batch for large volumes with no urgency. Model calls are slow and variable, so work that can take more than a few seconds rarely belongs inside a synchronous user request. Choose by who waits, how much arrives and how fresh the result must be.
Reading
- Enterprise Integration Patterns: integration styles enterpriseintegrationpatterns.com
- Azure Architecture Center: asynchronous request-reply learn.microsoft.com
- Azure Architecture Center: event-driven architecture learn.microsoft.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
HTTP for integrators
HTTP defines GET, HEAD, PUT and DELETE as idempotent, so repeating one leaves the same state, while POST is not, which is why a retried POST can create a second record. Status codes tell you what to do next: 429 and most 5xx mean wait and perhaps retry, while other 4xx mean the request itself is wrong and retrying will not help. Always set a timeout, send and check Content-Type, and honour Retry-After when a server sends it.
Reading
- RFC 9110: HTTP semantics rfc-editor.org
- MDN: HTTP request methods developer.mozilla.org
- MDN: HTTP response status codes developer.mozilla.org
- MDN: Retry-After header developer.mozilla.org
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
API contracts: OpenAPI and JSON Schema
An OpenAPI document describes an HTTP API in a machine-readable file: paths, operations, parameters, authentication and responses, with request and response bodies written as JSON Schema. Treat it as the contract both sides build against: generate typed clients and mock servers from it, validate real traffic against it, and derive tool definitions from it rather than retyping them. When the document and the live API disagree, tell the owner before you code around it.
Reading
- OpenAPI Specification (latest version) spec.openapis.org
- OpenAPI Initiative: learn OpenAPI learn.openapis.org
- JSON Schema: specification json-schema.org
- OpenAPI Generator openapi-generator.tech
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
APIs and SDKs
An API is the contract; an SDK is a maintained client over it that adds types, authentication, retries, pagination helpers and stream parsing. Use the official SDK for the common path and drop to raw HTTP only for gaps, such as an endpoint the SDK has not shipped yet. Know what the SDK does on your behalf: a client that silently retries a write, or a major version that changes a default, alters behaviour without a line of your code changing.
Reading
- MDN: an overview of HTTP developer.mozilla.org
- Claude API: client SDKs platform.claude.com
- OpenAI: libraries and SDKs platform.openai.com
- OpenAPI Generator openapi-generator.tech
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Credentials and rate limits: the basics
Keep keys and secrets in a secrets manager, never in source control or a container image, and rotate them on a schedule and whenever someone with access leaves. Where the platform offers it, prefer workload identity, which hands out short-lived credentials, over static keys. Providers cap requests and tokens per minute and answer 429 when you exceed the cap, so throttle on your side to stay under the shared quota and back off, honouring Retry-After, when you hit it.
Reading
- Claude API: rate limits platform.claude.com
- MDN: 429 Too Many Requests developer.mozilla.org
- OWASP: secrets management cheat sheet cheatsheetseries.owasp.org
- Google Cloud: workload identity federation cloud.google.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Error handling and retries
Split failures into transient ones (timeouts, 429, 5xx, a dropped connection) and deterministic ones (a validation error, a missing permission, a malformed request), and retry only the first kind. Use capped exponential backoff with jitter so many clients do not hammer a recovering service in step, and bound the total attempts. Never blindly retry a write: without an idempotency key, a request that timed out may already have succeeded.
Reading
- AWS Builders' Library: timeouts, retries and backoff with jitter aws.amazon.com
- MDN: HTTP response status codes developer.mozilla.org
- Claude API: errors platform.claude.com
- Google Cloud Storage: retry strategy cloud.google.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
Chapter 1 lab
Write the instruction for a coding agent that connects a help desk to a model API
A prompt lab that closes the chapter: you write the instruction, and it is graded on a rubric.
Start the lab -
-
Phase 2 · Identity, OAuth and delegated access
-
OAuth roles and the authorization code flow
OAuth has four roles: the resource owner (usually a user), the client (your integration), the authorization server that issues tokens, and the resource server (the API) that accepts them. In the authorization code flow the user signs in and consents, the client receives a short-lived code and swaps it for tokens, and PKCE proves the swap comes from the client that started it. The OAuth 2.1 draft requires PKCE and drops the implicit and password grants, so treat code plus PKCE as your default.
Reading
- RFC 6749: the OAuth 2.0 authorization framework rfc-editor.org
- RFC 7636: Proof Key for Code Exchange (PKCE) rfc-editor.org
- RFC 9700: OAuth 2.0 security best current practice rfc-editor.org
- IETF: the OAuth 2.1 Internet-Draft datatracker.ietf.org
- Microsoft identity platform: authorization code flow learn.microsoft.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Client credentials for machine-to-machine calls
When no user is present, such as in a nightly sync, the client credentials grant lets your service get a token as itself. Where the authorization server allows it, authenticate with a JWT signed by a private key or with mutual TLS instead of a shared secret, because a secret can be copied and replayed. Request only the scopes the job needs, and remember that every action is attributed to the service, not to any person.
Reading
- RFC 6749 section 4.4: client credentials grant rfc-editor.org
- RFC 7523: JWT profile for client authentication rfc-editor.org
- RFC 8705: mutual-TLS client authentication rfc-editor.org
- Microsoft identity platform: client credentials flow learn.microsoft.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Access tokens, refresh tokens and validation
An access token is a short-lived bearer credential: whoever holds it can use it, so it travels only over TLS and never into logs. When it is a JWT, the resource server checks the signature against the issuer's published keys, then the issuer, the audience (this API), the expiry and the scopes. Refresh tokens live longer and fetch new access tokens; rotating them on every use means a stolen copy is caught when both copies are presented.
Reading
- RFC 7519: JSON Web Token (JWT) rfc-editor.org
- RFC 9068: JWT profile for OAuth 2.0 access tokens rfc-editor.org
- RFC 9700: OAuth 2.0 security best current practice rfc-editor.org
- Auth0: refresh token rotation auth0.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Service accounts and workload identity
A service account is a non-human identity for your code, with its own narrow permissions. Long-lived keys for it leak into files, images and laptops, so prefer the platform's workload identity: a managed identity in Azure, an IAM role in AWS, an attached service account in Google Cloud. To cross platforms, use federation: a CI job or another cloud presents its own signed OIDC token and swaps it for short-lived credentials, with no stored key at all.
Reading
- Google Cloud: workload identity federation cloud.google.com
- Google Cloud: best practices for service account keys cloud.google.com
- Microsoft Entra: managed identities for Azure resources learn.microsoft.com
- AWS IAM: roles docs.aws.amazon.com
- GitHub Actions: security hardening with OpenID Connect docs.github.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Single sign-on with SAML and OpenID Connect
Single sign-on lets the company's identity provider authenticate staff once for many applications, using SAML assertions or OpenID Connect ID tokens. An ID token tells your application who signed in; it is not an access token, so never send it to an API as one. Your integration inherits the user's identity and group claims, which you map to permissions, and a duty: when the identity provider disables someone, their sessions and tokens in your integration must end too.
Reading
- OpenID Connect Core 1.0 openid.net
- OpenID Foundation: how OpenID Connect works openid.net
- OASIS: SAML 2.0 technical overview docs.oasis-open.org
- oauth.net: OAuth is not authentication oauth.net
- RFC 7644: SCIM protocol for provisioning rfc-editor.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Acting on behalf of a user
When an AI feature reads a CRM or a mailbox for someone, it should use that person's permissions, not a broad service account that sees everything. Delegated flows do this: your backend exchanges the token the user signed in with for one the downstream API accepts, still bound to that user, through OAuth Token Exchange (RFC 8693) or a vendor flow such as Microsoft Entra's on-behalf-of. The system of record then applies its own access rules, so the model never fetches what the user could not open.
Reading
- RFC 8693: OAuth 2.0 token exchange rfc-editor.org
- Microsoft identity platform: on-behalf-of flow learn.microsoft.com
- OWASP: authorization cheat sheet cheatsheetseries.owasp.org
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Storing and refreshing users' connector tokens
Connecting a user's third-party account leaves you holding their refresh token, which deserves the care of a password. Encrypt it at rest with a key held in a key management service, store it against both the user and the tenant, and refresh access tokens only on the server. Plan the unhappy paths: a failed refresh after revocation or a password change means asking the user to reconnect, and offboarding means revoking tokens at the provider, not only deleting your copy.
Reading
- RFC 7009: OAuth 2.0 token revocation rfc-editor.org
- Google Identity: OAuth 2.0 best practices developers.google.com
- OWASP: cryptographic storage cheat sheet cheatsheetseries.owasp.org
- OWASP: OAuth 2.0 cheat sheet cheatsheetseries.owasp.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
-
Phase 3 · Model provider APIs
-
Calling a model API: messages and parameters
A chat model API is stateless: each request carries the system instructions, the full list of user and assistant turns, the model name and a maximum output token count, so your code owns the history. Read the stop reason on every response: reaching the token limit means a truncated answer, and a tool-use stop means the model is waiting for your result. Keep roles separate rather than flattening everything into one prompt, and budget tokens for input and output alike.
Reading
- Claude API: Messages platform.claude.com
- Claude API: handling stop reasons platform.claude.com
- OpenAI: text generation guide platform.openai.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Stateless and stateful provider APIs
Some provider APIs make you resend the whole conversation on every call; others can keep it on their servers, so you send only the new turn and an identifier, as OpenAI's Responses API does with stored responses and conversations. Server-held state saves bandwidth but ties your data, retention and migration path to that provider. Several providers also offer OpenAI-compatible endpoints, which ease switching but usually expose only part of each model's features.
Reading
- OpenAI: conversation state platform.openai.com
- OpenAI: migrating from the Assistants API platform.openai.com
- Claude API: OpenAI SDK compatibility platform.claude.com
- Gemini API: OpenAI compatibility ai.google.dev
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Reaching models through a cloud platform
The same model is often sold both by its maker and through a cloud platform, for example Claude on Amazon Bedrock, Google Cloud Vertex AI and Microsoft Foundry. The cloud route brings its IAM instead of an API key, its quotas and billing, and its regions, which can ease procurement and data residency. The price is drift: features and models can arrive later, and request shapes and model ids differ, so check every feature on the route you actually call.
Reading
- Claude on Amazon Bedrock platform.claude.com
- Claude on Vertex AI platform.claude.com
- Claude in Microsoft Foundry platform.claude.com
- AWS: what is Amazon Bedrock docs.aws.amazon.com
- Google Cloud: use Claude models on Vertex AI cloud.google.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Streaming responses
Streaming sends the response as server-sent events, a series of small deltas, so users see text at once and time to first token becomes the latency they feel. Your client must assemble the deltas, including partial tool-call arguments, keep the full text for logging, and pass a user's cancel on by closing the connection. A stream that ends before its final stop event is incomplete: mark it failed or retry, and never store it as a finished answer.
Reading
- Claude API: streaming messages platform.claude.com
- MDN: using server-sent events developer.mozilla.org
- OpenAI: streaming API responses platform.openai.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Structured output and parsing
When another system consumes the output, have the provider constrain generation to a JSON Schema, through structured outputs or a strict tool definition, instead of asking for JSON in the prompt; as of November 2026 OpenAI, Anthropic and Google all offer this. Validate anyway: a schema guarantees shape, not truth, and a refusal or a cut-off reply may not match it. When a value breaks a business rule, reject it for retry or review rather than quietly repairing it.
Reading
- Claude API: structured outputs platform.claude.com
- OpenAI: structured outputs platform.openai.com
- Gemini API: structured output ai.google.dev
- JSON Schema: specification json-schema.org
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Files, documents and images through the API
You can send a document or image inline in the request, usually base64 encoded, or upload it once to a provider's files API and refer to it by id across many calls. Each route has size, page and format limits, and the provider converts the file before the model sees it: a PDF may arrive as extracted text plus page images, so scans, handwriting and complex tables can lose detail. Check the limits per provider and test with your messiest real documents.
Reading
- Claude API: Files API platform.claude.com
- Claude API: PDF support platform.claude.com
- Claude API: vision platform.claude.com
- OpenAI: file inputs platform.openai.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Batch APIs for back-office volume
Batch APIs accept many requests at once, process them asynchronously within a window of up to 24 hours, and charge less: Anthropic and OpenAI both list half the normal price as of November 2026. They suit back-office volume, like classifying a day of tickets or reading invoices overnight, not anything a person waits for. Give every request your own custom id, expect some to fail or expire while the rest succeed, and resubmit only those, matching results by id, never by order.
Reading
- Claude API: batch processing platform.claude.com
- OpenAI: Batch API platform.openai.com
- Amazon Bedrock: batch inference docs.aws.amazon.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
Chapter 3 lab
Write the extraction prompt for a schema two consumers depend on
A prompt lab that closes the chapter: you write the instruction, and it is graded on a rubric.
Start the lab -
-
Phase 4 · Tool calling over business systems
-
Tool and function calling
Tool calling is a round trip: you send tool definitions (a name, a description and a JSON Schema for the inputs), the model replies with a call and its arguments, your code runs it, and you return the result so the model can continue. The model never executes anything itself; your code does, under your credentials and your checks. Return errors as results the model can act on, such as no customer with that id, try searching by email, so it corrects the call instead of guessing.
Reading
- Claude API: tool use overview platform.claude.com
- OpenAI: function calling platform.openai.com
- Anthropic: writing effective tools for agents anthropic.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Tool granularity and design
Give each tool one clear intent, a name that says what it does and a description that says when to use it and what it returns. A catch-all tool driven by an action string makes the model guess, while dozens of near-duplicates, one per field combination, crowd the context and blur the choice. Aim for the set a careful new colleague would want: a few tools, each matching a real task, with typed parameters and an example in the description.
Reading
- Claude API: how to implement tool use platform.claude.com
- Anthropic: writing effective tools for agents anthropic.com
- OpenAI: function calling platform.openai.com
Start the 5 questionsTest yourself on this topic
5 graded questions · scored out of 100 with feedback · free
-
Turning an existing API into tools
Generating one tool per endpoint from an OpenAPI file looks efficient but usually fails: hundreds of tools fill the context, endpoint names describe the backend rather than the task, and a simple request needs many chained calls. Start from what users actually ask for and design task-shaped tools, such as one that finds a customer and returns their open orders, which call several endpoints inside your code. Use the contract for types and validation, not as the tool list.
Reading
- Anthropic: writing effective tools for agents anthropic.com
- OpenAPI Specification (latest version) spec.openapis.org
- Claude API: how to implement tool use platform.claude.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Validating the arguments a model chose
Treat every argument the model chooses as untrusted input, like a form field from the internet. Check types, ranges and formats on your server, and check that the user behind the request may touch the record id the model supplied, which no generation-time schema can do. When the model gives a name instead of an id, resolve it in your code, and if several records match, ask the user which one rather than picking.
Reading
- OWASP: input validation cheat sheet cheatsheetseries.owasp.org
- OWASP: authorization cheat sheet cheatsheetseries.owasp.org
- OWASP GenAI: LLM05 improper output handling genai.owasp.org
- Claude API: tool use overview platform.claude.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Shaping tool results
A tool result goes straight into the model's context, so return what the next decision needs, not the raw record. Pick and rename fields to plain meanings, turn codes into labels, page or summarise long lists and say how many more exist, and cap the size of any single result. Large dumps cost tokens, crowd out earlier instructions and bury the one field that matters, and they can carry data the user should never see.
Reading
- Anthropic: writing effective tools for agents anthropic.com
- Claude API: how to implement tool use platform.claude.com
- Claude API: context windows platform.claude.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Write tools: confirmation, dry runs and approval
Keep read tools and write tools separate: a wrong read wastes a turn, but a wrong write changes a customer's record. Have a write tool first return a preview of exactly what will change, and commit only after a person or a policy confirms; set thresholds, such as refunds above a set amount, that always need a human. Give every write an idempotency key and an audit entry, and know how to undo it before you ship it.
Reading
- OWASP GenAI: LLM06 excessive agency genai.owasp.org
- OpenAI Agents SDK: human in the loop openai.github.io
- Stripe: idempotent requests docs.stripe.com
- MCP specification: tools (security and human in the loop) modelcontextprotocol.io
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
Chapter 4 lab
Write the tool-use instruction for a billing support assistant
A prompt lab that closes the chapter: you write the instruction, and it is graded on a rubric.
Start the lab -
-
Phase 5 · Building MCP servers over enterprise systems
-
Model Context Protocol (MCP)
MCP is an open protocol that lets any compatible AI application (the client) discover and call what a server exposes, so you build a connector to a business system once rather than once per app. Up to the 2025-11-25 revision, a client opened each connection with an initialize handshake that agreed the version and capabilities. As of November 2026 the current revision, 2026-07-28, drops it: every request carries its version and client capabilities, and servers answer server/discover.
Reading
- MCP specification 2026-07-28 (current revision) modelcontextprotocol.io
- MCP 2026-07-28: key changes since 2025-11-25 modelcontextprotocol.io
- MCP 2025-11-25: lifecycle and the initialize handshake modelcontextprotocol.io
- MCP 2026-07-28: server/discover modelcontextprotocol.io
- MCP: architecture overview modelcontextprotocol.io
- Model Context Protocol: introduction modelcontextprotocol.io
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Tools, resources and prompts: picking the primitive
An MCP server offers three kinds of thing. Tools are actions the model decides to call, resources are context the host application chooses to fetch and show, and prompts are templates a user picks on purpose. Decide by who should be in control: anything that changes a record or needs the model's judgement is a tool, read-only reference data the app can attach is a resource, and a repeatable workflow a person starts is a prompt.
Reading
- MCP 2026-07-28: tools modelcontextprotocol.io
- MCP 2026-07-28: resources modelcontextprotocol.io
- MCP 2026-07-28: prompts modelcontextprotocol.io
- MCP: architecture overview (primitives) modelcontextprotocol.io
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
MCP transports: stdio and Streamable HTTP
MCP defines two standard transports. With stdio the client launches your server as a local subprocess, so it runs on that user's machine with their credentials and serves only them. Streamable HTTP is a hosted endpoint that every message is POSTed to, which brings OAuth, Origin checks and load balancing with it. The older HTTP+SSE transport is formally Deprecated as of November 2026, so build new remote servers on Streamable HTTP.
Reading
- MCP 2026-07-28: transports overview modelcontextprotocol.io
- MCP 2026-07-28: stdio transport modelcontextprotocol.io
- MCP 2026-07-28: Streamable HTTP transport modelcontextprotocol.io
- MCP 2026-07-28: deprecated features registry modelcontextprotocol.io
- MCP: local server security modelcontextprotocol.io
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Stateless MCP servers
As of November 2026 the current MCP revision, 2026-07-28, has no sessions: no handshake and no Mcp-Session-Id, so any server instance can answer any request behind a plain load balancer. Each request brings its own version and capabilities in _meta. State you need across calls becomes a handle your server mints, such as a basket ID, which the model passes back and you check against the caller every time. When you need more from the user, return an input_required result and the client retries with the answer.
Reading
- MCP 2026-07-28: key changes (sessions and handshake removed) modelcontextprotocol.io
- MCP 2026-07-28: tools, including stateful tools and handles modelcontextprotocol.io
- MCP 2026-07-28: multi round-trip requests modelcontextprotocol.io
- MCP 2026-07-28: versioning and negotiation modelcontextprotocol.io
- MCP 2026-07-28: server/discover modelcontextprotocol.io
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Authorising a remote MCP server
A remote MCP server is an OAuth resource server, not an identity system. It publishes Protected Resource Metadata (RFC 9728) so clients can find its authorization server, and it accepts only tokens issued for its own URI, which clients request with the resource parameter (RFC 8707). As of November 2026 the spec prefers Client ID Metadata Documents for registering clients, keeps pre-registration, and lists Dynamic Client Registration as Deprecated.
Reading
- MCP 2026-07-28: authorization modelcontextprotocol.io
- MCP 2026-07-28: client registration modelcontextprotocol.io
- RFC 9728: OAuth 2.0 Protected Resource Metadata datatracker.ietf.org
- RFC 8707: Resource Indicators for OAuth 2.0 rfc-editor.org
- MCP: understanding authorization (tutorial) modelcontextprotocol.io
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Scopes and step-up authorisation
Advertise a small set of scopes that covers basic use, and ask for more only when an operation needs them. When a token lacks a scope, answer 403 with an insufficient_scope challenge that names every scope the operation needs in one go, not one at a time. The client then reauthorises with the union of its old and new scopes, so a user grants write access the first time they try to write rather than at sign-in.
Reading
- MCP 2026-07-28: scope challenge handling modelcontextprotocol.io
- MCP: security best practices (scope minimisation) modelcontextprotocol.io
- RFC 6750: bearer tokens and the insufficient_scope error datatracker.ietf.org
- RFC 9728: OAuth 2.0 Protected Resource Metadata datatracker.ietf.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Reaching downstream systems as the user
Your MCP server must never forward the token it received to the CRM or ticketing API behind it: that token was issued for your server, and passing it on (token passthrough) is forbidden by the spec. Exchange it for a token the downstream API accepts, through OAuth token exchange (RFC 8693) or your identity provider's on-behalf-of flow, so the call runs as that user. A shared admin credential turns your server into a confused deputy that reads what the user could not.
Reading
- MCP: security best practices (token passthrough, confused deputy) modelcontextprotocol.io
- MCP 2026-07-28: authorization security considerations modelcontextprotocol.io
- RFC 8693: OAuth 2.0 Token Exchange datatracker.ietf.org
- Microsoft identity platform: on-behalf-of flow learn.microsoft.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Enterprise-managed access to MCP servers
In a company, IT rather than each employee should decide which AI clients may reach which MCP servers. The Enterprise-Managed Authorization extension, listed as Stable for the 2026-07-28 revision as of November 2026, lets the client trade the user's single sign-on for an identity assertion grant (ID-JAG, still an IETF draft); the server's authorization server swaps that for an access token once the identity provider has checked policy. Gateways and allow-lists add a second gate.
Reading
- MCP: Enterprise-Managed Authorization extension modelcontextprotocol.io
- MCP: authorization extensions overview modelcontextprotocol.io
- MCP ext-auth repository (extension specifications) github.com
- IETF draft: Identity Assertion JWT Authorization Grant datatracker.ietf.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Wrapping an enterprise system as an MCP server
Wrapping a CRM or ticketing system starts with the tasks people ask for, not its endpoint list: find a customer, summarise open cases, draft a reply, each with typed arguments. Run every call as the signed-in user, enforce the system's own permissions and rate limits behind the tool, and log who called what. Treat the tool list as a public API: version it, and change names or arguments with the notice you would give for any other breaking change.
Reading
- MCP: build an MCP server modelcontextprotocol.io
- MCP 2026-07-28: tools modelcontextprotocol.io
- MCP: security best practices modelcontextprotocol.io
- Anthropic: writing effective tools for agents anthropic.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
-
Phase 6 · Connectors to business platforms
-
CRM platforms
A CRM holds the customer record, and every company has bent it with custom objects and fields, so read its metadata before you assume a field exists. Salesforce-style systems use their own query language and an API allowance shared by every integration in the org, while HubSpot-style ones cap requests per app and per time window. Build and test in a sandbox, and budget your calls, because your AI feature can starve the sales team's other tools.
Reading
- Salesforce Trailhead: API integration basics trailhead.salesforce.com
- HubSpot: understanding the CRM (objects and properties) developers.hubspot.com
- HubSpot: API usage guidelines and limits developers.hubspot.com
- Microsoft Dataverse: Web API overview (Dynamics 365 CRM) learn.microsoft.com
- Microsoft Dataverse: service protection API limits learn.microsoft.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
ERP and finance systems
An ERP holds the ledger, and the ledger has rules: entries post to an open period, balance, pass approval and are corrected by reversing, never by editing. That is why an AI step rarely writes to it directly. Have the model propose a draft journal, a coded invoice or a matched payment, let the ERP's own validation and an accountable person approve it, and keep the model's reasoning beside the document for the auditors.
Reading
- Microsoft Dynamics 365 Business Central: API v2.0 reference learn.microsoft.com
- Business Central: working with general journals learn.microsoft.com
- Oracle NetSuite: REST web services docs.oracle.com
- Odoo: external API odoo.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Ticketing and ITSM systems
Help desks and ITSM tools treat each ticket as a record with status, assignee, priority and an SLA clock, and every comment you add may email the customer. Write AI drafts as internal notes, or behind an agent's approval, rather than as public replies. Check how status changes start or pause SLA timers, and make automated updates idempotent, because a retried webhook that posts the same reply twice becomes a customer complaint.
Reading
- Zendesk: ticket comments API (public and internal) developer.zendesk.com
- Zendesk: API rate limits developer.zendesk.com
- Jira Service Management Cloud: REST API developer.atlassian.com
- ServiceNow: Table API reference servicenow.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Document stores and intranets
Shared drives, wikis and document libraries hold most of what a business knows, under permissions that change every day. Sync from the platform's change or delta feed rather than rescanning, store each document's access list with its content, and check it again at query time. Convert files carefully: tables, headings and comments in Office, PDF and wiki formats are easy to lose, and an answer built from a mangled table is confidently wrong.
Reading
- Microsoft Graph: delta query overview learn.microsoft.com
- Microsoft Graph: driveItem permissions learn.microsoft.com
- Google Drive API: retrieve changes developers.google.com
- Confluence Cloud: REST API v2 developer.atlassian.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Email, chat and calendar platforms
Mail, chat and calendar APIs reach into everyone's working day, so they are guarded hardest. You register an app, choose between acting as the signed-in user (delegated) or as the app across the whole tenant, and tenant-wide access usually needs an administrator's consent. Use event subscriptions instead of polling, renew them before they expire, and request the narrowest permission that works, because read access to every mailbox is a headline risk.
Reading
- Microsoft Graph: change notifications overview learn.microsoft.com
- Microsoft identity platform: admin consent learn.microsoft.com
- Slack: Events API docs.slack.dev
- Gmail API: push notifications developers.google.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Data warehouses and operational databases
Point AI reads at a governed view, a warehouse table or a read replica, never at the production database that takes orders. Use a dedicated service user with read-only grants on just those views, set statement timeouts and result limits, and watch query cost, because a model writing SQL can scan a whole table or hold locks. Row and column policies in the warehouse are how you keep each answer inside what the requester may see.
Reading
- Snowflake: overview of access control docs.snowflake.com
- BigQuery: authorized views cloud.google.com
- BigQuery: controlling query costs cloud.google.com
- PostgreSQL: hot standby (read-only replicas) postgresql.org
- PostgreSQL: row security policies postgresql.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Pagination, bulk APIs and incremental sync
Large systems hand data back in pages, and how you walk them decides whether you miss records. Prefer cursor or token pagination to offsets, which skip or repeat rows when data changes mid-walk. For the first load use a bulk export job, then keep up with delta tokens or an updated-since watermark, overlapping slightly and deduplicating. Deletes rarely show in a changed-since query, so use the platform's deleted-records feed or reconcile counts on a schedule.
Reading
- Google AIP-158: pagination google.aip.dev
- Stripe: pagination docs.stripe.com
- Zendesk: incremental exports (including deleted tickets) developer.zendesk.com
- Slack: cursor-based pagination docs.slack.dev
- Microsoft Graph: delta query overview learn.microsoft.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
iPaaS and workflow tools
Integration platforms and workflow tools connect common SaaS apps in hours and now ship AI steps, which suits simple, low-volume flows that operations people should own. Build your own when you need custom identity, exactly-once side effects, heavy volume, testing in CI or code review. Before choosing one, check where credentials and data live, how flows are versioned and exported, and the price per task once volume grows.
Reading
- Microsoft Power Automate documentation learn.microsoft.com
- n8n documentation docs.n8n.io
- Workato documentation docs.workato.com
- Enterprise Integration Patterns enterpriseintegrationpatterns.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
-
Phase 7 · Events, workflows and async jobs
-
Webhooks: receiving, verifying and acknowledging
A webhook is another system calling you, so verify it before trusting it: check the signature (often an HMAC over the raw body, an ID and a timestamp) and reject stale timestamps to stop replays. Acknowledge with a 2xx within seconds and do the real work, AI step included, from a queue. Senders retry, so expect the same event more than once and use its event ID to skip duplicates, as the Standard Webhooks spec recommends.
Reading
- Standard Webhooks specification github.com
- GitHub: validating webhook deliveries docs.github.com
- GitHub: best practices for using webhooks docs.github.com
- Stripe: receive events in your webhook endpoint docs.stripe.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Events and change data capture
An event says something happened, such as an invoice being paid, in an envelope with an ID, type, source and time; CloudEvents is a common standard for that envelope. Change data capture reads a database's transaction log and turns each insert, update and delete into an event without touching the application. That lets an AI step react to changes in a system you cannot modify, but publish business events where you can, since raw table changes leak internal schema.
Reading
- CloudEvents specification github.com
- Debezium documentation (change data capture) debezium.io
- Martin Fowler: what do you mean by event-driven? martinfowler.com
- Amazon EventBridge: events and event structure docs.aws.amazon.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Async and queues
For slow or bursty work such as summarising a long document, accept the request, return 202 with a job ID, and let workers pull from a queue at a rate your model quota can bear. Set the visibility timeout longer than the slowest job, or a second worker picks it up while the first is still running. After a few failed attempts, move the message to a dead letter queue and alert, rather than retrying it forever.
Reading
- AWS SQS developer guide docs.aws.amazon.com
- AWS SQS: visibility timeout docs.aws.amazon.com
- AWS SQS: dead-letter queues docs.aws.amazon.com
- Azure Architecture Center: queue-based load leveling learn.microsoft.com
- MDN: 202 Accepted developer.mozilla.org
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Multi-step workflows
An AI integration that classifies, looks up, drafts and writes back is a workflow, and each step should save its result before the next one starts. Then a failure in step four resumes at step four instead of paying for the model calls again or repeating a write. Steps that changed another system need a compensating action, such as cancelling a created order, because a workflow across systems cannot roll back like a database transaction.
Reading
- Temporal: what is a workflow docs.temporal.io
- AWS Step Functions developer guide docs.aws.amazon.com
- Azure Architecture Center: compensating transaction pattern learn.microsoft.com
- microservices.io: saga pattern microservices.io
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Idempotency and retries
An idempotent operation gives the same outcome however many times it runs, which is what makes retrying a timed-out write safe. Derive the idempotency key from the business action, such as the refund request's ID, send it on the first attempt and every retry, and keep it for longer than your retries can last. A fresh key per attempt, or a pause before retrying, deduplicates nothing.
Reading
- Stripe: idempotent requests docs.stripe.com
- AWS Builders' Library: making retries safe with idempotent APIs aws.amazon.com
- IETF draft: the Idempotency-Key HTTP header datatracker.ietf.org
- MDN: Idempotent developer.mozilla.org
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Exactly-once effects: outbox and inbox
A network cannot promise that a message arrives exactly once, so aim for exactly-once effects instead. A transactional outbox writes the business change and the event to send in one database transaction, and a relay publishes it, so you never save without sending or send without saving. On the receiving side, an inbox table records processed message IDs in the same transaction as the work, so a redelivered message is recognised and skipped.
Reading
- microservices.io: transactional outbox microservices.io
- microservices.io: idempotent consumer microservices.io
- Debezium: outbox event router debezium.io
- AWS Prescriptive Guidance: transactional outbox pattern docs.aws.amazon.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Ordering and concurrent updates
Events and webhooks can arrive out of order, and two writers, say an AI step and a person, can update the same record at once. Last write wins quietly throws one of them away. Carry a version or sequence number, ignore events older than what you have already applied, and write with a version check (an ETag with If-Match, or a version column), so a stale update fails and is retried on fresh data.
Reading
- RFC 9110: HTTP conditional requests rfc-editor.org
- MDN: If-Match header developer.mozilla.org
- MDN: 412 Precondition Failed developer.mozilla.org
- AWS SQS: FIFO queues and message groups docs.aws.amazon.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
Chapter 7 lab
Write the tool-use instruction for a refund agent that may be run twice
A prompt lab that closes the chapter: you write the instruction, and it is graded on a rubric.
Start the lab -
-
Phase 8 · Data mapping and legacy systems
-
Data mapping and canonical models
Two systems rarely mean the same thing by the same field: status codes differ, one stores local dates and the other UTC, one keeps money as a float in dollars and the other as integer cents with a currency code. Write the mapping down field by field, with units, null rules and the reverse direction. A canonical model shared by many systems saves work while it stays small and stable, and becomes a bottleneck once every team must agree on every field.
Reading
- Enterprise Integration Patterns: canonical data model enterpriseintegrationpatterns.com
- Enterprise Integration Patterns: message translator enterpriseintegrationpatterns.com
- RFC 3339: date and time on the internet rfc-editor.org
- SIX: ISO 4217 currency codes (maintenance agency) six-group.com
- Martin Fowler: Money pattern martinfowler.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Identifiers and entity matching
The same customer is 4417 in the CRM, C-00982 in billing and a slightly different name in support. Keep a crosswalk table that maps each system's ID to one internal ID, match on strong keys such as tax numbers or emails first, and use fuzzy or AI matching only for what is left. Score every match, auto-accept only above a threshold you have measured, and send the uncertain middle to a person, because a wrong merge is costly to undo.
Reading
- Splink: probabilistic record linkage moj-analytical-services.github.io
- Python Record Linkage Toolkit documentation recordlinkage.readthedocs.io
- Li et al.: deep entity matching with pre-trained language models arxiv.org
- Peeters et al.: entity matching using large language models arxiv.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Schema drift and upstream changes
Upstream systems change without telling you: a field is added, renamed or retyped, or its meaning shifts while the name stays. Read tolerantly, ignoring fields you do not use, but validate the ones you depend on and fail loudly when they vanish or change type. Watch value distributions too, because a status field that suddenly holds new values is silent drift that a model will happily turn into wrong answers.
Reading
- Martin Fowler: Tolerant Reader martinfowler.com
- Confluent: schema evolution and compatibility docs.confluent.io
- dbt: model contracts docs.getdbt.com
- JSON Schema: getting started json-schema.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
SOAP and XML services
Many banks, insurers and government agencies still expose SOAP services: XML envelopes described by a WSDL contract, errors returned as SOAP faults, and security often carried in WS-Security headers. Generate a client from the WSDL, harden the XML parser against external entities, and map faults to clear errors. Then wrap the operation behind a small JSON tool or internal API, so the model never has to produce or read XML.
Reading
- W3C: SOAP 1.2 primer w3.org
- W3C: WSDL 1.1 w3.org
- OASIS: WS-Security SOAP message security 1.1.1 docs.oasis-open.org
- OWASP: XML external entity prevention cheat sheet cheatsheetseries.owasp.org
- Zeep: a Python SOAP client docs.python-zeep.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Batch files and SFTP drops
Plenty of systems still exchange nightly files over SFTP: CSV or fixed-width records, sometimes with a header, a trailer or a separate manifest. Do not start until the file is complete, proven by a done file, a record count or a checksum, and make every load replayable so a bad day can be reprocessed. Quote CSV fields properly, fix the encoding, and quarantine rejected rows with a reason instead of failing or silently dropping the whole file.
Reading
- RFC 4180: the CSV format rfc-editor.org
- OpenBSD manual: sftp man.openbsd.org
- AWS Transfer Family user guide docs.aws.amazon.com
- W3C: CSV on the Web primer w3.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Mainframe and midrange edges
Core banking, insurance and logistics often run on mainframes and midrange systems that nobody wants an AI touching directly. Reach them through what already exists: a message queue, or an API layer that publishes existing transactions as REST. Their records are laid out by COBOL copybooks in EBCDIC with packed decimals, so decode them with the copybook rather than by guessing, and keep the system's owners in every change.
Reading
- Zowe documentation (open source APIs over z/OS) docs.zowe.org
- IBM MQ: developer patterns and sample clients github.com
- AWS Mainframe Modernization user guide docs.aws.amazon.com
- Python codecs: standard encodings (EBCDIC cp037, cp500) docs.python.org
- Martin Fowler: Strangler Fig application martinfowler.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
RPA, screen automation and computer use
When a system has no API, robotic process automation drives its screens the way a person would, and computer-use models now do the same from screenshots. Both break when the screen changes, both need their own named credentials, and both should log every step and screenshot for audit. Use them as a bridge while you press for an API, keep the model to read-only or reviewed actions, and never hand it an administrator's session.
Reading
- Anthropic: computer use tool docs.anthropic.com
- OpenAI: computer use guide platform.openai.com
- Microsoft Power Automate: desktop flows learn.microsoft.com
- Playwright documentation playwright.dev
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
-
Phase 9 · Testing integrations
-
A test strategy for AI integrations
An AI integration has three things to test: your own logic, its contracts with other systems, and the model's output. Cover your logic with fast unit tests that stub the model, each boundary with a contract test against a recording or sandbox, and the key paths with a few end-to-end runs. Put model quality behind its own eval gate, not ordinary assertions, so a flaky answer never hides a broken mapping.
Reading
- Martin Fowler: the practical test pyramid martinfowler.com
- Google Testing Blog: test sizes testing.googleblog.com
- Anthropic: define success criteria and build evaluations platform.claude.com
- OpenAI: evals guide developers.openai.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Mocks, fakes and recorded responses
A mock checks your code made the expected call, a fake is a working stand-in such as an in-memory CRM, and a recording replays real responses captured once. Recordings are cheap and realistic but freeze the world on the day you made them, so a vendor's new field or changed error goes unnoticed. Scrub secrets and personal data from every recording, and re-record against a sandbox on a schedule so drift fails a test.
Reading
- Martin Fowler: mocks aren't stubs martinfowler.com
- Martin Fowler: test double martinfowler.com
- VCR.py: record and replay HTTP interactions vcrpy.readthedocs.io
- WireMock: record and playback wiremock.org
- Mock Service Worker documentation mswjs.io
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Contract tests between services
A contract test checks that two services still agree on what passes between them, without running both together. With consumer-driven contracts, each consumer records the requests and fields it relies on and the provider replays them in its own pipeline, so a renamed field breaks the provider's build, not your integration. For APIs you do not own, diff each new OpenAPI document against the last and treat removed or newly required fields as breaking.
Reading
- Martin Fowler: contract test martinfowler.com
- Ian Robinson: consumer-driven contracts martinfowler.com
- Pact: how Pact works docs.pact.io
- oasdiff: detect breaking changes between OpenAPI documents github.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Vendor sandboxes and test tenants
Most business platforms offer a sandbox, developer account or test mode that behaves like production without real customers or money. It is rarely identical: rate limits, enabled features, seeded data and webhook delivery can differ, so note each difference you rely on. Seed data with scripts you can rerun, tag what your tests create and clean it up, and never copy real customer records into a sandbox to make it look realistic.
Reading
- Stripe: sandboxes docs.stripe.com
- Stripe: testing docs.stripe.com
- Microsoft 365 Developer Program learn.microsoft.com
- HubSpot: developer and test account types developers.hubspot.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Testing code around a nondeterministic model
Most of an AI feature is ordinary code: building the request, parsing the reply, calling tools, handling errors. Test it deterministically with fixed model outputs, including malformed and refused ones. Where the real model must run, assert on properties, not exact text: the JSON validates, the required field exists, the amount matches the source. Keep a small versioned eval set as a CI gate with a pass threshold, run on every prompt or model change.
Reading
- Anthropic: define success criteria and build evaluations platform.claude.com
- OpenAI: evals guide developers.openai.com
- promptfoo: running evals in CI/CD promptfoo.dev
- Hypothesis: property-based testing for Python hypothesis.readthedocs.io
- Martin Fowler: eradicating non-determinism in tests martinfowler.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Fault injection for dependencies
Failure paths are the code least often run, so they are the most likely to be wrong when a provider times out or a CRM returns half a page. Fault injection causes those failures on purpose: added latency, dropped connections, a 429 with Retry-After, a stream cut short, malformed JSON from the model. Write the expected outcome for each fault first, such as one retry then a queued job, and pass only if that happens.
Reading
- Toxiproxy: simulate network conditions github.com
- WireMock: simulating faults wiremock.org
- Principles of chaos engineering principlesofchaos.org
- AWS Fault Injection Service user guide docs.aws.amazon.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
-
Phase 10 · Running integrations in production
-
Observability
Observability means answering a new question about a live integration from data it already emits, without shipping code. For each model call, record a correlated trace with model id, prompt version, tools called, tokens, latency and error type, redacting personal data before it leaves the process. A status code cannot say which prompt or tool produced a wrong answer; a searchable trace can, and its id stored with each user report turns a complaint into evidence.
Reading
- OpenTelemetry: observability primer opentelemetry.io
- OpenTelemetry: GenAI semantic conventions github.com
- Anthropic: token counting platform.claude.com
- OpenAI: production best practices developers.openai.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Tracing across systems
One user request can cross an API, a queue, a webhook, a model call and an MCP tool. A trace follows it only if every hop passes the context on: the W3C traceparent header over HTTP, a message attribute on a queue, and for MCP the request's _meta, where the 2026-07-28 revision documents traceparent and tracestate keys. Where context cannot travel, such as a vendor's webhook, log your own correlation id on both sides.
Reading
- W3C: Trace Context w3.org
- OpenTelemetry: context propagation opentelemetry.io
- OpenTelemetry: semantic conventions for messaging spans opentelemetry.io
- OpenTelemetry: GenAI semantic conventions github.com
- MCP specification 2026-07-28: key changes modelcontextprotocol.io
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Rate limits, quotas and backpressure
Model providers cap requests and tokens per minute, and the business systems you call have quotas too, often shared with other teams. Throttle on your side before the limit instead of finding it through 429s: a token bucket per provider, a queue for bursts, and a priority lane so a waiting user never queues behind a nightly batch. When the queue is full, push back with a 429 or 503 and Retry-After rather than accept work you cannot finish.
Reading
- Anthropic: rate limits platform.claude.com
- OpenAI: rate limits developers.openai.com
- Azure Architecture Center: throttling pattern learn.microsoft.com
- Azure Architecture Center: queue-based load leveling learn.microsoft.com
- Google SRE book: handling overload sre.google
- Amazon Builders' Library: using load shedding to avoid overload builder.aws.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Fallbacks and degraded modes
A fallback is what the feature does when its primary model or system fails: another model or provider, a cached or rule-based answer, or a manual path such as handing the ticket to a person. Fallbacks that rarely run are often broken when needed, and a second model may answer in a different format, so test them on the same eval set and in drills. Trip them with a circuit breaker, make the degraded state visible, and return to the primary gradually.
Reading
- Amazon Builders' Library: avoiding fallback in distributed systems builder.aws.com
- Martin Fowler: circuit breaker martinfowler.com
- Azure Architecture Center: circuit breaker pattern learn.microsoft.com
- LiteLLM: routing, retries and fallbacks docs.litellm.ai
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Cost and latency
Cost and latency both grow with tokens and model size, so the strongest levers are fewer tokens and smaller models wherever they do the job. Route easy requests to a cheaper model, cache stable prompt prefixes, trim retrieved context, stream long replies, and send work nobody waits for to a batch API. Measure cost per successful outcome, not per call: a cheap model that needs retries or a human fix is not cheap. Recheck quality after every change.
Reading
- Anthropic: prompt caching platform.claude.com
- Anthropic: models overview platform.claude.com
- Anthropic: batch processing platform.claude.com
- OpenAI: latency optimization developers.openai.com
- OpenAI: prompt caching developers.openai.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
When a provider or system is down
When a provider or system you depend on fails, learn it from your own monitoring, not from users: alert on error rate and latency per dependency, and use the vendor's status page to confirm, not detect. Decide early whether to fail over, degrade or pause, tell users and system owners what still works, and keep queued work safe to replay. Afterwards, run a blameless review of what made the outage hurt more than it had to, and fix that.
Reading
- Google SRE book: managing incidents sre.google
- Google SRE book: postmortem culture sre.google
- Claude status page status.claude.com
- OpenAI status page status.openai.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Versioning and rollout
Pin an exact model version, not a floating alias, and version the prompt, tool definitions and output schema together, since a change to any one can change behaviour. Roll out a new combination like any risky release: pass the eval set, send a small canary share of traffic behind a flag, compare errors, cost and quality with the current version, then widen in steps. Keep the previous combination deployable so rollback is a flag flip.
Reading
- Anthropic: model deprecations platform.claude.com
- Martin Fowler: canary release martinfowler.com
- Pete Hodgson: feature toggles martinfowler.com
- Google SRE workbook: canarying releases sre.google
- OpenAI: deprecations developers.openai.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
Chapter 10 lab
Write the instruction for an agent that triages a complaint from traces
A prompt lab that closes the chapter: you write the instruction, and it is graded on a rubric.
Start the lab -
-
Phase 11 · Data boundaries and security
-
Minimising and redacting data before a model call
Every field sent to a model can leak through logs, provider retention or the answer itself, so decide per field whether the task needs it. Build prompts from an allowlist of fields rather than whole records, and mask personal data the task does not use, such as replacing a name with a placeholder token. If the reply must show the real value, swap it back after the call inside your own system, and keep that mapping out of prompts and logs.
Reading
- OWASP GenAI: LLM02 sensitive information disclosure genai.owasp.org
- Microsoft Presidio: PII detection and anonymization microsoft.github.io
- Google Cloud: de-identifying sensitive data docs.cloud.google.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Provider data terms: retention and training
Before business data goes to a model API, check three things: whether inputs train the provider's models, how long they are kept for abuse monitoring, and which features store data by design. As of November 2026, OpenAI and Anthropic say API data is not used for training by default and offer zero data retention by arrangement, but stored conversations, uploaded files and batch jobs keep data under their own rules. Check every feature you call.
Reading
- OpenAI: data controls in the OpenAI platform developers.openai.com
- Anthropic: API and data retention platform.claude.com
- Anthropic Privacy Center: commercial data retention privacy.claude.com
- Microsoft: data, privacy and security for Azure OpenAI learn.microsoft.com
- AWS: data protection in Amazon Bedrock docs.aws.amazon.com
- Google Cloud: zero data retention docs.cloud.google.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Data residency and regional processing
Residency has two halves that providers often control separately: where inference runs and where data rests. As of November 2026, the Claude API sets the first per request with inference_geo and the second per workspace, while an Amazon Bedrock global cross-Region profile may process a request in any supported commercial Region. Read what each promise covers, including logs, caches and files, and enforce allowed regions centrally so no request routes elsewhere.
Reading
- Anthropic: data residency platform.claude.com
- AWS: cross-Region inference in Amazon Bedrock docs.aws.amazon.com
- Microsoft: Azure OpenAI deployment types learn.microsoft.com
- OpenAI: data residency developers.openai.com
- Google Cloud: data residency for generative AI docs.cloud.google.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Tenant isolation across the integration
In a multi-tenant product, every place the integration stores or reuses data can leak one customer's records to another: caches, vector indexes, logs, queued jobs and the credentials a tool uses. Carry the tenant id on every request and enforce it at each store, with a separate namespace, index or key per tenant where the risk justifies it, never a prompt asked to filter. Test it as tenant A by proving you can never retrieve, cache-hit or log-search tenant B's data.
Reading
- AWS Well-Architected: SaaS Lens docs.aws.amazon.com
- OWASP: multi-tenant security cheat sheet cheatsheetseries.owasp.org
- Azure Architecture Center: multitenancy and AI/ML learn.microsoft.com
- Pinecone: implement multitenancy docs.pinecone.io
- OWASP GenAI: LLM08 vector and embedding weaknesses genai.owasp.org
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Honouring source permissions in AI answers
When an AI answers from records copied out of a business system, the copy loses the source's access rules unless you bring them along. Store each item's permissions with it, filter retrieval by the asking user's identity at query time, and for sensitive sources recheck access against the source before answering. A summary is still disclosure, so the rule is simple: the model never sees content the user could not open in the original system.
Reading
- OWASP GenAI: LLM08 vector and embedding weaknesses genai.owasp.org
- Microsoft Graph connectors: manage items and access control lists learn.microsoft.com
- Google Cloud: data source access control for AI search docs.cloud.google.com
- OpenFGA: fine-grained authorization concepts openfga.dev
- Google Research: Zanzibar, a global authorization system research.google
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Prompt injection through integrated data
Any text the model reads from a ticket, email, web page or CRM note can carry instructions, and the model cannot reliably tell them from yours. Treat integrated data as untrusted and limit what a model that read it can do: narrow tool scopes, no unreviewed writes or outbound messages, human approval for anything irreversible. The dangerous mix is private data, untrusted content and a way to send data out in one session; never combine all three.
Reading
- OWASP GenAI: LLM01 prompt injection genai.owasp.org
- Greshake et al.: indirect prompt injection (arXiv) arxiv.org
- Beurer-Kellner et al.: design patterns against prompt injection (arXiv) arxiv.org
- Simon Willison: the lethal trifecta for AI agents simonwillison.net
- OWASP: LLM prompt injection prevention cheat sheet cheatsheetseries.owasp.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Audit trails for AI reads and writes
When an AI reads or writes a business system, someone will later ask who requested it, what the model saw, what it decided and under whose identity each tool ran. Record those as structured events joined by one request id, referencing sensitive content rather than copying it. Keep the trail where the application cannot edit or delete it, such as write-once storage or a hash-chained log, separate from debug logs, which are sampled and short-lived.
Reading
- OWASP: logging cheat sheet cheatsheetseries.owasp.org
- NIST SP 800-92: guide to computer security log management csrc.nist.gov
- AWS CloudTrail: log file integrity validation docs.aws.amazon.com
- Amazon S3: Object Lock (write once, read many) docs.aws.amazon.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
-
Phase 12 · Migrating models and providers
-
Model lifecycles and deprecation notices
Providers retire models on a published schedule, and requests to a retired model fail. Anthropic, for example, moves models from active through legacy and deprecated to retired, and as of November 2026 promises at least 60 days' notice for publicly released models; cloud platforms reselling a model can set their own dates. Inventory every pinned model id, where it is set and who owns it, watch each provider's notices, and migrate at deprecation, not at retirement.
Reading
- Anthropic: model deprecations platform.claude.com
- OpenAI: deprecations developers.openai.com
- Microsoft: Azure OpenAI model retirements learn.microsoft.com
- AWS: Amazon Bedrock model lifecycle docs.aws.amazon.com
- Google Cloud: model versions and lifecycle docs.cloud.google.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Provider abstraction layers and AI gateways
A thin internal interface or a gateway over several providers lets you change models by configuration and gives one place for keys, quotas, logging and fallbacks. The cost is the lowest common denominator: features one provider has and another lacks, such as prompt caching or strict schemas, get dropped or behave differently behind a shared shape. Abstract only the calls you make, keep an escape hatch to native features, and test each provider behind the layer.
Reading
- Martin Fowler: gateway pattern martinfowler.com
- LiteLLM documentation docs.litellm.ai
- Cloudflare AI Gateway documentation developers.cloudflare.com
- AI SDK: providers and models ai-sdk.dev
- Anthropic: OpenAI SDK compatibility and its limitations platform.claude.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Proving a new model is ready
A candidate model is ready when it matches the current one on the cases your feature actually sees, not when its benchmark scores are higher. Run your existing eval set on both, compare case by case to catch regressions a similar average hides, and check integration details: schema validity, tool-call accuracy, refusals, latency and cost. Agree the parity bar before you see results, and add every regression found to the eval set.
Reading
- Anthropic: define success criteria and build evaluations platform.claude.com
- Anthropic: model migration guides platform.claude.com
- OpenAI: evaluation best practices developers.openai.com
- Hamel Husain: your AI product needs evals hamel.dev
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Moving between provider APIs
Moving to another API means mapping every part of the request and response: roles and system prompts, tools and tool results, structured output settings, stop reasons, usage and streaming events. OpenAI's Assistants API, shut down on 26 August 2026, is the worked example: assistants, threads and runs map onto prompts, conversations and responses, and your code now runs the tool loop. Build the mapping as one tested adapter and diff old and new outputs before cutting over.
Reading
- OpenAI: Assistants migration guide developers.openai.com
- OpenAI: migrate to the Responses API developers.openai.com
- Anthropic: structured outputs platform.claude.com
- Anthropic: OpenAI SDK compatibility and its limitations platform.claude.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Shadow traffic and dual running
Shadow traffic sends a copy of real requests to the new model or provider while users still get the old answer, so you compare outputs, errors, latency and cost on real inputs at no risk to them. The shadow path must never write: strip tools with side effects or point them at a sandbox, and keep its data under the live path's privacy rules. Once results hold, cut over one segment at a time, such as one tenant, keeping the old path for rollback.
Reading
- Istio: traffic mirroring istio.io
- GitHub Scientist: carefully refactor critical paths github.com
- Martin Fowler: dark launching martinfowler.com
- Danilo Sato: parallel change martinfowler.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Migrating state: conversations, files and indexes
A provider may hold state for you: stored conversations, uploaded files, hosted vector stores and fine-tuned models, and none of it moves by itself. Inventory it, export what you can, and keep your own copy of anything needed to rebuild, such as source documents and tuning data. Embeddings from different models are not comparable, so a new embedding model means re-embedding the whole corpus and swapping the index in one step, never mixing the two.
Reading
- OpenAI: conversation state developers.openai.com
- OpenAI: Conversations API reference developers.openai.com
- OpenAI: Assistants migration guide developers.openai.com
- Anthropic: Files API platform.claude.com
- OpenAI: embeddings guide developers.openai.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Practise the AI Integration Engineer roadmap
286 questions, each graded on the server out of 100. Free · no card.
Other AI careers
- Agent Engineer
- AI Alignment Researcher
- AI Data Engineer
- AI Engineer
- AI Evals Engineer
- AI Governance Analyst
- AI Infrastructure Engineer
- AI Product Manager
- AI Red Team Specialist
- AI Reliability Engineer
- AI Research Engineer
- AI Safety Engineer
- AI Security Engineer
- AI Solutions Architect
- AI Strategist
- Computer Vision Engineer
- Context Engineer
- Conversational AI Designer
- Forward-Deployed Engineer
- Inference Optimization Engineer
- ML Engineer
- Multimodal AI Engineer
- Post-Training Engineer