Microsoft Certified Azure AI Fundamentals · Free Practice Question Medium

Question 19

You are designing a prompt for a text summarization task. The model returns summaries that include irrelevant details despite being instructed to "Summarize the text."

Which element of prompt engineering is MOST LIKELY missing?

  • A

    Instructions: A clear task description.

  • B

    Input Data: The text to be summarized.

  • C

    Context: Background information about the text.

  • D

    Output Indicator: Format/length constraints.

Reveal correct answer

Correct answer: D

Explanation

When designing a prompt for a text summarization task, the developer notices that the generated summaries include irrelevant details despite being instructed simply to "Summarize the text." This indicates that the prompt may be missing specific constraints on the output. In prompt engineering for tasks like summarization, clarity and specificity in the output are as crucial as a clear instruction of the task itself.

Key Points in Detail:

  • Importance of Output Constraints:
    While the prompt provides an instruction to “summarize the text,” it does not specify the desired format or length of the summary. Without constraints on how brief or detailed the summary should be, the model might generate additional, less relevant details. An output indicator—such as specifying that the summary must be within a certain word count or in a bullet-point format—helps the model focus on the most important points and ignore extraneous information.

  • Balancing Clarity and Precision:
    A well-engineered prompt typically includes:

    • Context: Background information about the text, if necessary.

    • Clear Instructions: A directive that outlines the task (e.g., “Summarize the following text”).

    • Input Data: The actual text to be summarized.

    • Output Indicator: Explicit format or length constraints that shape the model’s response.

    In this scenario, since the input text is already provided and the instruction is clear, the missing element is likely the output indicator. Adding a specific requirement (e.g., “Provide a summary in 100 words or less” or “Summarize in two to three concise bullet points”) guides the model to produce a more focused and relevant summary.

  • Impact on Results:
    Including an output indicator not only refines the summary by reducing irrelevant details but also improves consistency across outputs. This becomes particularly important in applications where summaries are used to support decision-making or are presented in environments that require brevity and precision.

Further Reading and Documentation:


Microsoft's Educational Content Around This Topic For The AI-900 Exam:
NLP Architecture Guide

A.

The instruction "Summarize the text" is present but lacks specificity.

B.

Input data is implied in the scenario.

C.

Context helps refine responses but doesn’t enforce brevity.

D.

An output indicator (e.g., "Summarize in 3 sentences") ensures the model adheres to desired constraints, avoiding irrelevant details.

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need