Curated

Applications of Foundation Models (3.1–3.4)

0 votes

Questions84

  1. Question 1

    Applications of Foundation Models

    What is the purpose of a negative prompt?

    Show the answer

    Correct answerA. Specify content or characteristics to avoid

    AWhy this is right: A negative prompt describes content or characteristics that should be excluded from the output.

    BWhy not this: Background information provides context rather than specifying what the model should avoid.

    CWhy not this: Role assignment establishes a perspective or persona rather than identifying content to exclude.

    DWhy not this: Examples demonstrate desired behavior rather than explicitly identifying unwanted output.

    A negative prompt specifies unwanted content or characteristics to exclude from a response. Context instead supplies background information that helps the model perform the task.

    Open this question
  2. Question 2

    Applications of Foundation Models

    What is a prompt template?

    Show the answer

    Correct answerB. A reusable prompt structure with placeholders for inputs

    AWhy not this: A saved response can serve as evaluation reference data, but it is not a prompt template.

    BWhy this is right: Templates preserve a reusable prompt structure while allowing variable inputs to change.

    CWhy not this: A content filter controls permitted content rather than defining a reusable prompt structure.

    DWhy not this: A document collection supplies retrievable information rather than a parameterized prompt.

    A prompt template is a reusable structure whose placeholders are filled with task-specific inputs. A saved model response can support evaluation, but it does not define a reusable input structure.

    Open this question
  3. Question 3

    Applications of Foundation Models

    A developer needs a model to classify support tickets using custom labels. The prompt includes four labeled tickets before a new ticket. Which technique is being used?

    Show the answer

    Correct answerB. Few-shot prompting

    AWhy not this: Chain-of-thought prompting encourages intermediate reasoning rather than being defined by labeled examples.

    BWhy this is right: Several labeled tickets demonstrate the desired classification behavior before the model handles a new ticket.

    CWhy not this: Single-shot prompting supplies one example, not several labeled examples.

    DWhy not this: Zero-shot prompting provides task instructions without examples of the desired task behavior.

    Few-shot prompting provides several examples to demonstrate the desired task behavior. Single-shot prompting provides only one example, regardless of how many labels the task uses.

    Open this question
  4. Question 4

    Applications of Foundation Models

    Four FMs meet an application's quality, latency, and context-length requirements and have identical output costs. For repeated requests, 90% of input tokens qualify for cache hits; the listed prices are per million input tokens, with no additional cache charges. Which FM minimizes input cost?

    Show the answer

    Correct answerD. Model B: $1.00 uncached; $0.10 cached

    AWhy not this: Its effective input cost is $0.44 per million tokens, exceeding the lowest available cost.

    BWhy not this: Its effective input cost is $0.60 per million tokens; the lowest uncached price does not guarantee the lowest total cost.

    CWhy not this: Its effective input cost is $0.34 per million tokens, exceeding the lowest available cost.

    DWhy this is right: Its effective input cost is $0.19 per million tokens because most tokens receive the cache-hit discount.

    Model B has the lowest weighted input cost: 0.10 × $1.00 + 0.90 × $0.10 = $0.19 per million tokens. Model A has the lowest uncached price, but its effective cost remains $0.60; Models C and D cost $0.44 and $0.34.

    Open this question
  5. Question 5

    Applications of Foundation Models

    What is the typical effect of lowering temperature during foundation model inference?

    Show the answer

    Correct answerC. It makes token selection less random.

    AWhy not this: Temperature controls sampling during inference, not training or updates to model weights.

    BWhy not this: The model's context window determines supported input length; lowering temperature does not expand it.

    CWhy this is right: Lower temperature favors higher-probability tokens, reducing randomness in generated responses.

    DWhy not this: Retrieval settings control document retrieval; temperature controls token sampling.

    Lower temperature makes token selection less random, generally producing more consistent responses. It does not update model weights; weight changes require training rather than an inference setting.

    Open this question
  6. Question 6

    Applications of Foundation Models

    A company needs an assistant to answer questions using internal policies that change weekly, without retraining its foundation model. Which approach best meets this requirement?

    Show the answer

    Correct answerC. Include retrieved policy passages in the model's prompt.

    AWhy not this: Training a new model requires substantial training and does not provide a direct way to incorporate weekly updates.

    BWhy not this: Weekly fine-tuning requires repeated training, contrary to the requirement to avoid retraining.

    CWhy this is right: Retrieving current policy passages grounds responses in updated information without changing model weights.

    DWhy not this: Distillation transfers model behavior to a smaller model; it does not inherently retrieve current policies.

    RAG retrieves relevant information from an external source and supplies it as context during generation, supporting answers based on updated policies without retraining. Fine-tuning changes model weights and would require repeated training to incorporate policy updates.

    Open this question
  7. Question 7

    Applications of Foundation Models

    Which metric commonly evaluates machine translation using modified n-gram precision against reference translations and a brevity penalty?

    Show the answer

    Correct answerC. BLEU

    AWhy not this: User satisfaction reflects users' assessments rather than a reference-based translation calculation.

    BWhy not this: ROUGE commonly evaluates summaries using reference overlap; modified precision with a brevity penalty characterizes BLEU.

    CWhy this is right: BLEU combines modified n-gram precision with a brevity penalty to evaluate generated translations.

    DWhy not this: Task completion rate measures successful task outcomes rather than translation overlap with references.

    BLEU evaluates translation using modified n-gram precision and a brevity penalty. ROUGE is commonly used for summarization and emphasizes overlap with reference content, often through recall-oriented measures.

    Open this question
  8. Question 8

    Applications of Foundation Models

    A team evaluates generated answers against reference answers. Valid paraphrases receive low word-overlap scores; which metric BEST compares their semantic similarity using contextual token embeddings?

    Show the answer

    Correct answerC. BERTScore

    AWhy not this: ROUGE relies on lexical overlap and can undervalue valid paraphrases with different wording.

    BWhy not this: LLM-as-a-judge produces model-based judgments, not the specified contextual token embedding comparison.

    CWhy this is right: BERTScore compares contextual token embeddings, allowing semantically similar wording to receive credit.

    DWhy not this: Task completion rate measures successful outcomes rather than semantic similarity to reference answers.

    BERTScore compares contextual token embeddings to assess similarity beyond exact wording. LLM-as-a-judge uses a model to judge responses against criteria rather than calculating BERTScore's embedding-based similarity.

    Open this question
  9. Question 9

    Applications of Foundation Models

    A company needs to compare foundation models for drafting legal explanations. Which evaluation approach BEST assesses whether the explanations preserve legal nuance and use language appropriate for clients?

    Show the answer

    Correct answerC. Have legal experts rate outputs using a shared rubric

    AWhy not this: Generation cost measures efficiency, not preservation of legal meaning or appropriate language.

    BWhy not this: A general knowledge benchmark does not directly assess legal nuance or suitability for the intended clients.

    CWhy this is right: Legal experts can use consistent criteria to judge domain-specific meaning and audience-appropriate language.

    DWhy not this: Opening an explanation indicates engagement, not whether its legal meaning and language are appropriate.

    Human evaluation by legal experts can assess domain-specific nuance and audience suitability against a consistent rubric. A general knowledge benchmark provides standardized comparisons but does not directly establish suitability for this legal task.

    Open this question
  10. Question 10

    Applications of Foundation Models

    A team initializes a new language model with random weights and trains it to predict tokens across a broad collection of text. Which training stage is the team performing?

    Show the answer

    Correct answerD. Pre-training

    AWhy not this: Reinforcement learning from human feedback uses human preferences to guide model behavior, not just token prediction over broad text.

    BWhy not this: Continuous pre-training extends an existing pre-trained model; this model starts with random weights.

    CWhy not this: Instruction tuning uses instruction-and-response examples to improve instruction following rather than build initial capabilities from broad text.

    DWhy this is right: Learning general patterns from broad text starting with random weights is initial pre-training.

    Pre-training builds a model's initial general capabilities from a broad dataset. Continuous pre-training instead starts with an already pre-trained model and extends its training.

    Open this question
  11. Question 11

    Applications of Foundation Models

    What does representativeness mean when preparing a dataset to fine-tune an FM?

    Show the answer

    Correct answerA. The data reflects expected users, tasks, and real-world inputs.

    AWhy this is right: Matching the intended usage population and input distribution makes a dataset representative.

    BWhy not this: Repeating common examples can overrepresent frequent patterns and neglect less common cases.

    CWhy not this: Selecting only easy-to-label examples can exclude difficult but important real-world cases.

    DWhy not this: A large dataset can still omit important groups, tasks, or input types.

    Representative data reflects the users, tasks, and inputs the model will encounter. Dataset size alone does not ensure that important groups or use cases are covered.

    Open this question
  12. Question 12

    Applications of Foundation Models

    A company has unlabeled engineering manuals and curated instruction–response examples. It wants to update an existing FM's weights to learn engineering terminology and follow task instructions, rather than supply context only at inference. Which approaches match these goals? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersD. Continue pre-training the model on the engineering manuals.F. Apply instruction tuning using the curated response examples.

    AWhy not this: Training a tokenizer alone does not update the FM's learned knowledge or instruction-following behavior.

    BWhy not this: Training from random weights creates a new model rather than adapting the company's existing FM.

    CWhy not this: Retrieval supplies external context during inference but does not update the FM's weights.

    DWhy this is right: Continuous pre-training adapts an existing model to domain language using unlabeled text.

    EWhy not this: Few-shot prompting demonstrates tasks in the prompt without training the model's weights.

    FWhy this is right: Instruction tuning updates model weights using examples of instructions and desired responses.

    Continuous pre-training uses unlabeled domain text to adapt an existing model, while instruction tuning uses instruction–response examples to improve task following. Retrieval and few-shot prompting supply inference context without updating model weights.

    Open this question
  13. Question 13

    Applications of Foundation Models

    A large FM meets a company's task-quality requirements but exceeds its inference latency limit; a smaller model meets the latency limit but lacks task accuracy. Human-labeled examples are scarce, and the large model can generate suitable responses. Which approach BEST uses the available resources?

    Show the answer

    Correct answerB. Train the smaller model using responses from the large model.

    AWhy not this: Continued pre-training can improve domain knowledge but does not reduce the large model's size or resolve its latency constraint.

    BWhy this is right: Teacher-generated responses can transfer task behavior to the smaller model while reducing reliance on human-labeled examples.

    CWhy not this: Fine-tuning may improve task performance, but the large model already meets quality requirements and still exceeds the latency limit.

    DWhy not this: Training from scratch does not exploit the large model's proven task behavior and typically requires substantial data and compute.

    Distillation transfers behavior from a larger teacher to a smaller student using teacher-generated outputs, addressing the latency constraint without requiring extensive human labeling. Further training of the large model does not address the need for a smaller deployment model.

    Open this question
  14. Question 14

    Applications of Foundation Models

    Which AWS service supports storing embeddings in a vector index for similarity search?

    Show the answer

    Correct answerD. Amazon OpenSearch Service

    AWhy not this: Lex builds conversational interfaces rather than providing a vector database.

    BWhy not this: Comprehend extracts insights from text rather than providing a vector index.

    CWhy not this: Transcribe converts speech into text rather than storing searchable vectors.

    DWhy this is right: OpenSearch Service stores embeddings and supports vector similarity searches.

    Amazon OpenSearch Service supports vector indexes for storing and searching embeddings. Amazon Comprehend analyzes text but is not a vector database.

    Open this question
  15. Question 15

    Applications of Foundation Models

    A company needs current policy answers and high-volume classification with stable labels. Which cost tradeoffs should it consider when choosing customization approaches for these workloads? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersC. Distillation adds training costs but can reduce classification inference costs at scale.D. In-context learning avoids training charges but repeated examples add input-token costs.F. RAG avoids retraining for policy updates but adds embedding, storage, and retrieval costs.

    AWhy not this: Retrieved passages included in a model's prompt consume input tokens despite being stored externally.

    BWhy not this: Fine-tuning incurs training costs and does not eliminate charges for using the resulting model.

    CWhy this is right: A smaller student model can cost less to run, potentially offsetting distillation costs at high volume.

    DWhy this is right: Examples supplied in prompts require no weight updates but increase billed input tokens.

    EWhy not this: Pre-training generally requires substantial data and compute; avoiding retrieval does not make it cheaper than RAG.

    FWhy this is right: Updating a retrieval corpus avoids model retraining, but embedding, storage, and retrieval still incur costs.

    RAG trades retraining for retrieval infrastructure costs; distillation trades upfront training for potentially cheaper inference; in-context learning trades training costs for prompt-token costs. Fine-tuning still incurs inference charges, and retrieved RAG passages consume context tokens.

    Open this question
  16. Question 16

    Applications of Foundation Models

    A company uses Amazon RDS for PostgreSQL and wants to store embeddings alongside its relational records without adding another database service. What should it use?

    Show the answer

    Correct answerB. The pgvector extension

    AWhy not this: Neptune Analytics supports vector search but would add a separate service.

    BWhy this is right: pgvector adds vector storage and similarity search to the existing PostgreSQL database.

    CWhy not this: OpenSearch Service supports vector indexes but would add a separate service.

    DWhy not this: A knowledge base manages retrieval workflows but still requires an underlying vector store.

    The pgvector extension enables vector storage and similarity queries within RDS for PostgreSQL. Amazon OpenSearch Service supports vector search but would introduce a separate service.

    Open this question
  17. Question 17

    Applications of Foundation Models

    A retailer wants an assistant to resolve delivery problems by checking orders, selecting permitted remedies, and invoking refund or replacement APIs. Which approach best meets this need?

    Show the answer

    Correct answerA. An AI agent that orchestrates approved business tools

    AWhy this is right: An agent can select and invoke approved tools to carry out a multistep resolution.

    BWhy not this: Matching similar tickets supports retrieval but does not execute refunds or replacements.

    CWhy not this: Retrieving policies supplies context but does not by itself execute the required business actions.

    DWhy not this: Classifying complaints identifies their categories but does not coordinate resolution actions.

    An AI agent can plan and coordinate tool calls to complete a business task within configured permissions. RAG supplies relevant information but, by itself, does not orchestrate refunds or replacements.

    Open this question
  18. Question 18

    Applications of Foundation Models

    Which Amazon Bedrock Prompt Management action preserves an immutable snapshot of a prompt for application use?

    Show the answer

    Correct answerD. Create a prompt version

    AWhy not this: A prompt variable provides a placeholder for input values, not a fixed snapshot.

    BWhy not this: The working draft remains editable, so updating it does not create an immutable snapshot.

    CWhy not this: A prompt variant provides an alternative configuration, not an immutable snapshot.

    DWhy this is right: A prompt version is an immutable snapshot that can be referenced by an application.

    Creating a prompt version preserves an immutable snapshot that an application can reference. A working draft remains editable and does not provide the same fixed snapshot.

    Open this question
  19. Question 19

    Applications of Foundation Models

    A document-summarization assistant retrieves a page containing instructions to ignore the user's request and advertise a product. The assistant follows those instructions instead of summarizing. Which risk does this demonstrate?

    Show the answer

    Correct answerC. Indirect prompt injection

    AWhy not this: Training data poisoning corrupts data used to train a model, rather than introducing instructions through retrieved content.

    BWhy not this: Sensitive information exposure involves disclosing protected information; no such disclosure is described.

    CWhy this is right: Instructions in retrieved content redirected the assistant away from the user's intended task.

    DWhy not this: Context window exhaustion concerns exceeding input capacity, not following instructions embedded in external content.

    Indirect prompt injection occurs when instructions embedded in external content redirect a model from its intended task. Training data poisoning alters training data; this redirection occurs through content retrieved during inference.

    Open this question
  20. Question 20

    Applications of Foundation Models

    A team shortens a summarization prompt, improving brevity on the examples used to revise it. Required facts must still appear in summaries of unfamiliar documents. How should the team decide whether to adopt the revision?

    Show the answer

    Correct answerA. Compare both prompts on unseen documents, scoring brevity and required facts with fixed model settings.

    AWhy this is right: Unseen inputs test generalization, both metrics reflect requirements, and fixed settings isolate the prompt change.

    BWhy not this: Changing model settings introduces another variable, obscuring whether the prompt revision caused the improvement.

    CWhy not this: Brevity alone cannot show whether the revised prompt still preserves required facts.

    DWhy not this: Examples used during revision can favor the revised prompt without demonstrating performance on unfamiliar inputs.

    Testing on unseen documents against both requirements checks whether the improvement generalizes, while fixed model settings isolate the prompt's effect. Reusing revision examples risks selecting a prompt that performs well only on familiar inputs.

    Open this question
  21. Question 21

    Applications of Foundation Models

    A retailer introduces an AI assistant to improve customers' perception of its support service. Which metric BEST measures progress toward that goal?

    Show the answer

    Correct answerD. Percentage of users rating support positively

    AWhy not this: Avoiding escalation measures containment, which does not necessarily mean customers are satisfied.

    BWhy not this: More messages can indicate engagement or difficulty; the count does not directly measure customer perception.

    CWhy not this: Reference similarity assesses generated answers rather than customers' experience of support.

    DWhy this is right: Positive support ratings directly reflect customers' reported satisfaction with the service.

    Positive user ratings directly measure customers' satisfaction with support. Handling requests without escalation measures self-service completion, but customers may still be dissatisfied with the experience.

    Open this question
  22. Question 22

    Applications of Foundation Models

    Which evaluation directly checks the retrieval component of a retrieval-augmented generation (RAG) application?

    Show the answer

    Correct answerD. Check retrieved passages for query relevance.

    AWhy not this: Overall satisfaction measures user experience without isolating retrieval performance.

    BWhy not this: Fluency evaluates generated language rather than whether retrieval finds useful passages.

    CWhy not this: Summary comparison evaluates generated output rather than the retrieved passages.

    DWhy this is right: Query relevance checks whether the retrieval component finds material useful for answering the request.

    Checking whether retrieved passages are relevant to the query directly evaluates retrieval. Rating answer fluency evaluates generated language, which can sound natural even when retrieval returns irrelevant material.

    Open this question
  23. Question 23

    Applications of Foundation Models

    A company pilots an FM to reduce total staff time per approved report below the current 10 minutes. Drafting now takes 6 minutes plus 5 minutes of required review, with unchanged quality and higher benchmark scores. What should the company conclude?

    Show the answer

    Correct answerC. The productivity goal is unmet because total staff time increased.

    AWhy not this: Unchanged quality does not prevent productivity gains; increased total staff time prevents them here.

    BWhy not this: Drafting time excludes required review, so it does not measure the full business process.

    CWhy this is right: Drafting and required review total 11 minutes, exceeding the 10-minute baseline.

    DWhy not this: Benchmark scores measure model performance, not whether total staff time decreased.

    Total staff time is now 11 minutes per approved report, exceeding the 10-minute baseline. Faster drafting alone does not establish productivity improvement when required review adds more time.

    Open this question
  24. Question 24

    Applications of Foundation Models

    A company wants to track the average operating expense of each AI assistant interaction. Monthly operating costs total $2,400 across 12,000 interactions; which metric and value should it report?

    Show the answer

    Correct answerB. Cost per interaction: $0.20

    AWhy not this: The monthly total does not account for how many interactions the assistant handled.

    BWhy this is right: Dividing $2,400 by 12,000 interactions gives an average operating cost of $0.20 per interaction.

    CWhy not this: The interaction count measures usage volume, not the expense of an individual interaction.

    DWhy not this: Dividing interactions by dollars gives 5 interactions per dollar, not a $5 cost per interaction.

    Cost per interaction divides total operating costs by the number of interactions: $2,400 ÷ 12,000 = $0.20. Dividing interactions by cost produces interactions per dollar, not dollars per interaction.

    Open this question
  25. Question 25

    Applications of Foundation Models

    Which foundation model selection criterion determines whether a model can accept images as well as text?

    Show the answer

    Correct answerB. Modality

    AWhy not this: A context window limits the amount of information processed, not the supported data types.

    BWhy this is right: Modality determines whether the model supports data types such as images and text.

    CWhy not this: Customization support describes how a model can be adapted, not its supported input types.

    DWhy not this: Model size describes the model's scale, not whether it accepts images.

    Modality identifies the types of data a model can process or generate, such as text and images. A context window determines how much information a model can handle, not which data types it supports.

    Open this question
  26. Question 26

    Applications of Foundation Models

    An application must process 60,000 input tokens and generate 8,000 output tokens in one request. Each model's context limit includes input and output tokens; which model's limits support this request?

    Show the answer

    Correct answerA. 96,000-token context; 12,000-token maximum output

    AWhy this is right: The context accommodates 68,000 total tokens, and the output limit permits an 8,000-token answer.

    BWhy not this: The larger context does not compensate for an output limit below 8,000 tokens.

    CWhy not this: The context is sufficient, but the 4,000-token output limit cannot support the required answer.

    DWhy not this: The output allowance is sufficient, but the 64,000-token context cannot hold the combined 68,000 tokens.

    The request requires a context capacity of at least 68,000 tokens and an output limit of at least 8,000 tokens. A large context window alone is insufficient if the model's separate output limit is too small.

    Open this question
  27. Question 27

    Applications of Foundation Models

    A customer-service application needs complete answers within two seconds. Several foundation models meet its accuracy requirements; what should the team compare next to identify suitable models?

    Show the answer

    Correct answerB. Response times measured with representative requests

    AWhy not this: Parameter count can influence speed, but it does not directly establish application response time.

    BWhy this is right: Representative measurements show whether each model meets the required end-to-end response time.

    CWhy not this: Context limits determine supported request size rather than whether answers finish within two seconds.

    DWhy not this: Training duration does not measure the time needed to generate an answer during inference.

    Response times measured with representative requests directly assess whether models can meet the application's latency requirement. Parameter count can influence latency, but it does not establish actual response time.

    Open this question
  28. Question 28

    Applications of Foundation Models

    Which foundation model selection criterion is most directly relevant to answering customers accurately in Japanese, Arabic, and Spanish?

    Show the answer

    Correct answerD. Multilingual capability

    AWhy not this: Fine-tuning availability does not establish how well the model already handles the required languages.

    BWhy not this: Prompt caching can reduce repeated-input processing costs or latency, not establish language proficiency.

    CWhy not this: Maximum output length limits answer size rather than accuracy across languages.

    DWhy this is right: Performance in the required languages directly determines suitability for multilingual customer interactions.

    Multilingual capability determines a model's suitability for understanding and generating the required languages. Fine-tuning availability offers a way to adapt a model but does not establish its existing proficiency in those languages.

    Open this question
  29. Question 29

    Applications of Foundation Models

    Which AWS capability provides managed jobs for evaluating foundation model outputs using automatic metrics or human reviewers?

    Show the answer

    Correct answerA. Amazon Bedrock Model Evaluation

    AWhy this is right: Model Evaluation provides managed evaluation jobs using automatic metrics or human reviewers.

    BWhy not this: Guardrails applies safeguards to inputs and outputs rather than managing automatic or human evaluation jobs.

    CWhy not this: Knowledge Bases connects models to retrieved information; it does not manage model evaluation jobs.

    DWhy not this: Provisioned Throughput reserves model processing capacity rather than evaluating output quality.

    Amazon Bedrock Model Evaluation supports managed evaluation using automatic metrics or human reviewers. Amazon Bedrock Guardrails applies safeguards to model inputs and outputs rather than managing comparative evaluation jobs.

    Open this question
  30. Question 30

    Applications of Foundation Models

    A model leads on a general question-answering benchmark but performs poorly on internal insurance terminology. Before selecting a model, which evaluation approach BEST addresses this discrepancy?

    Show the answer

    Correct answerA. Compare models on representative insurance questions with verified answers

    AWhy this is right: Representative insurance questions with verified answers directly test the domain-specific performance that matters.

    BWhy not this: Context window size describes input capacity, not demonstrated competence with insurance terminology.

    CWhy not this: More general-knowledge examples do not necessarily test the insurance terminology causing the performance gap.

    DWhy not this: Cost measures operational efficiency but does not establish accuracy on insurance terminology.

    A domain-representative evaluation measures performance on the terminology and tasks the model will encounter. A larger general-knowledge benchmark may provide more evidence about general ability without resolving the insurance-specific weakness.

    Open this question
  31. Question 31

    Applications of Foundation Models

    Which metric family is commonly used to evaluate generated summaries through overlap with reference summaries?

    Show the answer

    Correct answerB. ROUGE

    AWhy not this: Task completion rate measures successful task outcomes, not overlap with reference summaries.

    BWhy this is right: ROUGE measures overlap between generated and reference summaries and is widely used for summarization evaluation.

    CWhy not this: Cost per interaction measures spending efficiency, not the textual quality of generated summaries.

    DWhy not this: User engagement measures user behavior rather than similarity to reference summaries.

    ROUGE evaluates generated summaries using overlap with reference summaries, such as shared words or sequences. Task completion rate measures successful task outcomes rather than textual overlap.

    Open this question
  32. Question 32

    Applications of Foundation Models

    A team must check whether its fine-tuned model's support replies follow the company's tone and brand guidelines. The guidelines are subjective, and no public benchmark covers them. Which evaluation approach BEST fits?

    Show the answer

    Correct answerB. Human evaluation by reviewers who know the guidelines

    AWhy not this: Public benchmarks measure general abilities and do not cover a company's own tone guidelines.

    BWhy this is right: Reviewers who know the guidelines can rate subjective qualities such as tone and brand fit.

    CWhy not this: Perplexity on training data shows how well the model fits text it has seen, not whether replies follow brand guidelines.

    DWhy not this: ROUGE measures word overlap with reference replies, which does not show whether the tone is right.

    Human-in-the-loop evaluation suits subjective qualities such as tone and brand fit. Amazon Bedrock model evaluation can run a human-based evaluation job with the company's own work team rating responses against its criteria.

    Open this question
  33. Question 33

    Applications of Foundation Models

    What does assigning a persona in a prompt primarily establish?

    Show the answer

    Correct answerC. The model's role or perspective

    AWhy not this: A data structure is established by an output-format requirement.

    BWhy not this: Example answers demonstrate desired behavior rather than assign a role.

    CWhy this is right: A persona directs the model to respond from a particular role or perspective.

    DWhy not this: Content exclusions are expressed through negative instructions rather than a persona.

    A persona establishes the role or perspective the model should adopt, such as a patient tutor. An output format instead specifies the response's structure, such as JSON or a table.

    Open this question
  34. Question 34

    Applications of Foundation Models

    What prompt component supplies background information that helps a model interpret a user's request?

    Show the answer

    Correct answerD. Context

    AWhy not this: An output format describes the structure of the response.

    BWhy not this: A guardrail applies safety or content controls rather than supplying task background.

    CWhy not this: A negative prompt specifies content or characteristics to avoid.

    DWhy this is right: Context gives the model background information relevant to the request.

    Context supplies background information relevant to interpreting and answering a request. An output format specifies how the answer should be structured, not the background needed to produce it.

    Open this question
  35. Question 35

    Applications of Foundation Models

    A team cannot supply worked examples for a new reasoning task but wants the model to produce intermediate reasoning before its conclusion. Which prompting approach BEST meets these requirements?

    Show the answer

    Correct answerD. Zero-shot prompting requesting step-by-step reasoning

    AWhy not this: Few-shot prompting requires multiple worked examples, which are unavailable.

    BWhy not this: Requesting only a conclusion does not elicit the intermediate reasoning the team wants.

    CWhy not this: Single-shot prompting requires one worked example, which is unavailable.

    DWhy this is right: This combines the absence of examples with an explicit request for intermediate reasoning.

    Zero-shot chain-of-thought prompting requests intermediate reasoning without supplying worked examples. Single-shot chain-of-thought prompting also demonstrates reasoning, but it requires an example, which the team cannot provide.

    Open this question
  36. Question 36

    Applications of Foundation Models

    A prompt includes a customer email and the sentence, "Extract the order number and return it as JSON." What function does that sentence perform?

    Show the answer

    Correct answerA. It gives a task instruction.

    AWhy this is right: The sentence directs the model to extract a value and specifies the response format.

    BWhy not this: A persona assigns a role or perspective rather than specifying this extraction operation.

    CWhy not this: Reference information supplies facts used in answering rather than directing the operation.

    DWhy not this: A completed example would show a sample email and its corresponding extracted result.

    The sentence instructs the model what operation to perform and how to return the result. A completed example would demonstrate an input and its expected output rather than simply direct the task.

    Open this question
  37. Question 37

    Applications of Foundation Models

    A developer encloses a document within XML-style tags and tells the model to summarize only the enclosed text. What is the primary purpose of the tags?

    Show the answer

    Correct answerD. Mark the input boundaries

    AWhy not this: Tags do not save or preserve an immutable prompt configuration.

    BWhy not this: Enclosing a source document does not provide a demonstration of the expected summary.

    CWhy not this: An expert perspective is established through a role instruction, not document boundaries.

    DWhy this is right: The tags separate the document to be processed from the surrounding instructions.

    Delimiters such as XML-style tags mark where input content begins and ends, helping distinguish it from instructions. They do not demonstrate the desired answer unless an actual example answer is also provided.

    Open this question
  38. Question 38

    Applications of Foundation Models

    Which concept means reusing knowledge learned by a pre-trained model to help it learn a new task?

    Show the answer

    Correct answerA. Transfer learning

    AWhy this is right: Transfer learning uses previously learned representations as a starting point for a new task.

    BWhy not this: Prompt engineering changes model inputs without training the model on a new task.

    CWhy not this: Preference ranking collects comparative judgments that can support alignment training.

    DWhy not this: Labeling supplies target annotations for examples; it does not describe reusing a model's learned knowledge.

    Transfer learning reuses knowledge acquired during earlier training for a new task. Prompt engineering changes the input supplied to a model rather than training it to perform a new task.

    Open this question
  39. Question 39

    Applications of Foundation Models

    After additional training on a narrow collection of legal documents, an FM improves on legal tasks but loses accuracy on previously mastered general tasks. What MOST likely occurred?

    Show the answer

    Correct answerA. Catastrophic forgetting

    AWhy this is right: Specialized training can overwrite or weaken capabilities learned earlier.

    BWhy not this: Distillation transfers behavior from a teacher to a student; no teacher–student process is described.

    CWhy not this: More representative data would cover intended uses rather than explain a loss of general capabilities.

    DWhy not this: Leakage can inflate evaluation results but does not explain losing previously learned capabilities after specialized training.

    Catastrophic forgetting occurs when additional training degrades previously learned capabilities. Training data leakage instead contaminates evaluation with information available during training, often making measured performance misleadingly high.

    Open this question
  40. Question 40

    Applications of Foundation Models

    What is the primary purpose of fine-tuning a pre-trained foundation model?

    Show the answer

    Correct answerA. Adapt its weights for a particular task

    AWhy this is right: Fine-tuning adapts learned weights using additional training examples.

    BWhy not this: Tokenizer construction defines how text is represented, not how a pre-trained model is adapted to a task.

    CWhy not this: Deduplication prepares training data but does not itself train or adapt the model.

    DWhy not this: Retrieval supplies context at inference time rather than updating model weights.

    Fine-tuning updates a pre-trained model's weights to improve performance for a particular task or use case. Retrieval supplies external context during inference rather than adapting model weights.

    Open this question
  41. Question 41

    Applications of Foundation Models

    A team must adapt an FM to a task, but training memory is limited. It wants to keep the base weights frozen and train a small set of additional parameters. Which method BEST fits?

    Show the answer

    Correct answerC. Parameter-efficient fine-tuning

    AWhy not this: Retrieval supplies external context but does not train additional model parameters.

    BWhy not this: Full fine-tuning updates all model parameters rather than keeping base weights frozen.

    CWhy this is right: Parameter-efficient methods can adapt a frozen model by training a small set of added parameters.

    DWhy not this: Training from scratch learns model weights anew rather than adapting a frozen pre-trained model.

    Parameter-efficient fine-tuning can train a small set of added parameters while keeping base weights frozen, reducing training memory requirements. Full fine-tuning updates all model parameters and generally requires more training memory.

    Open this question
  42. Question 42

    Applications of Foundation Models

    Which prompt revision BEST reduces ambiguity about the required output?

    Show the answer

    Correct answerD. Specify the output format and length.

    AWhy not this: Repeating an ambiguous request does not clarify the expected result.

    BWhy not this: Unrelated background adds distraction without defining the required output.

    CWhy not this: Broad wording leaves more room for inconsistent interpretations.

    DWhy this is right: Explicit format and length requirements clarify what the model should produce.

    Specifying format and length makes the expected response clearer and easier to assess. Repetition adds text but does not resolve an ambiguous requirement.

    Open this question
  43. Question 43

    Applications of Foundation Models

    A developer includes one example of converting a product description into a headline, followed by a new description to convert. Which prompting technique is being used?

    Show the answer

    Correct answerC. Single-shot prompting

    AWhy not this: Zero-shot prompting provides task instructions without a demonstration.

    BWhy not this: Few-shot prompting uses several demonstrations rather than one.

    CWhy this is right: One example of the requested transformation makes this single-shot prompting.

    DWhy not this: Chain-of-thought prompting requests intermediate reasoning, not simply an example transformation.

    Single-shot prompting provides one demonstration of the requested task. Few-shot prompting provides several demonstrations, while zero-shot prompting provides none.

    Open this question
  44. Question 44

    Applications of Foundation Models

    Which practice helps a model handle a complex task with several dependent subtasks?

    Show the answer

    Correct answerC. Break the task into manageable steps.

    AWhy not this: A long sentence can obscure requirements rather than organize dependent subtasks.

    BWhy not this: Removing dependencies can prevent the model from performing subtasks in a useful order.

    CWhy this is right: Manageable steps help organize the work and preserve dependencies between subtasks.

    DWhy not this: A shorter final response does not simplify the underlying task.

    Breaking a complex task into manageable steps helps the model address dependencies and individual requirements. Requesting a shorter response changes presentation, not the complexity of the work.

    Open this question
  45. Question 45

    Applications of Foundation Models

    During an authorized test, an assistant reproduces confidential instructions from its hidden system prompt after a user asks for diagnostic details. No training data is changed or prohibited content generated; which risk is directly demonstrated?

    Show the answer

    Correct answerD. Prompt exposure

    AWhy not this: Jailbreaking targets safety restrictions; disclosure of internal prompt content is more specifically prompt exposure.

    BWhy not this: Hallucination involves fabricated or unsupported output, not accurate reproduction of hidden instructions.

    CWhy not this: Data poisoning involves contaminating data used by a model, not revealing existing system instructions.

    DWhy this is right: Reproducing confidential system instructions exposes internal prompt content.

    Prompt exposure occurs when internal prompt content is disclosed to users. Jailbreaking focuses on bypassing safety restrictions; the demonstrated outcome here is disclosure of confidential instructions.

    Open this question
  46. Question 46

    Applications of Foundation Models

    A team uses a foundation model for a public-facing assistant. Which practices provide safeguards against harmful responses and disclosure of sensitive information? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersA. Apply sensitive information filters to responses.B. Configure content filters for harmful responses.

    AWhy this is right: Sensitive information filters can detect and block or mask supported sensitive data.

    BWhy this is right: Content filters provide a safeguard against harmful material in model responses.

    CWhy not this: Templates standardize prompt structure but do not themselves filter unsafe output.

    DWhy not this: Versioning preserves a prompt configuration but does not inspect responses for harmful or sensitive content.

    Content filters help block harmful material, while sensitive information filters can block or mask supported sensitive data. Prompt templates and versioning support consistency and management, not output safety enforcement.

    Open this question
  47. Question 47

    Applications of Foundation Models

    What does a configured stop sequence do during text generation?

    Show the answer

    Correct answerC. Ends generation when matching text appears

    AWhy not this: The model's context limit determines input capacity, not a stop sequence.

    BWhy not this: Sampling controls such as top-k restrict candidate tokens; stop sequences do not.

    CWhy this is right: Generation stops when the specified text sequence is produced.

    DWhy not this: Temperature controls sampling randomness rather than matching a stopping string.

    A stop sequence ends generation when the model produces the specified text sequence. A maximum token setting instead stops generation when its token budget is exhausted.

    Open this question
  48. Question 48

    Applications of Foundation Models

    A legal research assistant uses RAG to explain a retrieved contract clause. How does the retrieved clause normally influence the foundation model's answer?

    Show the answer

    Correct answerB. It becomes supporting context during generation

    AWhy not this: Similarity scores help select relevant material but do not replace the generated explanation.

    BWhy this is right: The retrieved clause is supplied as context that supports the generated explanation.

    CWhy not this: Training a smaller model is distillation, not retrieval-augmented generation.

    DWhy not this: Updating model weights is training or fine-tuning, not the normal retrieval step in RAG.

    RAG supplies retrieved material as context so the model can generate a grounded answer. Fine-tuning changes model weights; retrieving a contract clause does not itself train the model.

    Open this question
  49. Question 49

    Applications of Foundation Models

    An application repeatedly receives summaries that end mid-sentence. Response metadata shows that generation reached the configured output token limit; which change most directly addresses the cutoff?

    Show the answer

    Correct answerC. Increase the maximum output tokens

    AWhy not this: Prompt caching can reduce repeated input processing but does not increase the output token limit.

    BWhy not this: Lower temperature changes sampling variability rather than the output token budget.

    CWhy this is right: A higher output token limit permits generation to continue beyond the previous cutoff.

    DWhy not this: Higher temperature changes sampling variability rather than the output token budget.

    Increasing the output token limit gives the model room to finish summaries that were cut off at that limit. Changing temperature affects token selection, not the available output token budget.

    Open this question
  50. Question 50

    Applications of Foundation Models

    A team wants sampling to consider a variable number of candidate tokens based on their cumulative probability, rather than a fixed candidate count. Which inference setting directly implements this requirement?

    Show the answer

    Correct answerD. Top-p sampling

    AWhy not this: Top-k uses a fixed candidate count rather than a cumulative probability threshold.

    BWhy not this: Temperature reshapes token probabilities but does not set a cumulative probability cutoff.

    CWhy not this: Maximum output tokens caps response length rather than defining the sampling candidate set.

    DWhy this is right: Top-p uses a probability-mass threshold, allowing the number of eligible tokens to vary.

    Top-p sampling selects candidates using a cumulative probability threshold, so the candidate count can vary. Top-k instead restricts sampling to a fixed number of highest-probability tokens.

    Open this question