AIF-C01 - Applications of foundation models - Section 3.1

Describe design considerations for applications that use foundation models.

Consider model selection, context windows, cost, latency, and guardrails when designing an application on a foundation model. Understand where to add retrieval, caching, or human review.

Model selectionContext windowGuardrails

Practice question for this objective

Free sampleApplications of foundation modelsmedium

An organisation is selecting a foundation model for a document summarisation service. The documents are technical engineering reports averaging 15,000 tokens each. The team has shortlisted two models: Model X supports a 4,096-token context window and Model Y supports a 32,000-token context window. Both models have comparable quality benchmarks. Which selection criterion most directly favours Model Y for this use case?

  • AModel Y's larger context window allows full-document summarisation without chunking, reducing implementation complexity and potential coherence loss. Correct
  • BModel Y's larger context window means it was trained on more data, so its factual knowledge is more comprehensive for engineering topics.
  • CModel Y's larger context window lowers per-token inference cost because fewer API calls are needed when processing large batches of documents.
  • DModel Y's larger context window enables the model to generate longer summaries, meeting any output length requirements imposed by the engineering team.
Identify context window size as the decisive model selection criterion when source documents exceed one model's input limit. Context window is the total token budget for a single inference call (input plus output). When documents average 15,000 tokens and one candidate model caps at 4,096 tokens, that model cannot process a full document in one call. Model Y's 32,000-token window accommodates the full document, eliminating chunking complexity and preserving cross-section coherence. Model selection must therefore account for context window relative to expected input length.

Why A is correct: Because the average document (15,000 tokens) exceeds Model X's 4,096-token window, Model X would require chunking and then re-stitching summaries, introducing complexity and risk of losing cross-section context. Model Y can ingest the full document in a single call.

Why B is wrong: Context window size is an architectural inference-time property and is not correlated with training dataset size or domain coverage. Conflating these is a common misunderstanding. The selection advantage here is purely about input capacity at inference time.

Why C is wrong: Larger context windows typically carry higher per-token costs, not lower ones, because they require more memory and compute. Fewer API calls may reduce overhead but per-token pricing generally increases with window size. Cost is not the selection advantage cited in the question.

Why D is wrong: Context window size controls input capacity, not output length directly. Output length is governed by max output token settings. The relevant advantage here is the ability to ingest 15,000-token documents as input, not to produce longer outputs.

See more AIF-C01 practice questions, answers explained.

More in this domain

Back to all Applications of foundation models objectives, or the AIF-C01 cert hub.

Examworthy is not affiliated with or endorsed by Amazon Web Services. Original, blueprint-aligned practice material only.