Courseiva
Applications of Foundation ModelsmediumMultiple ChoiceObjective-mapped

AIF-C01 Applications of Foundation Models Practice Question

A developer is using Amazon Bedrock to generate text summaries. The output sometimes includes irrelevant information. What is the most effective prompt engineering technique to improve relevance?

⚠ Common exam trap

AWS often tests the misconception that adjusting generation parameters (like temperature or token limits) can substitute for explicit prompt structure, when in fact few-shot examples directly teach the model the expected output format and content relevance.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Use few-shot examples with summaries

Few-shot examples provide the model with explicit patterns of desired output, directly guiding it to produce summaries that match the format and content of the examples. This technique is the most effective for improving relevance because it gives the model concrete reference points, reducing the likelihood of including irrelevant information.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Add a negative prompt specifying what to avoid

    Why it's wrong here

    Negative prompts can reduce irrelevant content but are not as effective as few-shot for relevance.

  • Use few-shot examples with summaries

    Why this is correct

    Few-shot examples show the model desired output patterns, improving relevance.

  • Increase max tokens

    Why it's wrong here

    Max tokens control length, not relevance.

  • Decrease temperature

    Why it's wrong here

    Temperature controls randomness, not relevance.

About these practice questions

This AIF-C01 question is part of Courseiva's 619-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This AIF-C01 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AIF-C01 exam.