Snowflake SnowPro Specialty: Gen AI Certification GES-C02 Exam Questions

Page: 1 / 14
Total 87 questions
Question 1

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



Answer : A

Inferring specific culinary items to exclude based on high-level dietary constraints (such as deriving wheat, barley, and rye from 'no gluten') requires domain reasoning and generative text synthesis.

`SNOWFLAKE.CORTEX.COMPLETE` accepts dynamic string concatenations that combine instructional prompts with tabular column values. In Option A, the query instructs an advanced foundation model (`llama3. 3-70b`) to evaluate the customer-provided restrictions and synthesize an explicit list of prohibited foods.

The alternative functions cannot perform this task:

* `SENTIMENT` returns a floating-point polarity score between -1 and 1.

* `CLASSIFY_TEXT` assigns the string to one of the provided static labels (`'foods'` or `'diets'`) rather than generating a list.

* `SUMMARIZE` condenses existing source text; it cannot infer new domain knowledge that is not already explicitly written in the source column.

References & Study Guide Topics:

* Snowflake Gen AI Functions: Generative Reasoning with `COMPLETE`

* Prompt Engineering: Dynamic SQL Concatenation for In-Database Inference

===============


Question 2

Which APIs or functions can be used to query the Snowflake Cortex Search Service? (Choose three)



Answer : A, B, E

Snowflake Cortex Search provides dedicated programmatic and SQL interfaces to query the hybrid search index and retrieve the top-k relevant context chunks for RAG architectures:

1. **Snowflake Python APIs:** Using the Snowflake Python SDK or Snowpark client (`snowflake.core. cortex.search_service`), developers can execute search queries directly from Python applications, notebooks, or Streamlit interfaces.

2. **Snowflake REST APIs:** External applications, microservices, and web clients can retrieve search chunks over standard HTTPS endpoints by making authenticated REST calls to the Cortex Search service endpoint.

3. **The SEARCH_PREVIEW function:** In SQL worksheets and stored procedures, developers can test, query, and preview retrieval results directly using the built-in system function `SNOWFLAKE.CORTEX. SEARCH_PREVIEW(...)`.

In contrast, `CORTEX.COMPLETE` executes text generation rather than searching an index;

`EMBED_TEXT_768` computes vector embeddings from input strings; and `CORTEX.SUMMARIZE` produces a condensed textual synopsis. None of these functions query a Cortex Search Service.

References & Study Guide Topics:

* Snowflake Gen AI Functions: Cortex Search Service Retrieval Protocols

* Application Development: Querying Indexes via Python, REST, and `SEARCH_PREVIEW`

===============


Question 3

Which Snowflake Cortex AI observability metrics are used to evaluate LLM-generated responses? (Choose two)



Answer : B, C

Snowflake Cortex AI Observability provides specialized, automated evaluation metrics designed to systematically assess the quality, safety, and reliability of large language model completions in production and evaluation workflows.

Two core LLM evaluation metrics native to Snowflake Cortex are:

Correctness: Measures factual alignment and semantic fidelity between the LLM-generated output and an established ground-truth response or reference context, identifying factual discrepancies, omissions, or model hallucinations.

Coherence: Evaluates the structural and logical integrity of the generated output, verifying that the text is well-organized, fluent, logically consistent, and free of contradictions or abrupt narrative breaks.

Traditional statistical classification metrics---such as Accuracy, Precision, and F1 Score---are mathematical indicators used to evaluate supervised classification models against rigid true/false categorical labels; they are

not the qualitative, generative assessment metrics implemented in Cortex AI Observability for evaluating unstructured LLM response text.

References & Study Guide Topics:

Snowflake Gen AI Functions: Cortex AI Observability Evaluation Framework

LLM Quality Benchmarking: Qualitative Metrics (Correctness, Coherence, Hallucination Detection)

===============


Question 4

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?



Answer : C

Snowflake AI Observability incorporates native telemetry tools---built on OpenTelemetry standards---to provide full runtime visibility across complex Generative AI and agentic pipelines.

When diagnosing compound Gen AI workflows (such as multi-step agent execution, tool-calling sequences, or Retrieval-Augmented Generation retrieval flows), Tracing is the required capability. Tracing records the end-to-end execution path of an individual request as a structured collection of spans within an Event Table. Each trace span captures granular, step-by-step metadata, including:

The raw input prompt and intermediate prompt transformations.

The specific documents, chunks, and similarity scores returned by retrieval engines (e.g., Cortex Search).

External functions or tools invoked by reasoning agents, including input arguments and returned payloads.

The raw completion, token counts, and latency produced by the underlying LLM.

In contrast, Logging captures discrete, point-in-time diagnostic text messages emitted by application code; Metrics aggregate numeric operational counters over time (such as token rates or invocation throughput); and Monitoring provides dashboard-level health alerting rather than step-by-step contextual call graphs.

References & Study Guide Topics:

Snowflake Gen AI Governance: Cortex AI Observability & OpenTelemetry Telemetry Operational Debugging: Distributed Tracing and Span Analysis in Event Tables

===============


Question 5

Which arguments are required when you use the log_model method to log a model in the Snowflake Model Registry? (Choose two)



Answer : A, B

When managing machine learning models via the Snowflake Snowpark ML API, the `Registry.log_model()` method commits model artifacts, dependencies, and operational metadata as first-class objects into the Snowflake Model Registry.

The method signature strictly mandates two primary arguments:* **`model`:** The supported in-memory model object or model reference to be serialized (such as scikit-learn estimators, PyTorch models, Hugging Face pipelines, or custom Snowpark ML model classes).* **`model_name`:** A valid Snowflake database identifier string specifying the name under which the model will be cataloged within the active database and schema.

The remaining parameters are optional:* `version_name` is optional; if omitted, Snowflake automatically generates a unique version identifier (such as a timestamp-based string).* `code_paths` and `python_version` are optional configurations used to supply supplementary custom code dependencies and pin execution environment runtimes.References & Study Guide Topics:* Snowflake Gen AI Governance: Snowflake Model Registry API Specifications* ML Lifecycle Management: `Registry.log_model` Mandatory Parameters and Serialization===============


Question 6

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



Answer : C

To prevent large language models from returning toxic, violent, sexually explicit, or otherwise hazardous content, Snowflake integrates Cortex Guard directly into its LLM completion endpoints. Within the Snowpark Python API, this capability is exposed through the snowflake.cortex.CompleteOptions class.

Passing options=CompleteOptions(guardrails=True) instructs the Cortex inference engine to route the generated output through an automated safety evaluation model prior to returning it to the calling application. If an output violates safety boundaries, Cortex replaces the payload with a standardized safety rejection response, safeguarding downstream consumers regardless of the user's input prompt.

The other parameters shown serve entirely different functional roles: temperature governs sampling stochasticity and response creativity, stream dictates whether responses are returned incrementally via Server-Sent Events (SSE), and response_format accepts a structured JSON schema rather than safety flags.

References & Study Guide Topics:

Snowflake Gen AI Governance: Cortex Guard Configuration in Snowpark Python Enterprise AI Safety: Filtering Harmful LLM Completions via CompleteOptions

===============


Question 7

A Gen AI Specialist has deployed a base model as an LLM in a production environment for a proof of concept. The model is larger and more expensive than other base models.

How can the Specialist lower production costs without affecting performance for the limited tasks needed to support the proof of concept?



Answer : C

In enterprise generative AI architectures, frontier foundation models (such as 70B+ parameter variants) offer strong general reasoning but incur higher credit consumption per token. When supporting a defined, specialized task for a proof of concept, relying on an oversized base model is often cost-inefficient.

Snowflake Cortex Fine-tuning (`SNOWFLAKE.CORTEX.FINETUNE`) allows developers to adapt a smaller, lower-cost foundation model (such as `llama3-8b` or `mistral-7b`) using domain-specific training data. By training on prompt-completion pairs representing the targeted workload, the smaller base model learns the required domain vocabulary, output formats, and task logic.

This specialized model can achieve task performance comparable to larger foundation models while running on a smaller parameter footprint, significantly reducing per-token credit consumption in production.

Cortex Search handles document retrieval rather than adapting model reasoning efficiency; Cortex Agents orchestrate multi-tool reasoning rather than optimizing inference billing; and semantic models support Cortex Analyst text-to-SQL generation rather than general completion cost optimization.

References & Study Guide Topics:

* Snowflake Gen AI Functions: Cortex Fine-Tuning Architecture and Economics

* LLM Optimization: Parameter Sizing, Model Distillation, and Domain Adaptation

===============


Page:    1 / 14   
Total 87 questions