Courseiva
Fundamentals of Generative AImediumMultiple ChoiceObjective-mapped

Generative AI Leader Fundamentals of Generative AI Practice Question

A company wants to use a pre-trained language model for customer support summarization. They need to ensure responses are concise and accurate. Which prompt engineering technique is most effective?

⚠ Common exam trap

Google Cloud often tests the misconception that zero-shot prompting is sufficient for all tasks, but the trap here is that candidates overlook the need for explicit guidance in format-sensitive tasks like summarization, where few-shot examples provide the necessary constraint for consistency.

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

Few-shot prompting with examples

Few-shot prompting (B) is most effective because it provides the model with a small set of example input-output pairs (e.g., a customer query and its concise summary), which guides the model to produce outputs that match the desired format, length, and accuracy. This technique is particularly useful for summarization tasks where consistency and adherence to a specific style are critical, as it reduces ambiguity without requiring fine-tuning.

Answer analysis

Option-by-option breakdown

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

  • Zero-shot prompting

    Why it's wrong here

    Zero-shot may not provide enough context for concise summaries.

  • Few-shot prompting with examples

    Why this is correct

    Few-shot provides examples to guide the model, improving accuracy and conciseness.

  • Chain-of-thought prompting

    Why it's wrong here

    Chain-of-thought is for reasoning tasks, not directly for summarization conciseness.

  • Negative prompting

    Why it's wrong here

    Negative prompting tries to avoid certain outputs, but may not achieve conciseness effectively.

About these practice questions

One of 683 original Generative AI Leader practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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 Generative AI Leader practice question is part of Courseiva's free Google Cloud 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 Generative AI Leader exam.