CertBrain
CoursesBlog
Sign in
← Back to decks
Sign in to save your progress, vote, and build your own decks.Sign in

Choosing a Foundation Model

Designing an application around a foundation model (FM) starts with a shortlist of requirements that any candidate model must pass: what data it handles, which languages it speaks, how much it can read and write in one request, whether it can be customized, and how its cost and speed fit the…

9 cards
Study this deck

Choosing a Foundation Model

Designing an application around a foundation model (FM) starts with a shortlist of requirements that any candidate model must pass: what data it handles, which languages it speaks, how much it can read and write in one request, whether it can be customized, and how its cost and speed fit the workload. This lesson treats model choice as a design checklist, and it's the lens the exam uses when a scenario lists requirements and asks which model or feature fits.

Hard Requirements First

Some criteria are pass-or-fail. A model that fails one is out, however good it is otherwise.

  • Modality: the kinds of input and output the model supports. A product-photo search needs a model that accepts images; a voice app may need one that handles speech.
  • Languages: a model trained mainly on English may answer poorly in Japanese or Arabic. If users write in several languages, check that each one is supported.
  • Input and output length: the context window caps how much the model can read in one request, and a separate limit caps how long its answer can be. A 300-page contract needs a large context window; a 20-page generated report needs a high output limit.
  • Region: the model must be offered in the AWS Region where your data is allowed to be processed.

In Amazon Bedrock, each model's card in the "Models at a glance" section lists its modalities, context window, output limits and Regions, so it's the first place to check. Language support isn't on the cards, so confirm it in the model provider's documentation.

Design for Change

Requirements grow. A team that expects to fine-tune later, or to distill a large model into a smaller one, should check now that the chosen model supports that customization method in Amazon Bedrock. Not every model does. Choosing a model with no customization path can force a painful switch later, along with a full round of re-testing.

Size, Complexity, Cost and Speed

Model size, roughly the number of parameters, drives model complexity. Larger models handle subtle reasoning better but cost more per token and respond more slowly. A design should match model size to the hardest task the application really performs, not the hardest task imaginable. Some applications route easy requests to a small model and hard ones to a large model.

Prompt Caching as a Selection Factor

Many applications send the same long block of text on every request: system instructions, tool definitions or a reference document. Prompt caching lets supported models reuse that repeated opening part of the prompt instead of processing it again, which lowers input token cost and speeds up responses. Support varies by model, and caching applies to on-demand inference, not batch jobs. So when two models are otherwise equal and the workload repeats a long prefix, caching support can decide the choice.

Requirement in the scenarioCriterion to check
Users write in several languagesLanguage support
Very long inputs or outputsContext window and maximum output length
Fine-tuning planned for laterSupported customization methods
Same long instructions on every callPrompt caching support
Data must stay in one placeRegional availability

On the Exam

Read the scenario for the one requirement that rules options out. If it mentions several languages, long documents, planned fine-tuning or repeated long prompts, the answer turns on that criterion, not on choosing the biggest or newest model.

Quiz me on this
A tour operator is building a booking assistant for travelers who write in Japanese, Spanish and German. Before comparing costs, which model criterion should the team confirm FIRST?
  1. The model's lowest available temperature setting
  2. Whether the model can generate images
  3. ✓ That the model supports all three languages
  4. Whether the model offers a batch inference mode
A software firm will launch a support assistant using a base model in Amazon Bedrock. Within a year it expects to fine-tune the model on its own support transcripts. Which selection criterion helps avoid a costly model switch later?
  1. ✓ The model supports fine-tuning in Amazon Bedrock
  2. The model has the largest parameter count on offer
  3. The model returns the longest possible answers
  4. The model was released most recently
A company's AI agent calls a model dozens of times per task, and every call starts with the same long block of instructions and tool definitions. In testing, two candidate models give equally good results on demand. Which difference should decide the choice?
  1. Whether each model is able to run overnight batch inference jobs
  2. Which model accepts the highest temperature setting
  3. Which model has the shorter maximum output length
  4. ✓ Whether each model supports prompt caching
An analytics firm wants a model to produce a complete 20-page market report in a single response. Which model characteristic must the team check?
  1. The size of its embedding vectors
  2. ✓ Its maximum output length
  3. Whether it supports image input
  4. How many Regions it runs in
Context window vs maximum output length
The context window caps how much a model can read in one request. The output limit caps how long its answer can be.
Bedrock model card
A model's card in the Bedrock docs lists its context window, max output tokens, input and output modalities, features and Regional availability. Use it to shortlist.
Prompt caching
Lets supported models reuse a repeated prompt prefix, lowering input token cost and latency. On-demand only, not batch.
Customization support as a selection criterion
Check now that the model supports the fine-tuning you plan later. Bedrock lists the models that can be fine-tuned, and not every model is on it.
Model size trade-off in design
Bigger models reason better but cost more and respond slower. Match size to the hardest real task, or route easy requests to a small model.