Google Cloud Generative AI Leader Practice Questions

Google Cloud Generative AI Leader exam preparation

Google Cloud Generative AI Leader practice questions in English: 180 questions with explanations. The mock exam has 60 questions and 90 minutes.

Google Cloud Generative AI Leader free question 5 / 10 · Domain 3: Techniques to improve gen AI model output

A telecom company analyzes customer feedback in three steps: extract the main issues, classify the issues into categories, and generate recommendations for the categories. Every step needs the output of the previous step. Which technique does the documentation describe for this?

  1. Aggregate responses, so that the prompts run in parallel and their outputs are combined
  2. A few-shot prompt that includes one sample of the final recommendations
  3. A single long prompt that requests the issues, the categories and the recommendations together
  4. Chain prompts, so that the output of one prompt becomes the input of the next
Show the answer and explanation

Answer: D

Why this is correct
The page explains that complex tasks with multiple sequential steps can be handled by making each step a prompt and chaining the prompts in a sequence. The output of one prompt becomes the input of the next, and the output of the last prompt is the final output. Its telecom example extracts issues, classifies them and then generates solutions, each step using the previous response.

Why the other options are wrong
"Aggregate responses, so that the prompts run in parallel and their outputs are combined" … Aggregation suits tasks that do not need to run in a specific order. Here each step depends on the previous result, so the steps must run in sequence.
"A single long prompt that requests the issues, the categories and the recommendations together" … The page says smaller prompts improve controllability, debugging and accuracy. A single long prompt gives up those benefits.
"A few-shot prompt that includes one sample of the final recommendations" … Examples can shape the format of an answer, but they do not create a sequence of dependent steps. The page's technique for sequential subtasks is chaining.

Key points
Chain prompts when later subtasks depend on the results of earlier ones.

Go to the Google Cloud Generative AI Leader practice app (10 free questions; purchase unlocks all questions)

See the full practice set