Courseiva

Generative AI Leader Fundamentals of Generative AI Practice Question

A marketing team wants to generate product descriptions using a text generation model on Vertex AI. They need consistent output style across all descriptions, including tone and length. They have a small set of 10 high-quality example descriptions that capture the desired style. The team has limited ML expertise and wants a quick solution that does not require model retraining. Which approach should they use?

⚠ Common exam trap

Google Cloud often tests the misconception that higher temperature always improves output quality, but the trap here is that temperature controls randomness, not consistency, so candidates may incorrectly choose Option D without understanding that low temperature is required for reproducible style and length.

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 prompting with the examples in the prompt.

Few-shot prompting is the correct approach because it allows the team to inject the desired style, tone, and length directly into the prompt using the 10 high-quality examples, without any model retraining. This technique leverages the in-context learning capability of large language models on Vertex AI, enabling consistent output from a small set of demonstrations. It is ideal for teams with limited ML expertise as it requires only prompt engineering, not fine-tuning or infrastructure changes.

Answer analysis

Option-by-option breakdown

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

  • ✗

    Use a pre-built template with no model input.

    Why it's wrong here

    A static template produces fixed text with no model input, so it cannot generate varied descriptions matching the examples' tone and length. It is tempting because templates guarantee consistent structure cheaply, and would be correct when output fields are fixed and no natural-language generation is needed.

  • ✗

    Fine-tune the model on a large external dataset of product descriptions.

    Why it's wrong here

    Fine-tuning on a large external dataset requires retraining, which the team explicitly wants to avoid, and external descriptions may not match the ten examples' style. It is tempting because fine-tuning reliably instils a target style, and would be correct given thousands of labelled examples and ML expertise.

  • ✓

    Use few-shot prompting with the examples in the prompt.

    Why this is correct

    Few-shot prompting embeds the ten exemplar descriptions directly in the prompt, steering tone and length without weight updates. This satisfies the no-retraining constraint and suits limited ML expertise, since no training pipeline or labelled dataset is needed. It reliably enforces the consistent style the marketing team requires.

  • ✗

    Set the temperature to 0.9 to maximize creativity.

    Why it's wrong here

    Temperature 0.9 increases randomness, undermining the consistent tone and length the team needs, and it does not convey the example style. It is tempting because higher temperature boosts variety, and would be correct for brainstorming or creative copy where diverse, unpredictable output is wanted.

About these practice questions

Courseiva writes every Generative AI Leader question from scratch — 1,008 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or 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 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.