Exam GES-C01 Topic 1 Question 21 Discussion

Actual exam question for Snowflake's GES-C01 exam
Question #: 21
Topic #: 1
A data engineer is building an AI data pipeline to automatically extract specific sentiment categories from customer reviews using 'AI_COMPLETE. They want the output to be a structured JSON object containing 'food_quality', 'food_taste', 'wait_time', and 'food cost' with their respective sentiments (e.g., 'positive', 'negative', 'neutral'). The engineer aims for high accuracy and ensures that all these fields are present in the output. Which of the following statements correctly describe the approach to achieve this?

Suggested Answer: A,D Vote an answer

Option A is correct. The argument is used to supply a JSON schema that completion responses must follow, and including the 'required' field in the schema ensures that specified fields are present in the output, with raising an error if a required field cannot be extracted. Option B is incorrect. While prompting the model to 'Respond in JSON' can improve accuracy for complex tasks, it is not always necessary for simple tasks, as 'AI_COMPLETE Structured OutputS already understands that its response should conform to the specified schema. Option C is incorrect. For OpenAl (GPT) models, the 'additionalPropertieS field must be set to 'false' in every node of the schema. Option D is correct. Providing detailed descriptions of the fields to be extracted helps the model more accurately identify them, thereby improving the quality of the structured output. Option E is incorrect. For the most consistent results, it is recommended to set the 'temperature' option to 0 when calling 'COMPLETE (or regardless of the task or model, to make the output more deterministic and focused.

by Beck at Aug 10, 2026, 04:00 AM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
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.

0
0
0
10