Snowflake SnowPro Specialty: Gen AI Exam-style mock test
Snowflake SnowPro Specialty: Gen AI Practice Exams|Practice test
Full explanations
Exam format
Pass line 75%
33 USD One-time · lifetime access
Enroll →
Sample questions
Example1 · Snowflake Cortex & LLM Functions
A B2B SaaS company stores thousands of long support tickets in a Snowflake table and wants to generate a short synopsis of each ticket directly in SQL without managing any model endpoints. Which Snowflake Cortex function should the data engineer call?
・SNOWFLAKE.CORTEX.SENTIMENT, which returns a numeric polarity score for each input ticket text
Incorrect. SENTIMENT scores emotional polarity of text; it does not shorten the ticket into a synopsis.
✓SNOWFLAKE.CORTEX.SUMMARIZE, which produces a condensed synopsis from the ticket text
Correct. SUMMARIZE is purpose-built to condense long text such as a support ticket into a brief synopsis in SQL.
・SNOWFLAKE.CORTEX.EMBED_TEXT_768, which converts each ticket into a fixed-length vector representation
Incorrect. EMBED_TEXT_768 generates vectors for similarity search, not a human-readable summary.
・SNOWFLAKE.CORTEX.TRANSLATE, which converts each ticket text from one language into another target language
Incorrect. TRANSLATE changes the language of the text but preserves full length rather than summarizing it.
Explanation
SUMMARIZE is the Cortex function designed to produce a short synopsis from longer text entirely within SQL.
Example2 · RAG & Vector Search
A B2B SaaS company ingests long product manuals into Snowflake to power a support RAG assistant. Early tests show answers that miss context because chunks split sentences mid-thought and lose surrounding meaning. Which chunking adjustment using SPLIT_TEXT_RECURSIVE_CHARACTER best improves retrieval quality for this case?
・Set a very small fixed chunk size with zero overlap so each chunk holds exactly one short sentence of text
Incorrect. Extremely small, non-overlapping chunks fragment meaning further and worsen the lost-context problem you are trying to fix.
✓Increase the chunk size moderately and add a chunk overlap so adjacent chunks share boundary context between them
Correct. A moderate chunk size plus overlap preserves boundary context across adjacent chunks, which directly addresses answers that lose surrounding meaning.
・Remove all chunking and embed each full manual as a single large vector stored in the table
Incorrect. Embedding an entire manual as one vector dilutes relevance and exceeds practical embedding limits, hurting retrieval precision.
・Split strictly on fixed character counts while ignoring paragraph and sentence separators during the process
Incorrect. Ignoring natural separators is what causes mid-sentence splits; recursive splitting should respect paragraph and sentence boundaries.
Explanation
Recursive character splitting with a sensible chunk size and overlap respects natural separators and carries boundary context between neighboring chunks, improving retrieval for context-sensitive answers.
Example3 · Document AI & Unstructured Data
A B2B SaaS company receives thousands of signed vendor contracts as scanned PDFs in a stage. The data team needs to pull specific values like effective date, contract term, and total annual fee into structured columns. Which Snowflake capability should they use to build a trained extraction model with question-and-answer definitions for these fields?
✓Snowflake Document AI, which lets the team define questions for each field, review and correct predictions, then publish a model build version callable from SQL
Correct. Document AI is purpose-built to define field questions, review predictions, train a model build, and call it from SQL for structured extraction.
・The SNOWFLAKE.CORTEX.SENTIMENT function pointed at the raw PDF column to classify and return the required contract fields
Incorrect. SENTIMENT only scores emotional tone of text and cannot locate or extract contract fields from a scanned PDF.
・A Snowpark UDF that loads an open-source OCR library and manually parses every line of each contract document
Incorrect. A hand-written OCR UDF is error-prone and ignores Snowflake's managed, trainable Document AI extraction workflow.
・The SPLIT_TEXT_RECURSIVE_CHARACTER function to chunk the contract text so the fields appear in separate rows
Incorrect. Recursive character splitting only breaks text into chunks and performs no targeted field extraction at all.
Explanation
Document AI combines OCR with an LLM so users can ask field-level questions, review and correct answers, and publish a callable model build for structured extraction.
Example4 · Model Serving, Fine-Tuning & Cortex
A healthcare services firm stores lengthy clinical visit notes in a Snowflake table and wants to generate concise summaries of each note directly in SQL without writing any prompt templates. Which Cortex approach best fits this requirement?
・Call the SNOWFLAKE.CORTEX.COMPLETE function with a hand-written instruction prompt that asks the chosen model to shorten each clinical note into a few sentences
Incorrect. COMPLETE works but requires you to author and maintain a summarization prompt, which the scenario explicitly wants to avoid when a task-specific function exists.
✓Call the task-specific SNOWFLAKE.CORTEX.SUMMARIZE function, passing the clinical note column so the service returns a condensed version
Correct. SUMMARIZE is a purpose-built task-specific Cortex LLM function that condenses input text and needs no custom prompt, matching the requirement exactly.
・Call SNOWFLAKE.CORTEX.EXTRACT_ANSWER with the note text and a question to pull a short response
Incorrect. EXTRACT_ANSWER pulls a specific answer to a question from the text rather than producing a general condensed summary of the note.
・Call SNOWFLAKE.CORTEX.TRANSLATE on the note column to reshape and compress the clinical text
Incorrect. TRANSLATE converts text between languages and does not summarize or shorten clinical content.
Explanation
Task-specific Cortex functions like SUMMARIZE deliver common NLP outcomes without prompt engineering, so they are preferred over general COMPLETE calls for a straightforward summarization need.
Example5 · Governance & Security for GenAI
A healthcare services firm wants only members of the ANALYTICS_GENAI role to be able to call Cortex LLM functions like COMPLETE, while all other roles remain blocked. Which approach correctly enforces this restriction in Snowflake?
✓Grant the CORTEX_USER database role to ANALYTICS_GENAI and revoke it from the broad PUBLIC role so only that role can invoke Cortex LLM functions
Correct. The SNOWFLAKE.CORTEX_USER database role governs access to Cortex LLM functions; granting it only to ANALYTICS_GENAI and removing it from PUBLIC restricts invocation to that role.
・Apply a masking policy to the Cortex function outputs so that only ANALYTICS_GENAI sees unmasked completion text while others receive null
Incorrect. Masking policies protect column values in tables, not the ability to call a function; a blocked role could still invoke COMPLETE and incur cost.
・Create a row access policy on the SNOWFLAKE.CORTEX schema that filters function calls by the caller's current role at query time
Incorrect. Row access policies filter rows returned from secured objects and do not gate the right to execute Cortex functions by role.
・Set a session parameter named CORTEX_ENABLED_ROLES listing ANALYTICS_GENAI so Snowflake rejects calls from any role not on that list
Incorrect. There is no CORTEX_ENABLED_ROLES session parameter; access to Cortex functions is controlled through the CORTEX_USER database role.
Explanation
Access to Cortex LLM functions is managed with the SNOWFLAKE.CORTEX_USER database role, granted to the roles that should be allowed to call them.
Example6 · Snowflake Cortex & LLM Functions
A healthcare services firm stores free-text patient feedback surveys in a Snowflake table. An analyst needs to generate a short abstractive summary of each multi-paragraph comment directly within a SQL query, without training any model. Which Cortex LLM function should the analyst call?
・SNOWFLAKE.CORTEX.SENTIMENT, which returns a numeric polarity score for each patient comment row
Incorrect. SENTIMENT returns a polarity score between -1 and 1; it measures tone, not a condensed summary of the text.
✓SNOWFLAKE.CORTEX.SUMMARIZE, passing the comment column so each row returns a condensed summary string
Correct. SUMMARIZE produces an abstractive summary of input text per row and requires no model training, exactly matching the requirement.
・SNOWFLAKE.CORTEX.EXTRACT_ANSWER, which pulls a specific answer span from the comment using a question
Incorrect. EXTRACT_ANSWER returns a specific answer span given a question, not a general summary of the whole comment.
・SNOWFLAKE.CORTEX.CLASSIFY_TEXT, assigning each patient comment to one label from a supplied category list
Incorrect. CLASSIFY_TEXT maps text to one of a supplied set of labels; it categorizes rather than summarizes.
Explanation
SUMMARIZE is the purpose-built Cortex function for generating condensed summaries of text columns in SQL without any custom model work.
Example7 · Snowflake Cortex & LLM Functions
The data team at the retail brand UrbanThread wants to condense thousands of lengthy product return comments into short paragraphs for a weekly operations report, all within a SQL pipeline. Which Cortex LLM function is the most direct fit for this requirement?
✓SNOWFLAKE.CORTEX.SUMMARIZE, which accepts the comment text and returns a concise summary paragraph
Correct. SUMMARIZE is purpose-built to compress long free text into a shorter paragraph, which matches condensing return comments for a report.
・SNOWFLAKE.CORTEX.SENTIMENT, which scores the comment and returns a float between -1 and 1
Incorrect. SENTIMENT returns a polarity score rather than a condensed paragraph, so it does not produce the report text needed.
・SNOWFLAKE.CORTEX.TRANSLATE, which converts the comment text from one supported language to another
Incorrect. TRANSLATE only changes the language of the text and does not shorten or summarize the content.
・SNOWFLAKE.CORTEX.EXTRACT_ANSWER, which pulls a direct answer out of the comment given a specific question
Incorrect. EXTRACT_ANSWER returns a targeted answer to a posed question, not a general summary of the whole comment.
Explanation
Condensing long free-text comments into a shorter paragraph is exactly what SUMMARIZE does; the other functions score, translate, or answer rather than summarize.
Example8 · Snowflake Cortex & LLM Functions
UrbanThread's marketing analyst needs to generate custom promotional blurbs by passing a tailored prompt and explicitly choosing which foundation model runs the request inside Snowflake. Which approach correctly uses a Cortex function for this?
✓Invoke SNOWFLAKE.CORTEX.COMPLETE with a model name argument and the prompt string so the chosen model generates the blurb
Correct. COMPLETE accepts a model name plus a prompt and returns a generated completion, which is the right tool for custom text generation.
・Invoke SNOWFLAKE.CORTEX.SUMMARIZE with the prompt text because it internally chooses the best model for generation
Incorrect. SUMMARIZE shortens existing text and does not accept a free-form generation prompt or a selectable model.
・Invoke SNOWFLAKE.CORTEX.SENTIMENT with the prompt because it supports arbitrary text generation when given a model
Incorrect. SENTIMENT only scores polarity and cannot generate promotional text from a prompt.
・Invoke SNOWFLAKE.CORTEX.CLASSIFY_TEXT with the prompt and a model so the model writes the promotional blurb
Incorrect. CLASSIFY_TEXT assigns a label from provided categories and does not produce open-ended generated copy.
Explanation
COMPLETE is the general-purpose generation function that takes an explicit model argument and a prompt; the others are task-specific and cannot do free-form generation.
Example9 · Snowflake Cortex & LLM Functions
UrbanThread is preparing a semantic search feature over its help-center articles and needs to convert each article into a numeric vector that can be compared for similarity. Which Cortex capability produces these vectors?
✓EMBED_TEXT_768, which returns a fixed-length vector representation of the input text for similarity comparison
Correct. EMBED_TEXT_768 produces a fixed-length embedding vector, which is what semantic similarity search requires.
・COMPLETE, which returns generated natural-language text rather than a numeric vector for comparison
Incorrect. COMPLETE generates text output, not an embedding vector usable for vector similarity search.
・PARSE_DOCUMENT, which extracts raw text and layout from an uploaded document file in a stage
Incorrect. PARSE_DOCUMENT extracts text from files but does not create embedding vectors on its own.
・SENTIMENT, which returns a single polarity score describing the emotional tone of the text
Incorrect. SENTIMENT returns one scalar polarity score, which cannot represent semantic content for similarity search.
Explanation
Semantic search requires embedding vectors, which the EMBED_TEXT family produces; the other functions generate text, parse files, or score tone.
Example10 · Snowflake Cortex & LLM Functions
A financial services firm wants to summarize lengthy loan-application notes stored in a Snowflake table so analysts can review them faster, all within SQL. Which Cortex LLM function should the data team call to produce a condensed version of each note?
・SNOWFLAKE.CORTEX.COMPLETE, by crafting a custom prompt that instructs a chosen model to summarize each note row by row
Incorrect. COMPLETE with a custom prompt can summarize, but SUMMARIZE is the purpose-built, simpler function for exactly this condensing task.
✓SNOWFLAKE.CORTEX.SUMMARIZE, which returns a condensed version of the supplied text without a custom prompt
Correct. SUMMARIZE is the task-specific Cortex function that returns a shortened version of input text directly, with no prompt engineering required.
・SNOWFLAKE.CORTEX.SENTIMENT, which scores the emotional tone of each note on a numeric scale
Incorrect. SENTIMENT returns a tone score between -1 and 1 and does not produce any summary of the note content.
・SNOWFLAKE.CORTEX.TRANSLATE, which converts each note from the source language into a chosen target language
Incorrect. TRANSLATE changes the language of the text but preserves the full content rather than condensing it.
Explanation
SUMMARIZE is the specialized Cortex task function designed to condense text, making it the most direct choice over a general COMPLETE prompt or unrelated functions.
Example11 · Snowflake Cortex & LLM Functions
A fraud analytics team at a bank wants to classify free-text transaction dispute descriptions into predefined categories using SNOWFLAKE.CORTEX.COMPLETE. They want consistent, deterministic outputs across repeated runs for audit reproducibility. Which approach best supports that requirement?
✓Pass a model name and prompt, then set the temperature option to a low value such as 0 so sampling becomes effectively deterministic
Correct. Supplying model options with a temperature near 0 minimizes randomness in token sampling, yielding highly consistent outputs for reproducibility.
・Call COMPLETE with only the model and prompt, relying on Snowflake to guarantee identical output on every single invocation
Incorrect. Without controlling temperature, COMPLETE may sample differently across runs, so identical output is not guaranteed by default.
・Use the SENTIMENT function instead, because deterministic classification requires a scoring function rather than generation
Incorrect. SENTIMENT only scores tone and cannot classify text into arbitrary predefined dispute categories.
・Enable the guardrails option in COMPLETE, which forces the model to return the same category label for identical inputs
Incorrect. Guardrails filter unsafe or harmful content; they do not enforce deterministic category labels across identical inputs.
Explanation
Determinism in LLM generation is controlled primarily by lowering temperature; guardrails and SENTIMENT serve different purposes.
Example12 · Snowflake Cortex & LLM Functions
A manufacturing distributor stores thousands of free-text supplier emails in a Snowflake table and wants a one-line summary of each email generated directly in SQL without managing any external model endpoint. Which Cortex capability should the data engineer use?
✓The SNOWFLAKE.CORTEX.SUMMARIZE function, which accepts the email text column and returns a condensed summary for each row
Correct. SNOWFLAKE.CORTEX.SUMMARIZE is a serverless Cortex LLM function that takes a text column and returns a summary per row entirely within SQL, with no endpoint to manage.
・A Snowpark Container Services deployment that hosts a self-managed summarization model behind a REST endpoint
Incorrect. Snowpark Container Services requires provisioning and operating a self-managed model, which contradicts the requirement to avoid managing an endpoint.
・An external access integration that calls a third-party summarization API through a network rule and secret
Incorrect. An external access integration routes calls to an outside API, adding network rules and secrets rather than using a built-in Cortex function.
・A Snowflake stream combined with a task that exports the emails to cloud storage for batch processing
Incorrect. A stream-and-task export pattern moves data out for batch handling and does not perform in-SQL summarization at all.
Explanation
Cortex LLM functions like SUMMARIZE are serverless and callable directly in SQL, making them the correct choice when no endpoint management is desired.
Example13 · Snowflake Cortex & LLM Functions
An analyst at the distributor wants SNOWFLAKE.CORTEX.COMPLETE to classify each product-return note into a fixed set of reason codes and return the result as JSON so it can be parsed reliably downstream. Which approach best achieves a dependable structured response?
・Rely on parsing the model's prose answer with regular expressions after each COMPLETE call completes
Incorrect. Regex parsing of free prose is brittle and is unnecessary when COMPLETE can be constrained to emit structured output directly.
✓Pass the model name, the prompt, and an options object that specifies a response_format schema for the JSON output
Correct. COMPLETE accepts a model, prompt, and an options object where a response_format (JSON schema) constrains the output to a predictable structure.
・Call COMPLETE once per distinct reason code and union the separate single-label results together
Incorrect. Running one call per reason code wastes resources and still does not guarantee a single valid structured result.
・Set a very low temperature value alone and trust that COMPLETE will consistently emit valid JSON
Incorrect. Lowering temperature reduces variability but does not enforce a schema, so invalid JSON can still be produced.
Explanation
COMPLETE's options argument supports a response_format schema, which is the reliable way to obtain structured JSON output.
Example14 · Snowflake Cortex & LLM Functions
A telecom operator stores raw customer support chat transcripts in a Snowflake table and needs a concise one-paragraph recap of each lengthy conversation for its agents. Which Snowflake Cortex function is the most appropriate choice for this requirement?
・SNOWFLAKE.CORTEX.SENTIMENT, because it reduces each transcript to a short score that agents can scan quickly instead of reading everything
Incorrect. SENTIMENT returns a polarity score, not a readable paragraph recap, so it does not meet the summarization requirement.
✓SNOWFLAKE.CORTEX.SUMMARIZE, which condenses a long input text into a shorter version that preserves the key points
Correct. SUMMARIZE is purpose-built to shorten long text while keeping its key points, exactly matching the recap need.
・SNOWFLAKE.CORTEX.TRANSLATE, because translating the transcript into the agent's preferred language naturally shortens its overall length
Incorrect. TRANSLATE changes the language of the text but does not condense it into a concise recap.
・SNOWFLAKE.CORTEX.EXTRACT_ANSWER, which pulls a direct answer from the transcript whenever an explicit question string is supplied alongside it
Incorrect. EXTRACT_ANSWER returns a targeted answer to a supplied question, not a general-purpose summary of the whole conversation.
Explanation
Producing a concise recap of long text is the classic use case for SUMMARIZE; the other functions serve scoring, language conversion, or question answering.
Example15 · Snowflake Cortex & LLM Functions
A telecom operator wants to call a specific large language model from SQL, passing a custom prompt that classifies each network outage ticket into a severity tier. Which Snowflake Cortex function lets the team specify the target model and supply an arbitrary prompt?
・SNOWFLAKE.CORTEX.CLASSIFY_TEXT, because it is the only function capable of mapping outage tickets into predefined severity labels at scale
Incorrect. CLASSIFY_TEXT assigns categories but does not accept a free-form prompt plus an explicit model name of the caller's choosing.
✓SNOWFLAKE.CORTEX.COMPLETE, which accepts a model name and a prompt and returns the model's generated response
Correct. COMPLETE takes a model identifier and a prompt string and returns the model's generated text, fitting custom prompting.
・SNOWFLAKE.CORTEX.PARSE_DOCUMENT, because it reads the ticket content first and then routes it to the configured default model
Incorrect. PARSE_DOCUMENT extracts text from documents and is unrelated to invoking a chosen model with a prompt.
・SNOWFLAKE.CORTEX.EMBED_TEXT_768, which converts the prompt into a vector that the selected model then interprets as instructions
Incorrect. EMBED_TEXT_768 produces embeddings, which are vectors, not generated completions from a prompt.
Explanation
COMPLETE is the general-purpose generation function that takes both a model name and a prompt; the others target classification, parsing, or embedding.
▶ Try 10 free questions (graded)