A Gen AI Specialist is developing a Gen AI application in Snowflake and must debug a particular record that produced an inaccurate response. The Specialist needs to see, step by step, how the input prompt was processed, what context was retrieved, which tools were called, and how the LLM responded.
Which Snowflake AI observability feature should be used?
A company is organizing an event and asked participants about their food restrictions. The responses have been saved in a table named EVENT_REGISTRATIONS:
| ID | FOOD_RESTRICTIONS |
| :--- | :--- |
| 1 | allergic to nuts |
| 2 | no gluten |
| 3 | no milk or dairy products |
| 4 | no meat |
Which query will compile a list of foods that should not be served?
```sql
Which parameters in a SNOWFLAKE.CORTEX.COMPLETE function call can be adjusted to control the randomness and diversity of an LLM response? (Choose two)
Which cost categories do Cortex Search Services incur that are tracked in the CORTEX_SEARCH_DAILY_USAGE_HISTORY view? (Choose two)
A Gen AI Specialist registered a new model in the Snowflake Model Registry and granted the USAGE privilege to a custom role, TRAINEE_ROLE.
When a new user with TRAINEE_ROLE tried to download the model artifacts with the GET command, an error occurred.
What would cause this error?
A role lacks the OWNERSHIP privilege on an existing schema.
Which combination of GRANT statements is required to let users with that role create a Streamlit application in Snowflake? (Choose two)
A Gen AI Specialist is writing a Python script that leverages Snowflake Cortex to answer users' questions. The script contains this code:
Python
from snowflake.cortex import CompleteOptions, complete
user_question = < 'Prompt that could generate an unsafe response' >
Regardless of the content of the prompt (user_question) that is passed to snowflake.cortex.complete, the Specialist must ensure that the function filters potentially unsafe or harmful response language.
Which code will accomplish this?
Python
Which view in the ACCOUNT_USAGE schema can query token costs for Snowflake Cortex LLMs aggregated in one-hour increments?
Which Snowflake data type is returned by the SNOWFLAKE.CORTEX.EMBED_TEXT_768 function?
This command is run:
```sqlSELECT SNOWFLAKE.CORTEX.COMPLETE
(
'llama2-70b-chat',
{
'role': 'user',
'content': 'what are the colors of an apple?'
},
{
'temperature': 0.7,
'guardrails': TRUE
}
);
```
This error is returned:
`Invalid argument types for function 'COMPLETES$V6': (VARCHAR(15), OBJECT, OBJECT)`
What causes this error?
|
PDF + Testing Engine
|
|---|
|
$42.5 |
|
Testing Engine
|
|---|
|
$32.5 |
|
PDF (Q&A)
|
|---|
|
$26.25 |
Snowflake Free Exams |
|---|
|