Prompt Engineering & Zero-Shot — Google Gen AI Leader Practice Question
A representative Google Cloud Generative AI Leader (Google Gen AI Leader) exam question on Prompt Engineering & Zero-Shot. Work through it below, then read why each option is right or wrong.
Short answer
The correct answer is C. Few-shot prompting by including several labeled examples in the prompt.
Few-shot prompting provides the model with a small number of labeled examples directly in the prompt, which helps it understand the desired output format and classification scheme. This typically improves accuracy over zero-shot prompting (option A), which relies solely on the model's pre-trained knowledge without examples. Option C controls randomness but does not teach the model the classification categories, and option D only affects response length, not classification quality.
The Question
A product team wants to use a large language model to classify customer support tickets into categories such as "billing," "technical issue," and "feature request." They have limited labeled examples but want to improve classification accuracy beyond a basic prompt. Which prompting technique should they use?
Why C is correct
Few-shot prompting provides the model with a small number of labeled examples directly in the prompt, which helps it understand the desired output format and classification scheme. This typically improves accuracy over zero-shot prompting (option A), which relies solely on the model's pre-trained knowledge without examples. Option C controls randomness but does not teach the model the classification categories, and option D only affects response length, not classification quality.
Why the other options are wrong
Option A does not satisfy the requirement in the scenario. Review the explanation above: the correct choice (C) is the only one that fully meets every constraint stated in the question.
Option B does not satisfy the requirement in the scenario. Review the explanation above: the correct choice (C) is the only one that fully meets every constraint stated in the question.
Option D does not satisfy the requirement in the scenario. Review the explanation above: the correct choice (C) is the only one that fully meets every constraint stated in the question.
Key idea: Prompt Engineering & Zero-Shot
Few-shot prompting provides the model with a small number of labeled examples directly in the prompt, which helps it understand the desired output format and classification scheme. This typically improves accuracy over zero-shot prompting (option A), which relies solely on the model's pre-trained knowledge without examples. Option C controls randomness but does not teach the model the classification categories, and option D only affects response length, not classification quality. On the Google Gen AI Leader exam, questions in the "Techniques to Improve Gen AI Output" domain test whether you can map a scenario's constraints to the right choice. Read the requirement carefully, eliminate options that violate any single constraint, and pick the one that satisfies all of them with the least operational overhead.
Ready to see how you'd score?
Take the free practice quiz and find out which Google Cloud Generative AI Leader domains you need to focus on. No signup required.
Practice 5 similar questions
Same cert, same or adjacent domain. Use these after reviewing the explanation.