GCP Generative AI Leader Practice Question 57: Prompt Chaining Subtasks

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

Techniques to Improve Model Outputmedium

A single prompt asks a model to read a long contract, extract every payment obligation, classify each one by risk level, and then draft a plain-language summary for a non-lawyer. In practice the model often skips obligations, mislabels risk, or blends the extraction and the summary together inconsistently. The team wants more reliable, easier-to-debug output without changing the model.

Which prompting technique addresses this best?

Select one answer
Show answer and explanation

Answer:

  • C. Use prompt chaining: split the task into sequential prompts, extraction first, then risk classification, then summary, feeding each output into the next step

Prompt chaining breaks a complex task into a sequence of simpler prompts, where the output of one becomes the input to the next. Here, that means a dedicated extraction prompt produces a list of payment obligations, a second prompt classifies each one by risk, and a third prompt turns the classified list into a plain-language summary. Each step is narrower and easier to get right, and each intermediate output can be inspected, which improves both accuracy and debuggability compared to asking one prompt to do everything at once.

- A is wrong because raising temperature increases randomness in wording, not the model's ability to reliably follow multiple sequential instructions in one pass; it can make output less consistent. - B is wrong because more examples of the same all-in-one task still ask the model to juggle extraction, classification, and summarization simultaneously; it does not reduce the task's complexity. - D is wrong because sampling multiple full attempts and picking one manually does not fix the underlying problem of an overloaded single prompt, and it does not scale as a repeatable process.

Reference: Break down complex tasks into simpler prompts

Practice Test 6 ›

Study guides for Google Cloud Generative AI Leader

Free AI certifications in 2026: what's really $0Which free AI certifications are real exams, which are badges, and which are course certificates: Oracle, Microsoft, Google, AWS, Claude and more.
Google Cloud roadmap: GCP zero to hero in 10 stagesA Google Cloud roadmap from zero to hero: 10 stages, 84 topics in learning order, free-tier labs, exam traps and which certification fits each stage.
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.