Chapter 08 — Designing FM Applications: Selection, Inference Parameters, and Agents
Certification Blueprint
| Field | Coverage |
|---|---|
| Exam | AWS Certified AI Practitioner (AIF-C01), exam guide v1.1 |
| Domain | Content Domain 3 — Applications of Foundation Models (28% of scored content) |
| Task statement | Task 3.1 — Describe design considerations for applications that use foundation models |
| Objectives | 3.1.1 selection criteria · 3.1.2 inference parameters · 3.1.6 the role of AI agents |
| Service families | Foundation model providers and their inference APIs; agent runtimes |
What This Chapter Covers
Domain 2 asked whether generative AI belonged in a problem at all, and which broad family of model suited the shape of the output. This chapter assumes those questions are answered and asks the next three: which specific model, set up which way, doing what kind of work.
Domain 3 is the heaviest domain on the exam at 28% of scored content, and Task 3.1 is its widest task statement with six objectives. Three of them are here. The other three — retrieval augmented generation, vector stores, and the customization cost ladder — are Chapter 09.
The character of the questions changes in this domain, and it is worth knowing before you start. Domain 1 and Domain 2 questions could often be answered from principle. Domain 3 questions describe a scenario in which almost everything is satisfactory, and the work is finding the one thing that is not. Reading for the most thorough-sounding option is the reliable way to lose marks here.
The Core Mental Model
Everything in this chapter is one screen with two halves. First you eliminate candidate models on the properties they either have or do not have. Then you rank whatever survives on what it costs you.
If that shape looks familiar, it should — Chapter 07's eight-factor screen has the same structure. What changes between the two chapters is not the method but which properties sit in the gates, and recognising the repeated shape is worth more than memorising either list in isolation.
The Nine Selection Criteria
Objective 3.1.1 names nine criteria for choosing a foundation model. The examinable skill is not reciting them — it is knowing which ones eliminate a candidate outright and which merely rank it against the others.
| Criterion | The question it asks | Behaves as |
|---|---|---|
| Modality | Does it accept what we send and return what we need? | Eliminates |
| Multi-lingual | Does it serve every language our users write in? | Eliminates |
| Input/output length | Are its maximums large enough for our longest case? | Eliminates |
| Latency | Can it answer inside the time budget? | Eliminates |
| Customization | Can it be adapted the way this use case needs? | Eliminates or ranks |
| Prompt caching | Can it reuse a repeated prefix instead of re-charging it? | Ranks |
| Model size | How much model are we paying to run? | Ranks |
| Model complexity | How much capability does the job actually need? | Ranks |
| Cost | What does it cost at the volume we expect? | Ranks |
Customization is the one genuinely ambiguous row, and the ambiguity is real rather than a gap in these notes. If a use case requires an adaptation a model cannot support at all, customization eliminates. If several candidates all support it at different costs, it ranks. An exam scenario will make clear which situation you are in.
A criterion that every candidate satisfies has not helped you. Scenarios are built so that most criteria are satisfied and one is not; that one is the answer.
These are not Chapter 07's eight factors
Two objectives in this exam name selection criteria, and they are different lists for different decisions. Confusing them is the most reliable single way to lose a Task 3.1 question.
| Objective 2.2.3 (Chapter 07) | Objective 3.1.1 (this chapter) | |
|---|---|---|
| Decides | Whether generative AI fits, and the shortlist | Which model, given the shortlist |
| Count | Eight factors | Nine criteria |
| Appears in both | Cost, latency, model complexity | Cost, latency, model complexity |
| Only in that list | Model types, performance requirements, capabilities, constraints, compliance | — |
| Only in this list | — | Modality, multi-lingual, model size, customization, input/output length, prompt caching |
Compliance and constraints are not on the Objective 3.1.1 list. They are real considerations and they matter enormously in practice — they simply belong to the earlier decision. By the time you are separating one foundation model from another, the shortlist you are working from is already a compliant one. An option that offers compliance as the deciding criterion in a Task 3.1 question is usually offering a Domain 2 answer to a Domain 3 question.
The three criteria that appear in both lists — cost, latency, model complexity — are why this confusion is so easy to fall into. A candidate quoting the wrong list is often accidentally right, which is exactly what stops them noticing.
Modality is a pairing, not a label
A model described as multi-modal may accept images and return only text, or generate images from a text prompt and accept nothing but text as input. "Supports images" does not tell you which direction. An application that reads scanned invoices needs image in; an application producing marketing artwork needs image out. A model that does the second and not the first is genuinely multi-modal and completely useless for the first job.
Always name both halves of the pairing you need before you screen anything.
Prompt caching
Prompt caching means reusing the already-processed form of a repeated prompt prefix instead of paying to process it again on every request.
The shape it suits is specific, and the exam describes the shape rather than naming the feature: a large fixed prefix — a system instruction, a policy document, a schema, a set of examples — followed by a short variable part, at meaningful volume. If an application sends the same 4,000 tokens on every one of forty thousand daily requests, that prefix is being processed and charged forty thousand times, and caching is the criterion that addresses it.
The common wrong instinct is to reach for a smaller model instead. That reduces the unit price and still pays for every token, every time. Caching removes the repeated work; a smaller model discounts it. The two levers act on different halves of the same bill.
Input/output length means two different things
The same words appear in Objective 3.1.1 and in Objective 3.1.2. This is not a duplication — it is two different decisions that happen to concern the same quantity.
| In Objective 3.1.1 (a selection criterion) | In Objective 3.1.2 (an inference parameter) |
|---|---|
| The model's maximum context and response size | The value you set on a given request |
| You shop for it; you cannot change it | You choose it, inside that maximum |
| Getting it wrong means the model cannot do the job at all | Getting it wrong means the response is cut off |
The test to run under exam pressure: can I change this without changing model? If not, you are looking at the selection criterion. If yes, you are looking at the parameter.
Inference Parameters
Inference parameters are settings supplied with a request that change how the model produces its response — without changing the model, the prompt, or what the model knows. Objective 3.1.2 names temperature and input/output length. In practice you will also meet top-p and top-k, which are adjacent sampling controls the objective does not name.
Two ways to hold the idea:
- The settings on an oven, not the recipe. Temperature and timer change how the dish comes out. Neither changes what went into the tin, and neither will rescue the wrong ingredients.
- Asking a colleague for "one option" against "a few options, roughly sketched." Same person, same knowledge, same question — a different instruction about how widely to range.
Temperature
A model produces a distribution over possible next words. Temperature controls how widely it samples from that distribution.
| Setting | What you get | Suits |
|---|---|---|
| Low | The most likely wording, almost every time | Extraction, classification, structured output |
| High | Less likely wordings appear more often | Drafting, ideation, generating options to choose from |
| Temperature does change | Temperature does not change |
|---|---|
| How much the wording varies between runs | Whether the answer is factually right |
| How reproducible a pipeline looks | What the model knows |
| Whether you get one answer or a range | Whether the source material was any good |
A low temperature does not make a model correct. It makes it consistent. If the model is wrong about something, a temperature of zero produces the same wrong answer every time, with complete confidence. That is worse than an intermittent error, not better, because it stops looking like a glitch and starts looking like a rule.
Chapter 07 established that nondeterminism is inherent and cannot be configured away. This chapter adds the other half: reducing variation is not the same as adding accuracy, and reaching for temperature when the problem is accuracy is moving along the wrong axis entirely.
Reproducibility is still genuinely valuable — it makes a pipeline testable, debuggable and auditable. It is simply a different thing from correctness, and the exam tests whether you know that.
Output length is a budget, not an instruction
The maximum output length is a hard stop on generation. When the model reaches it, generation ends — wherever it happens to be.
| What teams expect | What actually happens |
|---|---|
| "Setting it low makes the model concise" | The model writes at its natural length and is cut off mid-sentence |
| "It will summarise to fit" | Nothing summarises; the ceiling truncates |
| "It saves money safely" | It saves money and silently damages the output |
If you want brevity, ask for it in the prompt — that is an instruction, and writing instructions is Chapter 10's material. The ceiling is a safety limit against runaway generation and a cost control.
The symptom tells you which one you hit. A model that was asked to be brief produces something short and complete. A model that hit its ceiling stops mid-sentence.
Three settings, three different failure modes — and only one of them announces itself. Exceeding the input limit produces an error you cannot miss. A badly chosen temperature produces output that looks fine until you compare runs. An output ceiling produces a truncation only a reader notices.
The Role of AI Agents
An AI agent is the component that turns a stated goal into a sequence of actions against real systems — planning a step, taking it, reading the result, and deciding the next one — until the goal is met or a stop condition is reached.
Two ways to hold it:
- A travel agent, not a timetable. A timetable answers questions about trains. An agent books the trip, and rebooks it when the first option sells out.
- A new colleague given an outcome rather than a checklist. "Get this invoice paid" rather than "open the portal, click approve." They work out the steps, and they come back when it is done or when they are stuck.
The sentence to carry into the exam: a chatbot answers a question; an agent completes a task.
Chapter 06 asked what an agent is. This objective asks what it is for
| Objective 2.1.6 — Domain 2 (Chapter 06) | Objective 3.1.6 — Domain 3 (here) | |
|---|---|---|
| Asks | What is an agent made of? | What is an agent for? |
| Covers | Multi-agent patterns, the Model Context Protocol, memory management, tool usage, workflow orchestration | The role an agent plays in an application, and the business applications it serves |
| A good answer names | Components | Outcomes |
⚠️ The Model Context Protocol appears nowhere on the Domain 3 page. In the v1.0 exam guide it sat inside Objective 3.1.6 as a parenthetical example; v1.1 removed it from there and promoted it to its own objective, 2.1.6, in Domain 2. Anyone revising from a v1.0 guide — or from a summary written from one — will answer a Domain 3 agent question with Domain 2 material, confidently. Check the live page yourself before the exam; this is a fact with a shelf life.
Business applications
Objective 3.1.6 asks for business applications, and the pattern repeats in every one: a task that used to end with a human doing the steps.
| Application | What the chatbot version did | What the agent version does |
|---|---|---|
| Customer resolution | Explained how to request a refund | Issues the refund, updates the order, sends confirmation |
| IT and operations triage | Suggested likely causes of an alert | Queries the systems, correlates, opens or closes the incident |
| Research and reporting | Answered questions about sources one at a time | Gathers across sources and assembles the draft report |
| Back-office workflow | Told staff which form was needed | Completes the form, files it, records the exception |
| Software development | Explained how to fix the failing test | Edits the code, runs the test, iterates until it passes |
The value claim is identical in every row: the handoff to a human disappears. So does the review step, unless it is deliberately designed back in. An agent removes a human checkpoint by default, and putting one back is a design decision somebody has to make — which is where Domain 4's responsible-AI material connects to this one.
The loop is what makes it an agent, and the loop is what makes it expensive — every pass is another model call. The stop condition is the part that gets designed last and matters most: without one, an agent that cannot achieve its goal keeps trying.
When an agent is the wrong answer
An agent buys exactly one thing: the sequence of steps does not have to be known in advance.
| The process | Better fit | Why |
|---|---|---|
| Steps vary by case; you cannot enumerate them ahead of time | Agent | Planning per case is the capability being bought |
| Same steps, same order, every time | Fixed workflow | The planning loop adds cost, latency and variability, and solves nothing |
| Steps known, but which run depends on data | Workflow with branches | Conditional logic is cheaper and auditable |
| One question, one answer, no action | Plain model call | There is no task to complete |
What the loop costs: several model calls per task instead of one, latency compounding across them, and a system that now acts — so a wrong step changes real data rather than producing a wrong sentence.
This is Chapter 02's lesson two levels down. That chapter said sometimes the answer is not to use AI. Chapter 07 said sometimes the answer is to reject generative AI for a requirement. This chapter says sometimes the answer is a workflow. The option recommending the simpler thing is frequently correct and frequently looks least impressive.
Decision Rules and Exam Signals
| When the question says… | Reach for | Because |
|---|---|---|
| Users write in several languages | Multi-lingual, eliminating | A language the model cannot serve is a failure, not a lower score |
| Scanned documents, images or audio arrive | Modality, eliminating | Name both halves of the pairing before screening anything |
| The same large instruction block on every request | Prompt caching, ranking | The cost is in repeated processing, not unit price |
| "Our longest contract fails" | Input/output length as a maximum | The criterion was tested against the typical case |
| "Set max tokens lower to save money" | Output ceiling, and a warning | It truncates; it does not summarise |
| "Lower the temperature until the errors stop" | Temperature, and a correction | It changes spread, not correctness |
| One correct output exists | Low temperature | Variety is a defect, not a feature |
| Several drafts for a human to choose from | Higher temperature | Variety is the deliverable |
| The steps vary case by case | An agent is warranted | The unknown sequence is what you are buying |
| The same steps every time, in order | A fixed workflow | The planning loop solves a problem this process does not have |
| Several model calls per completed task | Re-check latency and cost | Both compound across the loop |
Distractor Patterns
| Pattern | What it looks like | How to defuse it |
|---|---|---|
| Domain 2's list imported | Compliance or constraints offered as the deciding criterion | Nine criteria in 3.1.1; compliance is not among them |
| A true statement, wrong question | Prompt caching offered where modality decides | Ask which criterion the scenario leaves unsatisfied |
| Re-testing a satisfied criterion | Cost offered when the scenario said cost is cleared | The answer is never a criterion the question already resolved |
| Temperature as a correctness dial | "Lower it until the errors stop" | It controls spread; consistency is not correctness |
| Output ceiling as a style instruction | "Set max tokens low so it summarises" | A ceiling truncates; brevity is a prompt instruction |
| Length in the wrong sense | The model's maximum confused with the per-request value | Can I change it without changing model? |
| MCP in a Domain 3 answer | An agent question answered with protocol and patterns | v1.1 moved MCP to Objective 2.1.6 |
| Agent as a better chatbot | "It would improve answer accuracy" | A chatbot answers; an agent acts |
| Agent for a known sequence | An agent proposed for a fixed monthly process | Known steps means workflow |
Scenario Walkthrough
A logistics company wants an assistant that resolves delivery exceptions. Customers write in six languages. Each request sends a 3,500-token operating-procedure document plus the customer's message. Resolving an exception means checking the tracking system, deciding on a remedy, issuing it, and updating the order — and which of those steps is needed varies case by case. The answer must come back inside four seconds. Volume is high and steady.
| Requirement | Reading | Decision |
|---|---|---|
| Six languages | Multi-lingual — eliminates | Screen candidates on language coverage before anything else |
| 3,500-token fixed prefix, high volume | Prompt caching — ranks | The cost lever for this shape; a smaller model does not address it |
| Four-second budget, several steps per case | Latency — eliminates, and it compounds | The budget covers the whole loop, not one call |
| Steps vary case by case | An agent is warranted | The sequence genuinely cannot be enumerated |
| Issues remedies, updates orders | The agent acts | Design the stop condition and the human review point |
| High and steady volume | A serving-mode question | Chapter 07's material — not a 3.1.1 criterion |
The requirement most people miss is the third. A four-second budget across an agent loop of several model calls is a far harder constraint than four seconds for a single call, and it is the criterion most likely to eliminate the model that won on everything else. The last row is a control: serving mode belongs to Chapter 07, and naming it here is the same domain-drift error as reaching for compliance.
Key Concepts
| Term | Definition |
|---|---|
| Selection criteria (3.1.1) | The nine properties that separate one foundation model from another: cost, modality, latency, multi-lingual, model size, model complexity, customization, input/output length and prompt caching |
| Modality | The pairing of what a model accepts and what it returns — text, image, audio or video, in each direction independently |
| Multi-lingual | Whether a model serves every language its users write in; an eliminating criterion, not a score |
| Model size | How large the model is, and therefore what it costs per token and how fast it responds |
| Model complexity | How much capability the model brings, against how much the job actually consumes |
| Customization | Whether and how a model can be adapted to a use case; one criterion here, and the whole subject of Chapter 09 |
| Prompt caching | Reusing the already-processed form of a repeated prompt prefix instead of paying to process it again on every request |
| Input/output length (as a criterion) | The model's maximum context and response size — a ceiling you shop for and cannot change |
| Inference parameters (3.1.2) | Request-time settings that change how a model produces its response without changing the model, the prompt, or what it knows |
| Temperature | The control over how widely the model samples from its distribution of possible next words; it changes spread, not correctness |
| Maximum output length | A hard stop on generation, which truncates when reached; it is not an instruction to be concise |
| AI agent | The component that turns a stated goal into a sequence of actions against real systems, planning and acting until the goal is met or a stop condition is reached |
| Stop condition | The rule that ends an agent's loop when the goal cannot be reached; designed last, and the thing that prevents an agent trying indefinitely |
Revision Flashcards
Say the answer aloud before revealing it.
1. Name the nine selection criteria in Objective 3.1.1. → Cost, modality, latency, multi-lingual, model size, model complexity, customization, input/output length, and prompt caching. Four of them eliminate reliably — modality, multi-lingual, input/output length and latency — and the rest mostly rank.
2. Why is quoting Chapter 07's eight factors in a Task 3.1 question a problem? → They are different lists for different decisions. Objective 2.2.3 decides whether generative AI fits and produces a shortlist; Objective 3.1.1 separates models within that shortlist. Compliance and constraints appear on the first list and not the second, so offering compliance as the deciding criterion in a Task 3.1 question is answering the wrong objective.
3. Which three criteria appear on both lists, and why does that matter? → Cost, latency and model complexity. It matters because the overlap is what makes the confusion invisible — a candidate quoting the wrong list is often accidentally right, which is exactly what stops them noticing they have the wrong one.
4. What does it mean to say modality is a pairing rather than a label? → That "supports images" does not say whether images go in, come out, or both. A model that generates images from text and accepts only text is genuinely multi-modal and completely unusable for reading scanned invoices. Name both halves of the pairing you need before screening anything.
5. What shape of workload does prompt caching address, and what is the common wrong instinct? → A large fixed prefix with a short variable part, at volume — the same instruction block or document sent on every request. The wrong instinct is to move to a smaller model instead, which discounts every token rather than removing the repeated processing. The two levers act on different halves of the same bill.
6. "Input/output length" appears in two objectives. What does it mean in each? → In Objective 3.1.1 it is the model's maximum — a ceiling you shop for and cannot change. In Objective 3.1.2 it is the value you set on a given request, inside that ceiling. The test: can I change this without changing model? If not, it is the selection criterion.
7. What does temperature change, and what does it leave untouched? → It changes how widely the model samples from its distribution of possible next words, so it changes how much wording varies between runs. It does not change what the model knows, whether the answer is factually right, or the quality of the source material.
8. A team lowers temperature to zero and the extraction errors continue, now identically every time. What happened? → Exactly what should have been expected. Temperature makes output consistent, not correct. A model that is wrong about something at temperature zero is wrong the same way every time — which is harder to notice than an intermittent error, because it stops looking like a glitch and starts looking like a rule.
9. When is a higher temperature the right choice? → When variety is the deliverable and a human selects afterwards — generating several draft subject lines, ideating options, producing alternatives to choose between. When exactly one output is correct, as in classification or field extraction, variety is a defect.
10. A summary stops mid-sentence. What is the diagnosis, and what is the fix? → The maximum output length was reached; a ceiling truncates rather than instructing. The tell is the stopping point — a model asked to be brief produces something short and complete. If brevity is wanted, ask for it in the prompt.
11. What is the role of an AI agent, in one sentence? → It turns a stated goal into a sequence of actions against real systems, planning a step, taking it, reading the result and deciding the next, until the goal is met or a stop condition is reached. A chatbot answers a question; an agent completes a task.
12. A monthly process has eleven steps, always the same, always in that order. Why is an agent the wrong answer? → Because an agent buys the fact that the sequence need not be known in advance, and this sequence is known. The planning loop adds cost, latency and variability while solving a problem the process does not have. A fixed workflow is cheaper, faster and auditable.
The Five-Beat Answer
The core question this chapter prepares you for: "How would you choose a foundation model for this application, and how would you set it up?"
Five beats, checked in this order. Missing a beat is a failure state — you will be probed on whichever one you skipped.
- Eliminate first — name the criteria that the scenario leaves unsatisfied, and say that they eliminate rather than rank. Modality as a pairing, language coverage, the maximum lengths against your longest case, and the latency budget.
- Then rank — cost, model size, model complexity and prompt caching applied to whatever survived. Say explicitly that ranking a candidate that should have been eliminated is the common error.
- Set the parameters — temperature chosen from whether exactly one output is correct, and the output ceiling set as a safety limit rather than as a request for brevity. State that temperature changes spread and not correctness before you are asked.
- Decide whether it is an agent at all — an agent if the sequence of steps cannot be known in advance; a workflow if it can. Name what the loop costs: several calls, compounding latency, and a system that acts on real data.
- Re-check the criteria against the shape you chose — an agentic workload multiplies latency and cost per task, so criteria that were comfortable at one call may bind at twelve.
A strong answer eliminates before it ranks, and names a cost. A weak answer lists criteria.
Why This Helps You
On the job: the expensive mistakes at this stage are quiet ones. A model chosen against the median document rather than the longest, a temperature lowered until failures became reproducible instead of rare, an agent commissioned for a process whose steps were already written down. None of these looks like a mistake in a demonstration, and each is paid for over the life of the system.
In interviews: "how would you pick a model for this?" is a standard screening question, and the answer that separates people is the one that eliminates before it ranks. Saying "modality and language coverage eliminate, then I rank the survivors on cost and caching behaviour" is a structurally different answer from listing nine properties.
On the exam: this is the opening chapter of the largest domain, at 28% of scored content. The highest-value habit is finding the unsatisfied criterion, because Task 3.1 scenarios are constructed so that most criteria are met. The second highest is keeping Domain 2's objectives and Domain 3's apart — three of the questions in this chapter's quiz test only that.
Chapter Checklist
- I can name the nine criteria in Objective 3.1.1 and say which of them eliminate
- I can explain why Objective 2.2.3's eight factors are a different list for a different decision
- I can treat modality as a pairing rather than a label
- I can say what prompt caching addresses, and why a smaller model is not the same lever
- I can distinguish input/output length as a model maximum from input/output length as a request setting
- I can state what temperature changes and what it leaves untouched
- I can explain why a low temperature produces consistency rather than correctness
- I can diagnose a truncated response as an output ceiling rather than a concision instruction
- I can define the role of an agent as completing a task rather than answering about one
- I can name four business applications of agents and what the agent replaces in each
- I can say when a fixed workflow is the better answer than an agent
- I can explain why an agentic workload changes which selection criteria bind
After the Chapter
- Complete
student/project.md— parts 31-33 of the AI/ML Decision Sheet you began in Chapter 01. Bring the same sheet; do not start a new one. - Take
student/quiz.mdclosed-book, then review the reasoning for every question you guessed, including the ones you got right. - Open the official v1.1 exam guide's Domain 3 page and confirm you can attach a concept from this chapter to objectives 1, 2 and 6 under Task Statement 3.1. While you are there, search the page for "MCP" and "Model Context Protocol" and confirm for yourself that neither appears — then find Objective 2.1.6 on the Domain 2 page, where they live.
- Next: Chapter 09 — RAG, Vector Stores, and the Customization Cost Ladder (Domain 3, Task 3.1, objectives 3-5). This chapter chose a model and configured it; the model still does not know your organisation's own material. Chapter 09 asks what the cheapest way to fix that is, and turns customization — one criterion among nine here — into the entire decision.