exam questions

Exam Certified Generative AI Engineer Associate All Questions

View all questions & answers for the Certified Generative AI Engineer Associate exam

Exam Certified Generative AI Engineer Associate topic 1 question 63 discussion

Actual exam question from Databricks's Certified Generative AI Engineer Associate
Question #: 63
Topic #: 1
[All Certified Generative AI Engineer Associate Questions]

A Generative AI Engineer is using an LLM to classify species of edible mushrooms based on text descriptions of certain features. The model is returning accurate responses in testing and the Generative AI Engineer is confident they have the correct list of possible labels, but the output frequently contains additional reasoning in the answer when the Generative AI Engineer only wants to return the label with no additional text.

Which action should they take to elicit the desired behavior from this LLM?

  • A. Use few shot prompting to instruct the model on expected output format
  • B. Use zero shot prompting to instruct the model on expected output format
  • C. Use zero shot chain-of-thought prompting to prevent a verbose output format
  • D. Use a system prompt to instruct the model to be succinct in its answer
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Hifly_AA
1 month, 2 weeks ago
Selected Answer: A
A. Use few-shot prompting to instruct the model on the expected output format. By providing a small number of examples that show exactly how you want the model to respond—i.e. input descriptions paired with just the mushroom label and no extra reasoning—you teach the LLM the desired output pattern. This tends to be more reliable than a single zero-shot instruction or a generic “be succinct” system message, because the model sees concrete input-output pairs demonstrating the exact format you need.
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...