How to become an AI Solutions Architect
Step by step and free: 12 phases, 85 topics and 283 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 Solutions Architect?
An AI solutions architect designs how an AI capability fits into an organisation's systems, from the first question of whether AI is the right tool to a design that passes security, cost and reliability review. They gather requirements, choose patterns, models and vendors, plan data access and integrations, set quality targets and evals, and record their decisions for engineering, security and business stakeholders.
Who this roadmap is for
Solutions architects, senior software engineers and technical consultants who already design cloud systems and want to lead AI projects. You should be comfortable with APIs, networking, identity and cost estimates, and have some hands-on time with LLM applications. It is not for newcomers to software, or for people who want to train models themselves.
What you will be able to do
You will be able to test whether AI fits a problem, turn requirements into quality targets, choose between RAG, workflows and agents, select models and vendors on your own tasks, design permission-aware data access, tool integrations and security boundaries, build cost and capacity models, and take a design through review and governance.
The AI Solutions Architect roadmap
AI Solutions Architect
-
Phase 1 Foundations: the role, requirements and feasibility
-
Phase 2 Architecture practice: trade-offs, views and decisions
-
Phase 3 Reference architectures and patterns
-
Phase 4 Model and vendor selection
-
Phase 5 Data and knowledge architecture
-
Phase 6 Integration and tool architecture
-
Phase 7 Security architecture
-
Phase 8 Quality and evaluation architecture
-
Phase 9 Performance, scale and capacity
-
Phase 10 Cost models and optimisation
-
Phase 11 Reliability and operational readiness
-
Phase 12 Governance, responsible AI and enterprise strategy
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 · Foundations: the role, requirements and feasibility
-
What an AI solutions architect does
An AI solutions architect decides how a system will be built before the build starts, and answers for that design once it runs: the pattern, the models and vendors, where data flows, what it costs and how it fails. An AI engineer builds one feature and a forward deployed engineer delivers inside one customer; the architect works across many solutions through designs, standards and reviews. You are judged on trade-offs you made visible and on designs that held up in production.
Reading
- AWS Well-Architected: Generative AI Lens docs.aws.amazon.com
- Martin Fowler: Who needs an architect? (PDF) martinfowler.com
- Gregor Hohpe: The Architect Elevator architectelevator.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Is AI the right tool here
Before choosing a model, decide whether the problem needs one. Fixed rules beat a model when the logic is known and must be exact, such as a tax calculation; classic machine learning suits high-volume predictions on structured data with labelled history; a language model earns its place on unstructured language, open-ended input and drafts a person checks. Ask what a wrong answer costs and how often you can afford one, then pick the cheapest technique that clears that bar.
Reading
- Google: Rules of Machine Learning developers.google.com
- Google PAIR: User needs and defining success pair.withgoogle.com
- Anthropic: Building effective agents anthropic.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Gathering requirements for an AI solution
Requirements start from the people and the work, not the technology: who uses it, in which journey, on what inputs, and what they do with the output. Write success as something you could measure next month, and list constraints apart from wishes, because a constraint (data stays in the EU) removes options while a wish (answers feel friendly) only ranks them. When stakeholders define success differently, record each definition and settle it before design starts.
Reading
- AWS Well-Architected: Machine Learning Lens docs.aws.amazon.com
- Google Cloud Architecture Framework cloud.google.com
- Claude docs: Define success criteria and build evaluations platform.claude.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Non-functional requirements for AI systems
Non-functional requirements shape the architecture more than features do. For an AI system, pin answer quality per task, latency at p95 for the first token and the full answer, availability, cost per request or per user, data residency, retention and auditability, each as a number with a way to measure it. Fast or secure cannot be tested, so it cannot be designed for. Ask what happens to the user when the number is missed: that tells you how hard the target is.
Reading
- ISO/IEC 25010 product quality model (overview) iso25000.com
- Azure Well-Architected: AI workload design principles learn.microsoft.com
- Google SRE book: Service level objectives sre.google
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Quality targets for probabilistic output
A model will be wrong some of the time, so the requirement is not zero errors but an agreed budget per kind of mistake. Separate errors by cost: a missed refund request is an annoyance, an invented policy quoted to a customer is a liability. Set a target for each class, such as precision on what gets flagged or the rate of unsupported claims, decide what the system does below the bar (abstain, or route to a person), and agree how it is measured before anything is built.
Reading
- Claude docs: Define success criteria and build evaluations platform.claude.com
- Google ML Crash Course: Accuracy, precision and recall developers.google.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
-
Feasibility and constraints
Feasibility checks the ask against the limits that will not move: regulation, where data may be processed, whether the grounding data exists, the latency the journey can tolerate and the budget. Test each constraint on its own and say which one breaks the design, because hard and expensive is not the same as infeasible. When an ask fails, offer the nearest version that passes, such as a draft a person approves instead of an automatic reply, rather than a flat no.
Reading
- Microsoft Azure: AI architecture design learn.microsoft.com
- NIST AI Risk Management Framework nist.gov
- Microsoft Cloud Adoption Framework: AI strategy learn.microsoft.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Stakeholder alignment
Product wants scope, security wants control, finance wants a ceiling and delivery wants a date. The architect's job is to make those conflicts explicit instead of quietly picking a winner: write each as a trade-off with options, consequences and a named owner who decides, then record the decision where everyone can find it. Check that an agreement is real, because two teams agreeing on the word accurate may mean different things until the number is written down.
Reading
- AWS Well-Architected Framework docs.aws.amazon.com
- Google Cloud: Architecture decision records cloud.google.com
- Martin Fowler: Scaling the practice of architecture, conversationally martinfowler.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
The value hypothesis and business case
Every design needs a value hypothesis: what the solution saves or earns, for whom, and measured how. Take a baseline before building (handling time, error rate, cost per case), estimate the gain honestly, including the share of cases the AI will not handle, and set it against build and running costs to get a payback period. A case that counts token spend but ignores review labour, integration work and slow adoption will be wrong in the direction that gets projects cancelled.
Reading
- Microsoft Cloud Adoption Framework: AI strategy learn.microsoft.com
- FinOps Foundation: FinOps for AI overview finops.org
- Google PAIR: User needs and defining success pair.withgoogle.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
Chapter 1 lab
Write the prompt for a constraint-by-constraint feasibility memo
A prompt lab that closes the chapter: you write the instruction, and it is graded on a rubric.
Start the lab -
-
Phase 2 · Architecture practice: trade-offs, views and decisions
-
Quality attributes and trade-offs
Quality attributes are the properties a design trades against each other: accuracy, latency, cost, availability, security, privacy and maintainability. They pull in opposite directions (a reasoning model raises accuracy and latency together; a cache cuts cost and risks stale answers), so a design claiming to maximise them all has not been examined. Write each key one as a testable scenario: at peak load, 95 percent of answers start within two seconds.
Reading
- ISO/IEC 25010 product quality model (overview) iso25000.com
- SEI: Architecture Tradeoff Analysis Method collection sei.cmu.edu
- arc42: architecture documentation template arc42.org
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Architecture views and diagrams
No single diagram serves every reader. The C4 model gives levels: a context view of the system and the people and systems around it, a container view of the deployable parts (app, orchestration service, vector store, model provider), and component views only where they help. For AI systems, also draw the data flows and trust boundaries, showing where prompts, documents and personal data cross to a provider, because security and legal will ask for that view first.
Reading
- The C4 model for visualising software architecture c4model.com
- arc42: architecture documentation template arc42.org
- Microsoft: Threat modeling AI/ML systems and dependencies learn.microsoft.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Architecture decision records
An architecture decision record captures one significant decision: the context, the options considered, the choice and its consequences, good and bad. Keep records short, numbered and next to the design, and never rewrite an accepted one; supersede it with a new record. AI designs churn with new models, price changes and deprecations, and the record lets the next person check whether the original reason still holds instead of reopening the argument from nothing.
Reading
- Michael Nygard: Documenting architecture decisions cognitect.com
- ADR GitHub organisation: templates and tools adr.github.io
- AWS Prescriptive Guidance: Architectural decision records docs.aws.amazon.com
- Google Cloud: Architecture decision records cloud.google.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
The solution design document
The solution design document is what a delivery team builds from and a review board signs. It states the problem and requirements, the non-functional targets, the chosen architecture with its views, the alternatives rejected and why, the cost model, the risks and how each is handled, and what is out of scope. Write it for the reader who must say yes or find the flaw: lead with the decision and its trade-offs, push detail to appendices, and leave open questions visibly open.
Reading
- Malte Ubl: Design docs at Google industrialempathy.com
- arc42: architecture documentation template arc42.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Well-architected frameworks and AI lenses
The large cloud providers publish well-architected frameworks with AI guidance: AWS has a generative AI lens, Azure has guidance for AI workloads, and Google Cloud has an AI and ML perspective. Each walks pillars such as reliability, security, cost, operations and performance, plus responsible AI. Use them as a review checklist that finds the question you forgot to ask, not as a design: they describe good properties, and your requirements decide which ones you pay for.
Reading
- AWS Well-Architected: Generative AI Lens docs.aws.amazon.com
- Azure Well-Architected: AI workloads learn.microsoft.com
- Google Cloud Architecture Framework: AI and ML perspective cloud.google.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Running a design review
A design review tests a design against its requirements before money is spent building it. Walk the key quality scenarios through the architecture and record the risks, the sensitivity points where one choice drives an attribute, and the trade-off points where it drives two in opposite directions. Bring in the people who can say no (security, data protection, operations, finance) early, and end with a verdict: approved, approved with named conditions, or not yet.
Reading
- SEI: Architecture Tradeoff Analysis Method collection sei.cmu.edu
- Martin Fowler: Scaling the practice of architecture, conversationally martinfowler.com
- AWS Well-Architected Framework docs.aws.amazon.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Proofs of concept that test the architecture
A proof of concept answers a question the design depends on and that paper cannot settle: can the model extract these fields at the accuracy we need, does retrieval find the right clause in these contracts, can this provider meet the latency budget. Name the assumption, the pass mark and the time box before starting, run it on real data, and write down the result even when it is a no. A polished demo that proves nothing about the risky part is the most expensive kind of proof of concept.
Reading
- Claude docs: Define success criteria and build evaluations platform.claude.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
-
-
Phase 3 · Reference architectures and patterns
-
Anatomy of an AI application
Almost every AI application has the same layers, whatever a vendor diagram calls them: an interface, an orchestration layer that assembles context and runs the steps, model access, a knowledge layer for retrieval and state, tools into other systems, guardrails on input and output, evaluation, and telemetry. Naming the layers lets you place each requirement and risk, spot the layer nobody owns, and compare two proposals that draw the same thing differently.
Reading
- Azure Architecture Center: Baseline Foundry chat reference architecture learn.microsoft.com
- Google Cloud: RAG-capable generative AI application on Vertex AI cloud.google.com
- AWS Well-Architected: Generative AI Lens docs.aws.amazon.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Choosing an architecture pattern
Most designs are one of three shapes or a mix: a single grounded model call, a pipeline of fixed steps, or an agent that chooses its own steps with tools. Each step up adds flexibility, and also cost, latency, unpredictability and testing effort. Start from the simplest pattern that meets the requirement and move up only when the task genuinely needs decisions at run time, such as an unknown number of lookups; many requests that look agentic are a pipeline with one routing step.
Reading
- Anthropic: Building effective agents anthropic.com
- Azure: AI agent orchestration patterns learn.microsoft.com
- AWS Prescriptive Guidance: Agentic AI patterns docs.aws.amazon.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
The RAG reference architecture
Retrieval-augmented generation has five parts, each a design choice: ingestion (parsing, chunking, metadata), the index, retrieval (keyword, vector or hybrid, often with a reranker), generation from the retrieved passages, and citation back to sources. Most quality problems start upstream of the model: a passage never indexed, split badly or outranked cannot be answered from. Design retrieval so it can be measured on its own, apart from answer quality, so you can tell which part failed.
Reading
- Lewis et al.: Retrieval-Augmented Generation (arXiv) arxiv.org
- Azure: RAG solution design and evaluation guide learn.microsoft.com
- Google Cloud: RAG-capable generative AI application on Vertex AI cloud.google.com
- Anthropic: Contextual retrieval anthropic.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Workflows and orchestrated pipelines
A workflow runs a known sequence of model calls and code. The common shapes are a chain (each step feeds the next), a router (classify, then send to a specialised path), parallel calls (split the work or vote) and a checker loop (generate, evaluate, revise up to a limit). Because the path is fixed, every step can be tested, timed and priced on its own, which makes workflows the default for business processes; keep agents for the parts where the next step cannot be known in advance.
Reading
- Anthropic: Building effective agents anthropic.com
- AWS Prescriptive Guidance: Agentic AI patterns docs.aws.amazon.com
- Azure: AI agent orchestration patterns learn.microsoft.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Agent architectures and their boundaries
Agent designs range from one agent with tools, through an orchestrator handing subtasks to workers, to several agents passing work among themselves. Each added agent multiplies tokens, latency and the ways context gets lost, so multi-agent designs pay off mainly on wide, parallel work such as research across many sources. Whatever the shape, bound it: a step and spend limit, the tools it may call, the state it may change, and a defined way to hand over to a person.
Reading
- Anthropic: How we built our multi-agent research system anthropic.com
- Cognition: Don't build multi-agents cognition.ai
- OpenAI: A practical guide to building agents (PDF) cdn.openai.com
- Azure: AI agent orchestration patterns learn.microsoft.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Interactive, asynchronous and batch designs
How long a user will wait decides much of the design. Interactive requests need streaming, a tight latency budget and a fast fallback; asynchronous jobs, such as a report ready in ten minutes, can queue, retry and use slower, stronger models; batch work over thousands of records can use the providers' discounted batch interfaces overnight. Classify each journey by its wait first: batch work on an interactive path wastes money, and a hard task squeezed into seconds wastes quality.
Reading
- Claude docs: Batch processing platform.claude.com
- OpenAI: Batch API guide platform.openai.com
- Azure: Queue-based load leveling pattern learn.microsoft.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Human review as a component
When a person reviews AI output, the reviewer is part of the architecture and needs designing like any other part. Decide which cases go to review (all, low confidence, high value, a random sample), what the reviewer sees so they can decide quickly, and where their decision goes, ideally into the evaluation set. Then size the queue: routing 20 percent of 10,000 daily cases to review means 2,000 reviews a day, and a design that ignores reviewer capacity becomes a backlog.
Reading
- Microsoft Research: Guidelines for human-AI interaction microsoft.com
- Google PAIR: People + AI Guidebook pair.withgoogle.com
- Anthropic: Building effective agents anthropic.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Embedding AI in existing products
AI can live inside the system of record (a feature in the CRM or ticketing tool, often the vendor's own), beside it (a side panel that reads the page and calls your service) or in a new application. Inside means the least change for users and the least control for you; a new app means full control and the hardest adoption. Choose by where the work already happens and whose permissions apply, because users rarely move to a new tool for one feature.
Reading
- Microsoft Research: Guidelines for human-AI interaction microsoft.com
- Google PAIR: People + AI Guidebook pair.withgoogle.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
Chapter 3 lab
Write the router instruction for a three-pattern hybrid
A prompt lab that closes the chapter: you write the instruction, and it is graded on a rubric.
Start the lab -
-
Phase 4 · Model and vendor selection
-
Proprietary and open-weight models
Proprietary models served by their makers usually lead on capability and need no operations, but you accept the vendor's terms, prices and release schedule. Open-weight models can run in your own environment with full control of data and versions, at the price of hosting, scaling and safety work you now own, under licences that vary widely. Settle the binding constraint first (data that cannot leave, a cost ceiling, a quality bar), then compare only the models that pass it.
Reading
- Open Source Initiative: The Open Source AI Definition opensource.org
- Claude docs: Models overview platform.claude.com
- Stanford CRFM: HELM crfm.stanford.edu
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Model selection and tiering
There is no best model, only the cheapest one that clears the quality bar for a given kind of request. Split traffic by difficulty: a small, fast model for high-volume simple work such as classification, a larger or reasoning model for the hard tail, and a router or rule deciding which. Evaluate each tier on its own slice of your test set, because one average score can hide a cheap tier that fails exactly the cases it is sent.
Reading
- Claude docs: Models overview platform.claude.com
- Claude docs: Choosing the right model platform.claude.com
- Google Cloud: Choose a model cloud.google.com
- OpenAI Cookbook: Model selection guide cookbook.openai.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Where a model is served from
The same model can often be reached directly from its maker, through a cloud platform such as Amazon Bedrock, Google Vertex AI or Microsoft Foundry, or, for open weights, on your own infrastructure. The path changes the contract more than the model: data terms, regions, private networking, quotas, billing against an existing cloud commitment, and how fast new versions arrive. Check that every feature you need is actually available on the path you pick.
Reading
- AWS: What is Amazon Bedrock? docs.aws.amazon.com
- Google Cloud: Claude models on Vertex AI cloud.google.com
- Microsoft: Foundry Models overview learn.microsoft.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Model bake-offs on your own tasks
Public leaderboards rank models on someone else's tasks; your choice should rest on yours. Build a test set from real inputs with known good outputs, including hard and rare cases, run each shortlisted model with a prompt tuned fairly for it, and score quality, latency under realistic load and cost per task together. Rerun the same set on every model update, and treat a gap of a few points on fifty examples as a tie, not a win.
Reading
- Stanford CRFM: HELM crfm.stanford.edu
- LMArena lmarena.ai
- Claude docs: Define success criteria and build evaluations platform.claude.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
-
Long context or retrieval
Large context windows tempt you to skip retrieval and send everything. That works for one long document or a small, stable corpus, and saves building a retrieval system. It costs more per request, adds latency, and models still find facts less reliably deep inside very long inputs, so for large or changing knowledge, or when you must cite and enforce permissions per passage, retrieval stays the better design. Prompt caching narrows the cost gap when the same context repeats.
Reading
- Liu et al.: Lost in the Middle (arXiv) arxiv.org
- Chroma Research: Context rot research.trychroma.com
- Claude docs: Context windows platform.claude.com
- Claude docs: Prompt caching platform.claude.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Prompt, retrieve or fine-tune
Prompting changes behaviour through instructions and examples, retrieval supplies knowledge at request time, and fine-tuning changes the model's weights. Knowledge that changes or must be cited belongs in retrieval, because a fine-tuned fact cannot be updated quickly or traced to a source. Fine-tuning suits stable behaviour prompts cannot hold, such as a strict format or a narrow classification at lower cost, and it brings a training pipeline, an eval suite and a retraining cycle you must own.
Reading
- Claude docs: Embeddings platform.claude.com
- Azure: RAG solution design and evaluation guide learn.microsoft.com
- Microsoft: When to use fine-tuning learn.microsoft.com
- OpenAI: Fine-tuning guide platform.openai.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Build, buy or extend
For each capability, choose between buying a finished AI product or a vendor's built-in feature, assembling on a platform (managed models, agents and search you configure), or building custom. Buy what is a commodity for your business, such as meeting notes; build what differentiates you or depends deeply on your data and processes. Weigh time to value, control over data and behaviour, integration effort, exit cost and who will run it in three years, not only the licence price.
Reading
- Martin Fowler: Utility vs strategic dichotomy martinfowler.com
- Learn Wardley Mapping learnwardleymapping.com
- Microsoft Cloud Adoption Framework: AI strategy learn.microsoft.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Vendor due diligence
Choosing an AI vendor commits your data and your uptime to them, so check more than the demo. Ask for independent security attestations such as SOC 2 Type II or ISO 27001, the data terms (retention, training use, subprocessors, regions), the uptime commitment and what it really pays out, support response times, the model deprecation policy, and which model providers the vendor depends on. A thin layer over another provider inherits that provider's outages and terms, so trace the chain.
Reading
- Cloud Security Alliance: STAR registry cloudsecurityalliance.org
- NIST SP 800-161r1: Supply chain risk management csrc.nist.gov
- Anthropic Trust Center (an example of a vendor trust portal) trust.anthropic.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Designing for model change
Models are retired and replaced on the provider's schedule, and a new version can change behaviour even when the name barely changes. Pin exact model versions in production, read each provider's deprecation policy and notice period, and keep the evaluation set that lets you qualify a replacement in days rather than months. Put a thin interface between your code and providers so a swap is a configuration change, but avoid a heavy abstraction that hides the features you chose the model for.
Reading
- Claude docs: Model deprecations platform.claude.com
- OpenAI: Deprecations platform.openai.com
- Google Cloud: Model versions and lifecycle cloud.google.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
-
Phase 5 · Data and knowledge architecture
-
Data readiness assessment
Most AI projects that fail on data fail before a model is chosen. Assess each source on four questions: does it exist in usable form, is it good enough (complete, current, consistent), who owns it and will keep it maintained, and are you allowed to use it for this purpose. Sample real records rather than trusting a schema or catalogue, and log gaps as risks with owners, because a missing source found during the build reshapes the whole design.
Reading
- Gebru et al.: Datasheets for Datasets (arXiv) arxiv.org
- AWS Well-Architected: Machine Learning Lens docs.aws.amazon.com
- Google: Rules of Machine Learning developers.google.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Matching each source to an access pattern
Each source an assistant depends on needs its own access pattern. Data that changes by the minute and has a clear owning system, such as order status or account balances, is queried live through an API at request time; documents that change slowly are parsed, embedded and indexed; reference data in between can be synced on a schedule. Name the source of truth for every fact, because an indexed copy of live data will eventually give a confident, stale answer.
Reading
- AWS: Retrieval augmented generation options and architectures docs.aws.amazon.com
- Google Cloud: Vector Search overview cloud.google.com
- Azure: RAG solution design and evaluation guide learn.microsoft.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Choosing the retrieval stack
The retrieval stack comes down to three choices. Where vectors live: a dedicated vector database, a vector extension in a database you already run, or a managed search service, chosen by scale, filtering needs and what your team already operates. How you search: hybrid keyword and vector search usually beats either alone on product codes, names and jargon. Whether to rerank: a reranker over the top results often lifts precision more cheaply than a bigger generator.
Reading
- pgvector: vector similarity search for Postgres github.com
- Azure AI Search: Hybrid search overview learn.microsoft.com
- Anthropic: Contextual retrieval anthropic.com
- Pinecone: Rerankers and two-stage retrieval pinecone.io
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Ingestion, freshness and deletion
An index is a copy, and every copy drifts. Design how changes reach it (event-driven updates, scheduled syncs or full rebuilds), how deletions do, since a deleted document that still answers questions is a compliance problem, and how fast each must happen, written as a freshness target per source. Plan for re-embedding too: changing the embedding model means reprocessing the whole corpus, which costs time and money and needs a parallel index to switch over safely.
Reading
- Azure: RAG solution design and evaluation guide learn.microsoft.com
- AWS: Retrieval augmented generation options and architectures docs.aws.amazon.com
- Google Cloud: Vector Search overview cloud.google.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Permission-aware retrieval
Retrieval must return only what the asking user may see in the source system. Early binding copies permissions into the index as metadata and filters on them at query time, which is fast but goes stale when permissions change; late binding checks each result against the source, which is accurate but slower. Many designs filter early and recheck sensitive results late. Never rely on the model to withhold a passage it has already been given.
Reading
- Azure AI Search: Security filters for trimming results learn.microsoft.com
- Azure: Multitenancy and AI/ML learn.microsoft.com
- OWASP Top 10 for LLM Applications genai.owasp.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Structured data and semantic layers
Questions about numbers, such as revenue by region last quarter, should be answered from tables with a query, not from text. Letting a model write SQL against raw schemas is fragile: names are cryptic and the same metric is defined three ways. Put a semantic layer or curated views between the model and the warehouse so metrics are defined once, run queries read-only with row limits and timeouts, and show the query or a plain summary of it with the answer.
Reading
- dbt: The dbt Semantic Layer docs.getdbt.com
- BIRD: text-to-SQL benchmark on realistic databases bird-bench.github.io
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Conversation state and memory
Conversation state and memory are data stores and need the same design as any other: what is kept, where, for how long and who can read it. Short-term state carries one conversation; long-term memory carries facts across sessions and can grow, go stale or leak between users if it is keyed wrongly. Decide whether state lives in your system or the provider's, let users see and delete what is remembered, and apply your retention rules to it.
Reading
- OpenAI: Conversation state platform.openai.com
- Claude docs: Memory tool platform.claude.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Data rights, lineage and retention
Holding data does not mean you may use it for AI. Check the licence or contract for third-party content, the purpose personal data was collected for, and whether customer data may go to a model provider at all. Track lineage so you can show which sources fed an index or a fine-tune and remove one when a right is withdrawn, and set retention for prompts, outputs and logs, which are new copies of the data.
Reading
- GDPR full text (gdpr-info.eu) gdpr-info.eu
- OpenLineage: an open standard for lineage metadata openlineage.io
- Gebru et al.: Datasheets for Datasets (arXiv) arxiv.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
-
Phase 6 · Integration and tool architecture
-
Integrating with slow and flaky systems
An assistant that calls a CRM, a partner API and two internal services inherits the worst behaviour of each. Put a timeout on every call, retry only errors that can succeed on retry, with exponential backoff and jitter, and treat a partner's rate limit as one budget shared by all your traffic. Move slow or optional calls behind a queue, and design the answer to degrade, so one failing dependency removes one piece of the answer rather than the whole reply.
Reading
- AWS Builders' Library: Timeouts, retries and backoff with jitter aws.amazon.com
- Azure: Retry pattern learn.microsoft.com
- Azure: Bulkhead pattern learn.microsoft.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Event-driven AI
Many valuable AI uses have no user waiting: classify each incoming email, summarise every closed ticket, check each new contract. Design these as event-driven flows where an event lands on a queue, a worker processes it, and the result is written back or raises a task. Queues absorb bursts, let you throttle to provider limits and retry failures, and make the work auditable; the design questions are ordering, duplicate events and what happens to items that keep failing.
Reading
- Azure: Event-driven architecture style learn.microsoft.com
- Enterprise Integration Patterns enterpriseintegrationpatterns.com
- Azure: Queue-based load leveling pattern learn.microsoft.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Designing the tool surface
The tools an agent can call are an API you are designing for a model. Choose the set and its grain: a few task-shaped tools, such as one that finds a customer's open orders, are used correctly more often than a thin wrapper over every endpoint. Separate read tools from write tools, give each a precise description, typed inputs and errors the model can act on, and return only the fields needed. The tool surface is also a security boundary: whatever a tool allows, a manipulated model can do.
Reading
- Anthropic: Writing effective tools for agents anthropic.com
- Claude docs: Tool use overview platform.claude.com
- OWASP Top 10 for LLM Applications genai.owasp.org
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
MCP and agent interoperability standards
The Model Context Protocol standardises how an AI application connects to tools and data sources, so one server can serve many clients and one client can use many servers. Agent-to-agent protocols such as A2A answer a different need: agents from different vendors delegating tasks to each other. A standard buys reuse and an ecosystem, but not security or quality: you still decide which servers are trusted, how they authenticate and what each may do.
Reading
- Model Context Protocol: Introduction modelcontextprotocol.io
- Model Context Protocol: Specification modelcontextprotocol.io
- A2A Protocol documentation a2a-protocol.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
The AI gateway as a control point
An AI gateway sits between your applications and the model providers and becomes the one place to enforce policy: authentication and key management, routing and failover between models, token quotas per team, caching, logging for audit and cost, and content filters. It turns a provider change into a configuration change and a spend question into a query. It is also a new dependency on every request, so it needs the same availability, latency and security design as what sits behind it.
Reading
- Azure Architecture Center: Use a gateway in front of multiple model deployments learn.microsoft.com
- Azure API Management: AI gateway capabilities learn.microsoft.com
- LiteLLM documentation (open-source gateway) docs.litellm.ai
- Azure: Gateway routing pattern learn.microsoft.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Acting as the user or as the service
Every call an AI system makes into another system runs as someone. Acting as the user, through delegated tokens such as the on-behalf-of or token exchange flows, keeps the source system's permissions and audit trail intact; acting as a service account is simpler but lets the AI reach whatever that account can, for every user. Default to the user's identity for reading and acting on their data, keep service identities narrow, and record which identity each action used.
Reading
- IETF RFC 8693: OAuth 2.0 Token Exchange datatracker.ietf.org
- Microsoft identity platform: On-behalf-of flow learn.microsoft.com
- Model Context Protocol: Authorization modelcontextprotocol.io
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Write actions and compensation
When an AI changes records, design for the run that happens twice, stops halfway or should not have happened. Make each write idempotent with a key so a retry does not issue a second refund, require approval above a risk threshold, and offer a dry run that shows the change before it is made. A change spanning several systems has no single transaction to roll back, so plan a compensating step for each part (the saga pattern) and log enough to undo it by hand.
Reading
- Stripe: Designing robust APIs with idempotency stripe.com
- Azure: Saga distributed transactions pattern learn.microsoft.com
- Azure: Compensating transaction pattern learn.microsoft.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
Chapter 6 lab
Specify the CRM tool the assistant is allowed to call
A prompt lab that closes the chapter: you write the instruction, and it is graded on a rubric.
Start the lab -
-
Phase 7 · Security architecture
-
Threat modelling an AI system
Threat modelling asks what you are protecting, where the trust boundaries are and how each can be attacked, while the design can still change. AI systems add threats to the usual ones: prompt injection through any content the model reads, data leaking through outputs or logs, tools misused through broad permissions, poisoned retrieval sources and cost exhaustion. Draw the data flow, mark every point where untrusted text enters, and work through OWASP's LLM list or MITRE ATLAS.
Reading
- OWASP Top 10 for LLM Applications genai.owasp.org
- MITRE ATLAS atlas.mitre.org
- Microsoft: Threat modeling AI/ML systems and dependencies learn.microsoft.com
- Google: Secure AI Framework (SAIF) saif.google
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Security and tenant isolation
In a multi-tenant system, one customer's data must never appear in another's answer. Enforce isolation in the data path: scope every retrieval, cache, memory and log by tenant on the server, from the authenticated identity, never from a value the model or client supplies. A prompt telling the model to ignore other tenants' documents is not a control. Choose shared indexes with filters or an index per tenant by sensitivity, scale and what your contracts promise.
Reading
- Azure: Multitenancy and AI/ML learn.microsoft.com
- OWASP Top 10 for LLM Applications project owasp.org
- AWS: SaaS architecture fundamentals, tenant isolation docs.aws.amazon.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Designing against prompt injection
Prompt injection happens when text the model reads, such as an email, web page or document, carries instructions it follows. No filter catches all of it, so design so that a successful injection does limited harm. The dangerous combination is access to private data, exposure to untrusted content and a way to send data out: remove one of the three from any flow you can. Keep planning apart from untrusted content, require approval for consequential actions, and restrict outputs such as links to allowlists.
Reading
- Simon Willison: The lethal trifecta for AI agents simonwillison.net
- Beurer-Kellner et al.: Design patterns for securing LLM agents (arXiv) arxiv.org
- Debenedetti et al.: Defeating prompt injections by design, CaMeL (arXiv) arxiv.org
- OWASP Top 10 for LLM Applications genai.owasp.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Least privilege and blast radius for agents
Assume an agent will at some point be confused or manipulated, and design so the damage stays small. Give each agent only the tools and scopes its task needs, prefer read access, enforce limits on amounts, recipients and record counts inside the tool rather than in the prompt, and require a person to approve irreversible actions. Blast radius is the measure: ask what the worst possible run could change, send or delete, and shrink that before launch.
Reading
- OWASP Top 10 for LLM Applications genai.owasp.org
- Google: An introduction to Google's approach for secure AI agents research.google
- Anthropic: Making Claude Code more secure and autonomous with sandboxing anthropic.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Private networking and data boundaries
Enterprises often require that traffic to model providers and data stores never crosses the public internet. Cloud platforms offer private endpoints for their model services, service perimeters that stop data leaving a set of projects, and egress controls that limit where workloads can connect. Design these in from the start, since retrofitting private networking changes DNS, deployment and testing, and an agent with open outbound access is a route out for any data it holds.
Reading
- Amazon Bedrock: Interface VPC endpoints (PrivateLink) docs.aws.amazon.com
- Vertex AI: VPC Service Controls cloud.google.com
- Azure Architecture Center: Baseline Foundry chat reference architecture learn.microsoft.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Data protection across the model boundary
Every prompt sends data to whoever runs the model, so decide what may cross. Read each provider's terms on retention, abuse monitoring and training use, and which options your contract and access path give you, such as zero data retention or regional processing. Minimise before sending: redact or tokenise personal data the task does not need, encrypt stored prompts and outputs with keys you control where required, and treat logs and eval sets as copies of production data.
Reading
- OpenAI: Data controls in the OpenAI platform platform.openai.com
- Microsoft: Data, privacy and security for Azure OpenAI learn.microsoft.com
- Amazon Bedrock: Data protection docs.aws.amazon.com
- Microsoft Presidio: PII detection and anonymisation microsoft.github.io
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Sandboxing code execution and computer use
Agents that run code, browse or operate a computer need an isolated place to do it. Match the isolation to the risk: a plain container is a weak boundary for untrusted code, while gVisor or a microVM such as Firecracker separates far more strongly. Give the sandbox no credentials it does not need, restrict its network to an allowlist, cap time and resources, and discard it after each task, so whatever ran inside cannot persist or reach your systems.
Reading
- gVisor documentation gvisor.dev
- Firecracker microVMs firecracker-microvm.github.io
- Claude docs: Code execution tool platform.claude.com
- Anthropic: Making Claude Code more secure and autonomous with sandboxing anthropic.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
-
Phase 8 · Quality and evaluation architecture
-
An evaluation strategy designed in
An AI system is only as trustworthy as the evidence that it works, so plan evaluation as part of the architecture. Decide what is measured at each stage: offline on a test set during development, as a gate before each release, and continuously in production. Choose the graders (code checks where possible, rubric-based model graders checked against people where not, expert review for high-stakes cases) and build in the logging and sampling production evaluation needs.
Reading
- Claude docs: Define success criteria and build evaluations platform.claude.com
- OpenAI: Evaluations guide platform.openai.com
- Hamel Husain: Your AI product needs evals hamel.dev
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Acceptance evals and release gates
Every change to a prompt, model, retrieval setting or tool can shift quality, so each one passes the same gate before it ships. The gate is a versioned test set covering common, hard and previously failed cases, with thresholds per metric agreed in advance and a rule for regressions, such as no category dropping more than two points. Grow the set from production failures, and keep part of it unseen during prompt work so you are not tuning to the test.
Reading
- OpenAI: Evaluations guide platform.openai.com
- Claude docs: Define success criteria and build evaluations platform.claude.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
-
The guardrail layer
Guardrails are checks outside the model on what goes in and what comes out: filters for injection and abuse, topic and policy limits, personal data detection, and output checks for format, grounding and harmful content. Place them deliberately: each adds latency and cost, some can run alongside the model, and some can only judge a finished answer, which complicates streaming. Measure each like a classifier, by false positives and false negatives, because an over-eager guardrail blocks real users.
Reading
- Amazon Bedrock: Guardrails docs.aws.amazon.com
- Azure AI Content Safety overview learn.microsoft.com
- NVIDIA NeMo Guardrails documentation docs.nvidia.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Grounding and citation checks
When answers must come from sources, check that they do before users see them. Require citations to specific passages, then verify each cited claim against its passage, using a model grader for meaning and exact matching for quotes, numbers and names. Decide what happens on failure: drop the unsupported sentence, regenerate or abstain. Track unsupported claims as a rate on your test set, because a fluent answer with a wrong citation does more harm than no answer.
Reading
- Claude docs: Citations platform.claude.com
- Claude docs: Reduce hallucinations platform.claude.com
- Azure: RAG solution design and evaluation guide learn.microsoft.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Measuring quality in production
Offline tests show the system worked on the cases you collected; production shows what users actually send. Capture signals at three levels: explicit feedback such as ratings, behaviour such as edits, retries and escalations, and sampled review of real traffic by graders and people. Track them over time and by segment, since quality drifts when inputs, sources or the model change, and feed every failure you find back into the test set.
Reading
- OpenTelemetry: Semantic conventions for generative AI opentelemetry.io
- Hamel Husain: Your AI product needs evals hamel.dev
- Google SRE book: Monitoring distributed systems sre.google
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
-
Phase 9 · Performance, scale and capacity
-
Latency budgets end to end
A latency target becomes designable only when it is split into a budget per step. For a two-second answer, allot time to authentication and routing, retrieval, reranking, the model's time to first token, tool calls and the network, and add them up before building. Budgets usually break on sequential steps, so run independent calls in parallel, cut the tokens the model reads and writes, use a smaller model on the critical path, and stream so users see progress early.
Reading
- Claude docs: Reducing latency platform.claude.com
- OpenAI: Latency optimization platform.openai.com
- Dean and Barroso: The tail at scale research.google
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Tail latency under load
A design that is fast in testing can fall over at peak. Averages hide the problem: users feel the slowest requests, so set targets at p95 or p99 and measure them under realistic concurrency. Limit concurrent calls to each dependency, queue or shed load when a limit is reached instead of letting every request slow down, and size capacity for the peak with headroom. Unbounded retries turn a brief slowdown into an outage.
Reading
- Google SRE book: Monitoring distributed systems sre.google
- AWS Well-Architected ML Lens: Performance efficiency docs.aws.amazon.com
- Dean and Barroso: The tail at scale research.google
- Google SRE book: Handling overload sre.google
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Capacity, quotas and provisioned throughput
Providers ration model capacity in tokens and requests per minute, per model, region and account, and those limits, not your servers, often cap a launch. Estimate peak demand in tokens per minute from users, requests per user and tokens per request, compare it with your quotas, and request increases well before launch. For steady high volume, provisioned throughput buys reserved capacity and steadier latency for a committed spend; on-demand suits spiky or uncertain traffic.
Reading
- Amazon Bedrock: Provisioned Throughput docs.aws.amazon.com
- Microsoft: Provisioned throughput for Foundry models learn.microsoft.com
- Google Cloud: Provisioned Throughput on Vertex AI cloud.google.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Availability targets and composite SLAs
A service that depends on several components in series can be no more available than their product: three at 99.9 percent each give at most about 99.7 percent before any failure of your own. So the availability you can promise follows from your dependencies' commitments and your redundancy, not from ambition. Add redundancy where it pays, such as a second provider or region, decide which features may degrade instead of failing, and read what each SLA actually covers.
Reading
- Azure Well-Architected: Reliability metrics and composite targets learn.microsoft.com
- AWS whitepaper: Availability and beyond docs.aws.amazon.com
- Google SRE book: Service level objectives sre.google
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Multi-region and residency-aware deployment
Running in more than one region buys resilience and lower latency for distant users, and complicates residency. Cloud model platforms offer cross-region or global routing that raises capacity by sending requests wherever there is room, which may process data outside the region you promised. Decide per data class where processing may happen, pick deployment types that stay within those regions, and design failover to stay inside them too, even if that means less capacity during an incident.
Reading
- Amazon Bedrock: Cross-Region inference docs.aws.amazon.com
- Microsoft: Deployment types for Foundry models learn.microsoft.com
- Google Cloud: Generative AI on Vertex AI locations cloud.google.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
On-device and edge inference
Running a small model on the user's device or at the edge removes network latency, works offline, keeps data local and costs nothing per call. The price is a far less capable model, varied hardware, larger downloads and slower updates. It fits narrow, frequent, latency-sensitive or private tasks such as autocomplete, summarising on-screen text or simple classification, often in a hybrid design that sends the hard cases to a cloud model.
Reading
- Apple Developer: Foundation Models framework developer.apple.com
- Chrome for Developers: Built-in AI developer.chrome.com
- Android Developers: Gemini Nano developer.android.com
- ONNX Runtime documentation onnxruntime.ai
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
-
Phase 10 · Cost models and optimisation
-
How AI is priced
Model APIs mostly charge per token, with output usually priced higher than input, discounts for cached input and batch jobs, and reasoning models billing for the thinking tokens they generate. Platforms add other shapes: provisioned capacity billed by time, per-seat licences for finished products, and separate charges for search, storage and tools. Take prices from the provider's own page on the day you model, since they change often, and price each feature the way it will really be used.
Reading
- Claude docs: Pricing platform.claude.com
- OpenAI: API pricing openai.com
- Amazon Bedrock: Provisioned Throughput docs.aws.amazon.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Building a cost model
A cost model turns the design into a monthly number someone can approve. Start per request: input tokens (system prompt, history, retrieved passages), output tokens, tool and retrieval calls, and how many model calls one request makes. Multiply by requests per user, users and growth, then add fixed costs. Test sensitivity, because the total usually hinges on two or three inputs such as retrieved context size or agent steps, and present a range rather than one figure.
Reading
- Claude docs: Pricing platform.claude.com
- FinOps Foundation: FinOps for AI overview finops.org
- AWS Generative AI Lens: Cost optimization docs.aws.amazon.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Total cost of ownership
Token spend is often not the largest cost. Total cost of ownership adds the vector store and search, telemetry and log storage, evaluation runs and graders, guardrail services, human review time, integration and maintenance engineering, model migrations and the people who operate it all. Comparing a vendor's per-seat price with only your token estimate makes building look cheaper than it is; compare like for like over two or three years.
Reading
- FinOps Foundation: FinOps for AI overview finops.org
- AWS Generative AI Lens: Cost optimization docs.aws.amazon.com
- Microsoft Cloud Adoption Framework: AI strategy learn.microsoft.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Cost optimisation
AI spend grows quietly, so find the dominant driver before cutting anything: break the bill down by feature, model and token type. The usual culprits are repeated input (the same document or long history sent every turn), oversized retrieved context, too many agent steps and a large model doing simple work. Fix those with caching, trimming, step limits and routing first, and judge every change by cost per successful outcome, since a cheaper call that fails more often costs more.
Reading
- Claude docs: Prompt caching platform.claude.com
- AWS Generative AI Lens: Cost optimization docs.aws.amazon.com
- FinOps Foundation: FinOps for AI overview finops.org
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Caching strategies
Caching is one of the biggest cost and latency wins and one of the easiest to get dangerously wrong. Provider prompt caching reuses a stable prompt prefix and is safe, because the answer is still generated fresh; caching whole answers is safe only for content that is neither personal nor state-dependent. Key every cached answer by everything it depends on (tenant, user permissions, source versions, prompt and model version) and invalidate it when a source changes.
Reading
- AWS: Caching best practices aws.amazon.com
- Claude docs: Prompt caching platform.claude.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Self-hosting or an API: the break-even
Self-hosting an open-weight model swaps a per-token price for fixed GPU and staff costs, so it pays only at high, steady utilisation. Work out the break-even: the monthly token volume at which GPU cost, including idle time, redundancy and the engineers who run it, equals the API bill for the same quality. Below it, APIs win; above it, self-hosting can. Other reasons, such as data that cannot leave or a need for frozen versions, can justify it regardless of price.
Reading
- AWS Generative AI Lens: Cost optimization docs.aws.amazon.com
- FinOps Foundation: FinOps for AI overview finops.org
- vLLM documentation docs.vllm.ai
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Budgets, quotas and chargeback
Without limits, one runaway agent or a popular new feature can burn a month's budget in a day. Set budgets and alerts per team, feature and environment, enforce hard quotas at the gateway, and cap spend per request and per user so loops stop on their own. Tag every call with its feature and owner so costs can be shown back or charged back, which makes teams weigh cost while they design rather than after the invoice arrives.
Reading
- FinOps Foundation: FinOps for AI overview finops.org
- Azure API Management: AI gateway capabilities learn.microsoft.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
Chapter 10 lab
Brief the agent that reports cost per resolved ticket
A prompt lab that closes the chapter: you write the instruction, and it is graded on a rubric.
Start the lab -
-
Phase 11 · Reliability and operational readiness
-
Failure modes of AI systems
AI systems fail in the usual ways, such as outages, timeouts and quota errors, and in quieter ones: quality drops after a provider updates a model, retrieval silently returns nothing, a prompt change breaks one category, an agent loops until it hits its budget, or a guardrail starts blocking real users. Loud failures trip alerts; quiet ones need quality signals. List failure modes per component in a failure mode analysis and decide how each is detected and contained.
Reading
- Azure Well-Architected: Failure mode analysis learn.microsoft.com
- Microsoft: Failure modes in machine learning learn.microsoft.com
- AI Incident Database incidentdatabase.ai
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Reliability and fallbacks
Every dependency fails eventually, including your model provider. Design graceful degradation: retries with backoff for brief errors, a circuit breaker that stops calling a failing service, and a fallback path such as a secondary model or provider, cached results, a simpler non-AI feature or a human handoff. A fallback only counts if it has been tested, has capacity to take the load and returns output that downstream code accepts, so exercise it regularly.
Reading
- Google SRE book: Handling overload sre.google
- Azure: Circuit breaker pattern learn.microsoft.com
- AWS Generative AI Lens: Reliability docs.aws.amazon.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Observability
Observability for AI traces the full path of each request: the input, retrieved passages, the prompt and model version, every model and tool call with its tokens and latency, the output and any quality signals, all joined by one trace id. That turns a vague report that answers are sometimes wrong into specific failures you can group and reproduce. Decide early what is logged in full, what is redacted and how long it is kept, because traces hold user data.
Reading
- OpenTelemetry documentation opentelemetry.io
- OpenTelemetry: Semantic conventions for generative AI opentelemetry.io
- Google SRE book: Monitoring distributed systems sre.google
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Releasing changes to prompts, models and indexes
In an AI system the prompt, the model version, the retrieval index and the tool definitions each change behaviour, so treat each as a versioned release unit with an owner and a history. Release gradually: run the new version in shadow on live traffic and compare, then canary it to a small share of users while quality and cost are watched, then widen. Keep the previous version deployable so rollback is a switch, not a rebuild.
Reading
- Google SRE book: Release engineering sre.google
- Google SRE workbook: Canarying releases sre.google
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Disaster recovery for AI components
Disaster recovery asks what you lose and how fast you return when something major fails. Set recovery time and recovery point objectives per component: the vector index (can it be rebuilt, and how many hours does re-embedding take), prompts and configuration (versioned and restorable), conversation state, and model access if a provider or region is down for hours. Index rebuild time is often the surprise, so measure it before you need it.
Reading
- AWS whitepaper: Disaster recovery of workloads on AWS docs.aws.amazon.com
- Azure Well-Architected: Reliability metrics and composite targets learn.microsoft.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Operational readiness reviews
Before go-live, check that the system can be run, not just that it works. An operational readiness review covers alerts tied to user impact, dashboards for quality, latency and cost, runbooks for likely incidents such as a provider outage, a cost spike or a harmful output, an on-call owner, a tested rollback, capacity for launch traffic, and a way for users to report a bad answer. Anything missing becomes a launch condition with an owner and a date.
Reading
- Google SRE book: Launch checklist sre.google
- AWS Well-Architected: Operational Readiness Reviews docs.aws.amazon.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
Chapter 11 lab
Write the instruction for an agent that audits a service's fallback behaviour
A prompt lab that closes the chapter: you write the instruction, and it is graded on a rubric.
Start the lab -
-
Phase 12 · Governance, responsible AI and enterprise strategy
-
Compliance and risk in the design
In regulated domains such as finance, health and employment, governance is part of the first release, not a follow-up. Design in an auditable record of each AI-assisted decision, a boundary on advice-like output, human review where the rules or the risk require it, and documented data handling. Scope the first version to what you can govern, because unlogged, unreviewed output is a legal and customer-harm risk from the first request.
Reading
- NIST AI Risk Management Framework nist.gov
- Microsoft: Responsible innovation toolkit learn.microsoft.com
- NIST AI 600-1: Generative AI Profile (PDF) nvlpubs.nist.gov
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
AI risk frameworks in the design
Risk frameworks give AI risk a structure that auditors and risk teams recognise. The NIST AI Risk Management Framework organises the work into govern, map, measure and manage, with a generative AI profile listing risks specific to these models; ISO/IEC 42001 defines a certifiable management system for AI. The architect's part is turning them into controls in the design, such as logging, evaluation, review and incident handling, and into evidence that each control works.
Reading
- NIST AI Risk Management Framework nist.gov
- NIST AI 600-1: Generative AI Profile (PDF) nvlpubs.nist.gov
- Microsoft: Responsible AI principles and approach microsoft.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Risk classification under the EU AI Act
The EU AI Act sorts AI uses by risk: a few practices are banned, high-risk uses such as hiring, credit scoring and access to essential services carry heavy duties, some systems must tell people they are dealing with AI, and most uses carry little. High-risk duties reach the design: risk management, data governance, logging, human oversight, accuracy, robustness and technical documentation. Classify each use case early and check the current application dates for its category, since obligations phase in over several years.
Reading
- European Commission: AI Act regulatory framework digital-strategy.ec.europa.eu
- EU Artificial Intelligence Act: text and explorer artificialintelligenceact.eu
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Privacy by design and impact assessments
Privacy by design means the architecture collects, sends and keeps only the personal data the purpose needs, by default. Under GDPR it is a legal duty, and processing likely to pose a high risk to people, as many AI uses do, needs a data protection impact assessment before it starts. Treat the assessment as a design input: it asks what data flows where, why, for how long and with what safeguards, and its findings should change the design, not just describe it.
Reading
- GDPR Article 25: Data protection by design and by default gdpr-info.eu
- GDPR Article 35: Data protection impact assessment gdpr-info.eu
- Microsoft Presidio: PII detection and anonymisation microsoft.github.io
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Responsible AI requirements
Principles such as fairness, transparency and accountability change a system only when they become requirements with tests. Write them like any other requirement: outcome rates compared across relevant groups within an agreed tolerance, disclosure that users are dealing with AI, sources or explanations a user can check, accessible interfaces, and a way to challenge a decision and reach a person. Test them before launch, monitor them after, and record intended use and limits in a system card.
Reading
- Microsoft: Responsible AI principles and approach microsoft.com
- Mitchell et al.: Model Cards for Model Reporting (arXiv) arxiv.org
- Google PAIR: People + AI Guidebook pair.withgoogle.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Architecture governance for an AI portfolio
Across a portfolio of AI solutions, the architect's leverage comes from standards more than single designs. Publish approved patterns and reference architectures as paved roads that are easier to follow than to avoid, keep a register of AI systems with their risk level and owners, and scale review depth to risk, so a low-risk internal tool does not face the process a credit decision does. Decision forums should advise and record, not become a bottleneck.
Reading
- Microsoft Cloud Adoption Framework: Govern AI learn.microsoft.com
- Martin Fowler: Scaling the practice of architecture, conversationally martinfowler.com
- NIST AI Risk Management Framework nist.gov
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Practise the AI Solutions Architect roadmap
283 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 Integration Engineer
- AI Product Manager
- AI Red Team Specialist
- AI Reliability Engineer
- AI Research Engineer
- AI Safety Engineer
- AI Security Engineer
- AI Strategist
- Computer Vision Engineer
- Context Engineer
- Conversational AI Designer
- Forward-Deployed Engineer
- Inference Optimization Engineer
- ML Engineer
- Multimodal AI Engineer
- Post-Training Engineer