‹ All Google Cloud Generative AI Leader questions

GCP Generative AI Leader Practice Question 7: Consistent Output Format

Google Cloud Generative AI Leader · Test 1 · question 7 of 10

Techniques to Improve Model Outputeasy

A retail merchandising team uses Gemini to write product descriptions. The instructions in the prompt are clear, but the output keeps drifting: some descriptions are one paragraph, some are bullet lists, and the brand's tone is inconsistent. The team has a dozen approved descriptions that show exactly the format and voice it wants.

What is the simplest effective change the team lead should suggest?

Select one answer
Show answer and explanation

Answer:

  • B. Add several approved descriptions to the prompt as examples of the desired output

This is few-shot prompting. The team is currently giving instructions only, which is zero-shot prompting. Adding a few input-and-output examples to the prompt shows the model the format, phrasing, scope, and pattern the team wants. Examples are one of the most dependable ways to get consistent structure and tone. The change takes minutes and needs no new infrastructure, and the approved descriptions the team already has are ideal material.

Option A pushes in the wrong direction. A higher temperature makes the output more random and varied, which is the opposite of consistency.

Option C could work, but it is not the simplest step. Fine-tuning costs time and money and needs a larger training dataset than twelve examples. Google recommends trying prompt design first and tuning only when prompting is not enough.

Option D describes chain-of-thought prompting. It helps with multi-step reasoning problems such as calculations or logic, but it does nothing to fix the format and voice of marketing copy.

References: Include few-shot examples; Introduction to tuning

Practice Test 1 ›

Study guides for Google Cloud Generative AI Leader

Google Cloud Digital Leader exam: what's on it, who it's forGoogle Cloud Digital Leader: August 2026 exam update, six sections, US$99 price as of November 2026, renewal, study plan and ACE comparison.
Agentic AI certification: Oracle, Google, GitHub, NVIDIAAgentic AI certifications in 2026: Oracle's free exam, GitHub GH-600, Google, NVIDIA and Claude, compared by status, price and role.
Google Cloud Generative AI Leader vs AWS AI PractitionerGoogle Cloud Generative AI Leader vs AWS AI Practitioner: format, cost, topics, free preparation and which certification to take first.
Best AI certifications 2026: AWS, Google, Microsoft, ClaudeThe best AI certifications in 2026 from AWS, Google, Microsoft, Claude and Databricks, by level, with price, status and which one to take first.
Google Cloud certification path: is ACE worth it?Is Google's Associate Cloud Engineer certification worth it? The Google Cloud certification path in 2026, with cost, format and which exam to take first.
Google Professional Agentic Architect: what it isGoogle's Professional Agentic Architect certification explained - beta status, the two-part exam, the five domains, price, validity and how to prepare.
What Is RAG? How Retrieval-Augmented Generation WorksWhat RAG is and how it works: chunking, embeddings, vector search, hybrid search, reranking, GraphRAG and agentic RAG on AWS, Google and Azure.
Google Cloud's generative AI offerings, mappedGemini app, Gemini for Workspace, Gemini Enterprise, Agent Search, the contact center suite and Agent Platform: which one a business should pick, and why.
Prompt engineering vs RAG vs fine-tuningWhen to use prompt engineering, retrieval-augmented generation, fine-tuning or continued pre-training, compared on cost, freshness, hallucination and privacy.