Google CloudTechniques to Improve Gen AI Output

Prompt Engineering & Chain-of-Thought — Google Gen AI Leader Practice Question

A representative Google Cloud Generative AI Leader (Google Gen AI Leader) exam question on Prompt Engineering & Chain-of-Thought. Work through it below, then read why each option is right or wrong.

Short answer

The correct answer is D. Chain-of-thought prompting that instructs the model to reason step by step before providing a final answer.

Chain-of-thought prompting asks the model to explicitly work through its reasoning step by step before arriving at a conclusion. This technique reduces errors in complex analytical tasks because it forces the model to show intermediate reasoning, making mistakes easier to catch. Option A would increase randomness and potentially worsen accuracy, while option C would likely reduce the model's analytical capability rather than improve it.

The Question

A finance team is using a generative AI model to analyze quarterly earnings reports and produce summary conclusions. They notice the model sometimes jumps to incorrect conclusions without showing its reasoning. Which technique would most effectively improve the accuracy of the model's analytical outputs?

AIncreasing the model's temperature to encourage creative responses
BRemoving all context from the prompt to avoid confusing the model
CSwitching to a smaller model to reduce the chance of hallucination
DChain-of-thought prompting that instructs the model to reason step by step before providing a final answerCorrect

Why D is correct

Chain-of-thought prompting asks the model to explicitly work through its reasoning step by step before arriving at a conclusion. This technique reduces errors in complex analytical tasks because it forces the model to show intermediate reasoning, making mistakes easier to catch. Option A would increase randomness and potentially worsen accuracy, while option C would likely reduce the model's analytical capability rather than improve it.

Why the other options are wrong

Option A: Increasing the model's temperature to encourage creative responses

Option A does not satisfy the requirement in the scenario. Review the explanation above: the correct choice (D) is the only one that fully meets every constraint stated in the question.

Option B: Removing all context from the prompt to avoid confusing the model

Option B does not satisfy the requirement in the scenario. Review the explanation above: the correct choice (D) is the only one that fully meets every constraint stated in the question.

Option C: Switching to a smaller model to reduce the chance of hallucination

Option C does not satisfy the requirement in the scenario. Review the explanation above: the correct choice (D) is the only one that fully meets every constraint stated in the question.

Key idea: Prompt Engineering & Chain-of-Thought

Chain-of-thought prompting asks the model to explicitly work through its reasoning step by step before arriving at a conclusion. This technique reduces errors in complex analytical tasks because it forces the model to show intermediate reasoning, making mistakes easier to catch. Option A would increase randomness and potentially worsen accuracy, while option C would likely reduce the model's analytical capability rather than improve it. 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.

Related Google Cloud Generative AI Leader Practice Questions