# Use Snowflake Interfaces and tools based on use cases — Practice reading

Exam: COF-C03 — SnowPro Core Certification Exam
Knowledge domain: Snowflake AI Data Cloud Features & Architecture
HTML: https://learningpathx.com/learning-path/COF-C03/learn/68

This public learning practice includes correct answers and existing explanations. Reading does not save progress or create a test.

## Question 1

Type: single\_choice
Knowledge point: Snowsight

An analyst is investigating a successful query that they ran ten minutes ago in Snowsight. The query profile is available. It shows that an Aggregate operator accounts for most execution time, while its TableScan operators finish quickly. The analyst wants evidence of whether that Aggregate operator's intermediate data exceeded available memory. Which inspection should the analyst perform?

### Options

**A**

Select a TableScan node in Query Profile and compare Partitions scanned with Partitions total

**B**

Open the query's Results tab and export its rows as CSV

**C**

Open Query Details and inspect the SQL Text section

**D**

Select the Aggregate node in Query Profile and inspect its Spilling statistics

Correct answer: D

### Explanation

Use Query History to open this execution's profile, then inspect the affected Aggregate operator. Spilling metrics address the memory question directly; pruning, final result rows, and SQL text address different aspects of the query.

## Question 2

Type: multiple\_choice
Knowledge point: Snowsight

A Cloud Architect is conducting a platform design approval for a business intelligence team. The team needs to rapidly build and deploy interactive data applications to business stakeholders without standing up external web servers or managing complex frontend deployment pipelines. The architect plans to use Streamlit in Snowflake. How does Snowsight facilitate the use of Streamlit in Snowflake? This scenario uses Streamlit's warehouse runtime and authorized Snowsight developers/viewers. (Choose 2.)

### Options

**A**

Snowsight acts as the compute engine, replacing the virtual warehouses needed to run the Streamlit Python code.

**B**

Snowsight provides the native web interface where developers can write, test, and deploy Streamlit application code directly in the browser.

**C**

Snowsight provides the URL routing and hosting environment to display the deployed Streamlit app to end users within the Snowflake UI.

**D**

Viewing the application grants every viewer direct SELECT on its underlying tables.

**E**

A viewer can edit the app merely by having permission to open its URL.

Correct answer: B, C

### Explanation

Under the stated configuration, Snowsight supports browser development/testing/deployment. Snowsight provides app navigation/viewing without separately hosting a server. A: Snowsight is UI, not warehouse/Python compute replacement. B: Snowsight supports browser development/testing/deployment. C: Snowsight provides app navigation/viewing without separately hosting a server. D: Application access does not automatically grant viewers direct table SELECT; application execution and underlying data authorization follow the runtime's security model. E: Viewing and editing are separate permissions; URL access alone is not code-edit authority.

## Question 3

Type: single\_choice
Knowledge point: Snowsight

A Snowsight SQL worksheet has context DEV.PUBLIC and warehouse ANALYST\_WH. The analyst's role can read both DEV.PUBLIC.INVOICES and PROD.BILLING.INVOICES. This statement succeeds but returns the development row count:

```sql
SELECT COUNT(*) FROM INVOICES;
```

The next run must read the production table while retaining the same role and warehouse. Which worksheet action directly corrects object resolution?

### Options

**A**

Set the worksheet database and schema context to PROD.BILLING, then rerun the statement.

**B**

Increase ANALYST\_WH by one size, then rerun the statement.

**C**

Pin PROD.BILLING.INVOICES in the Databases explorer, then rerun the unchanged statement and context.

**D**

Refresh the worksheet's displayed results without changing its context.

Correct answer: A

### Explanation

The unqualified name INVOICES resolves through the worksheet's database/schema context. Setting PROD.BILLING changes that resolution while preserving the authorized role and compute; pinning or refreshing does not.

## Question 4

Type: single\_choice
Knowledge point: Snowsight

A teammate can open and read a SQL file in a Snowsight shared workspace using role REPORT\_READER. That role has READ on the workspace and access to its parent namespace, but no SELECT on the file's SALES table and no USAGE on the specified warehouse. The teammate needs to run the existing SELECT without editing the shared file or gaining workspace administration rights. Which permission plan fits?

### Options

**A**

Replace workspace READ with WRITE and rely on it to authorize the SELECT.

**B**

Transfer OWNERSHIP of the shared workspace to REPORT\_READER and retain its current data grants.

**C**

Retain workspace READ and grant the needed table SELECT, database/schema access and warehouse USAGE to the execution role.

**D**

Grant SELECT on SALES but leave warehouse USAGE absent because the file is shared.

Correct answer: C

### Explanation

Shared workspace READ provides file access. Queries run with the user's own execution privileges, so supply the required data namespace, table and warehouse grants without upgrading file-editing or workspace ownership rights.

## Question 5

Type: single\_choice
Knowledge point: Snowsight

An engineer is choosing a Snowsight view to inspect an executed query's operator graph and each operator's percentage of query duration, when its profile is available. Which view provides this information?

### Options

**A**

The Details tab for the query.

**B**

The Query History table.

**C**

The Query Profile tab for the query.

**D**

The Results section for the query.

Correct answer: C

### Explanation

Use Query Profile for the operator plan and timing. This feature choice assumes profile availability; access to query details alone does not guarantee it.

## Question 6

Type: multiple\_choice
Knowledge point: Snowflake CLI

A developer has configured a local \[connections.prod\] profile and supplies no command-line connection overrides. They run: snow sql -q "SELECT count(\*) FROM analytics.public.sales;" -c prod Which two statements describe the connection selection and SQL submission? (Choose 2.)

### Options

**A**

The CLI temporarily provisioned a local virtual warehouse on the machine to execute the query against the remote storage layer.

**B**

The CLI used the specific connection details defined within the \[connections.prod\] section of the local configuration file.

**C**

The CLI bypassed the virtual warehouse layer and retrieved the count directly from the Database Storage layer metadata.

**D**

The CLI required the user to approve an MFA push notification for this query, regardless of the current active session state.

**E**

The CLI sent the query to the Cloud Services layer, which parsed, optimized, and compiled the statement before dispatching it.

Correct answer: B, E

### Explanation

A: Incorrect: CLI is local client, not local warehouse provisioner. B: Correct: -c prod selects named local connection configuration, subject to overrides. C: Incorrect: CLI submits SQL to services rather than fetching storage metadata directly. D: Incorrect: MFA behavior depends on authentication/session policy, not every SQL statement. E: Correct: service handles SQL parse/optimization and routes execution as needed.

## Question 7

Type: single\_choice
Knowledge point: Snowflake CLI

A headless Linux CI runner uses Snowflake CLI to deploy Snowpark UDFs. This release must use the service user's existing authentication setup. The user's RSA public key is registered, and the matching encrypted private-key file and passphrase are available through the CI secret mount. No OAuth client registration or workload-identity binding has been configured. The job has no browser access or operator to complete interactive authentication. Which connection configuration can authenticate this job under those conditions?

### Options

**A**

Select OAUTH\_CLIENT\_CREDENTIALS for the existing connection without adding an OAuth client registration.

**B**

Select EXTERNALBROWSER for the existing connection.

**C**

Select WORKLOAD\_IDENTITY for the service user without adding a workload-identity binding.

**D**

Select SNOWFLAKE\_JWT, set private\_key\_file to the mounted key path, and supply its passphrase securely through the CI environment.

Correct answer: D

### Explanation

Use the existing registered key pair through the CLI's SNOWFLAKE\_JWT configuration. Keep the private key and passphrase in the approved secret handling mechanism. OAuth client credentials and workload identity are also valid unattended designs when configured, so key-pair authentication is suitable for these stated conditions rather than the only secure automation method. Successful authentication still does not prove the deployment role has all UDF creation privileges.

## Question 8

Type: single\_choice
Knowledge point: Snowflake CLI

A CI job uses Snowflake CLI. Its working directory contains checks.sql, which holds several validation statements and must be executed in full. The existing named connection ci\_review has valid account credentials and a configured warehouse DEFAULT\_WH. No environment variable overrides the warehouse. This invocation must use VALIDATION\_WH without modifying the saved connection. The connection role has access to both warehouses. Which command meets these requirements?

### Options

**A**

snow sql --connection ci\_review --warehouse VALIDATION\_WH --filename checks.sql

**B**

snow sql --connection ci\_review --warehouse VALIDATION\_WH --query "checks.sql"

**C**

snow sql --connection ci\_review --filename checks.sql

**D**

snow sql --connection ci\_review --warehouse VALIDATION\_WH --query "SELECT CURRENT\_WAREHOUSE();"

Correct answer: A

### Explanation

Snowflake CLI separates SQL text from SQL files. Use --filename for the file and supply --warehouse alongside the named connection to override its warehouse for this command without changing the saved configuration.

## Question 9

Type: single\_choice
Knowledge point: Snowflake CLI

A build agent has Snowflake CLI installed. Its existing named connections `ci` and `dev` both work with unattended authentication. Connection `ci` points to the test account; `dev`, also the default connection, points elsewhere. No command-line or environment account overrides are present. The working directory contains checks.sql with this complete content:

```sql
SELECT CURRENT_ACCOUNT();
SELECT CURRENT_ROLE();
```

Which command runs the file against the test account and emits its query results as JSON?

### Options

**A**

snow sql --filename checks.sql --connection dev --format JSON

**B**

snow sql --filename checks.sql --connection ci --format JSON

**C**

snow sql --query 'checks.sql' --connection ci --format JSON

**D**

snow connection test --connection ci --format JSON

Correct answer: B

### Explanation

The CLI distinguishes selecting a connection, testing connectivity, and supplying SQL input. Executing this file requires the file input mode and the ci connection; JSON is an output-format choice.

## Question 10

Type: single\_choice
Knowledge point: Snowflake CLI

A Solution Architect is planning architecture, governance, and rollout tradeoffs for the Snowflake CLI. The architect is configuring a developer's workstation and needs to define multiple connection profiles (e.g., one for the dev environment and one for prod).

The architect reviews the following configuration snippet located on the developer's machine:

```
[connections.dev]
account = "my_org-dev_account"
user = "jdoe"
role = "DEV_ROLE"
warehouse = "DEV_WH"
[connections.prod]
account = "my_org-prod_account"
user = "jdoe"
role = "PROD_ROLE"
warehouse = "PROD_WH"
```

Which configuration file uses this exact format to store connection definitions for the modern Snowflake CLI?

### Options

**A**

snowsight\_connections.json

**B**

\~/.snowsql/config

**C**

\~/.aws/credentials

**D**

config.toml

Correct answer: D

### Explanation

A: The invented Snowsight JSON filename is not the modern CLI's TOML profile file. B: \~/.snowsql/config is the legacy SnowSQL configuration; shared section-style names do not make it this modern TOML file. C: \~/.aws/credentials stores AWS credential profiles rather than the stated Snowflake CLI connection keys. D: config.toml stores the modern Snowflake CLI's named connection definitions in TOML; configured locations and separate connections.toml support may also apply.

## Question 11

Type: multiple\_choice
Knowledge point: Snowflake CLI

A Cloud Architect is evaluating how a DevOps team uses the Snowflake CLI to streamline application development. The team wants to use the CLI to manage complex deployments that include both Python code and SQL logic without relying heavily on custom wrapper scripts. Based on the capabilities of the modern Snowflake CLI (snow), which commands are natively supported to facilitate these workloads? (Choose 2.)

### Options

**A**

Snowpark deployment can execute procedure code directly from an arbitrary local path without uploading its code artifacts.

**B**

Commands to deploy and manage Snowpark functions and stored procedures directly from local project files.

**C**

Snowpark build also installs the compiled functions in Snowflake, so a separate deploy step is unnecessary.

**D**

Streamlit deployment is restricted to the browser editor; the CLI can inspect but cannot create the app object.

**E**

Commands to package, create, and deploy Streamlit in Snowflake applications using a snowflake.yml project file.

Correct answer: B, E

### Explanation

Under the stated configuration, CLI deploys Snowpark functions/procedures from project files. CLI deploys Streamlit using project definitions. A: Snowpark deployment uploads the project's artifacts before creating the procedure/function definitions; local files are not remotely executable by arbitrary local path. B: CLI deploys Snowpark functions/procedures from project files. C: Build prepares source/dependency artifacts, while deploy uploads them and creates or updates Snowflake objects. D: The CLI's supported Streamlit deploy command creates and deploys the project into Snowflake, subject to project configuration and privileges. E: CLI deploys Streamlit using project definitions.

## Question 12

Type: single\_choice
Knowledge point: IDE integrations (e.g., Visual Studio Code)

A developer is connected to Snowflake through the Snowflake Extension for Visual Studio Code. An open Snowflake SQL file contains:

```sql
SELECT CURRENT_ROLE();
SELECT COUNT(*) FROM DEV_DB.PUBLIC.EVENTS;
DROP TABLE DEV_DB.PUBLIC.EVENTS;
```

The developer wants to run the first two statements in that order without running the DROP. The file must keep all three statements. Which editor action should the developer use?

### Options

**A**

Select the text of the first two complete statements and choose Execute

**B**

Place the cursor in the first SELECT with no text selected and choose Execute

**C**

Choose Snowflake: Execute All Statements for the open file

**D**

Open Query History and select the first SELECT's earlier execution

Correct answer: A

### Explanation

Use the extension's statement selection to control the execution boundary. Cursor-based execution, whole-file execution, and inspecting prior history have different purposes.

## Question 13

Type: single\_choice
Knowledge point: IDE integrations (e.g., Visual Studio Code)

The corporate account supports browser-based federated SSO, and its identity provider requires MFA. A developer wants the Snowflake VS Code extension to use that existing interactive SSO workflow. Which configured authentication path fits?

### Options

**A**

Use key-pair authentication and expect it to prompt the corporate identity provider for this interactive SSO flow.

**B**

Use username/password authentication without choosing the federated browser workflow.

**C**

Use an unrelated cloud-provider IAM identity as a substitute for configuring Snowflake authentication.

**D**

Use the supported external-browser SSO option, completing the identity-provider login and required MFA.

Correct answer: D

### Explanation

A: Key-pair authentication is a distinct supported mode and does not itself perform this browser IdP SSO flow. B: A username/password configuration does not select the required federated browser authentication. C: Cloud IAM is not an automatic substitute for the configured Snowflake federation. D: The external-browser mode directs the user through the configured IdP; MFA follows the applicable IdP and Snowflake policies.

## Question 14

Type: multiple\_choice
Knowledge point: IDE integrations (e.g., Visual Studio Code)

A Quality Engineer is validating developer workflows using the Snowflake VS Code extension. The engineering team wants to maximize the tasks they can complete without leaving the IDE environment.

The engineer reviews the following IDE state:  
VS Code -> Snowflake Extension View  
\- Connection: Active (Role: DEV\_ROLE)  
\- Database Explorer: Expanded  
\- Query Results Pane: Available  
\- Snowpark Python integration: Active

Which actions can developers natively perform directly in this VS Code IDE environment? Select dedicated features of the Snowflake VS Code extension UI. The ability to run arbitrary administrative SQL in its worksheet is not being counted as a dedicated GUI feature. (Choose 2.)

### Options

**A**

Use the results grid to edit a returned cell and automatically persist it to the source table.

**B**

View the execution results of SQL queries natively in a tabular data grid within VS Code.

**C**

Use a dedicated extension Reader Accounts administration panel without writing SQL.

**D**

The extension automatically executes every SQL statement as autocomplete suggests it.

**E**

Utilize syntax highlighting and autocomplete specifically optimized for Snowflake SQL functions.

Correct answer: B, E

### Explanation

Under the stated configuration, Results appear in IDE data grid. Snowflake-specific syntax/completion supports SQL authoring. A: The extension's results grid displays query output; displaying rows is not an automatic source-table DML editing workflow. B: Results appear in IDE data grid. C: A dedicated reader-account management GUI is not one of the stated extension features; sufficiently privileged users can separately execute administrative SQL. D: Autocomplete helps author SQL; execution remains a separate user action and is not implied by code completion. E: Snowflake-specific syntax/completion supports SQL authoring.

## Question 15

Type: single\_choice
Knowledge point: IDE integrations (e.g., Visual Studio Code)

In the Snowflake VS Code extension, an analyst runs a report SELECT. The session trace then shows an automatic DESC RESULT statement. Five minutes later, SELECT \* FROM TABLE(RESULT\_SCAN(LAST\_QUERY\_ID())) returns column descriptions instead of the report rows. The same user needs the original report output, which remains available; source data has changed. Which correction is appropriate?

### Options

**A**

Use RESULT\_SCAN(-1) to select the original report independently of background statements.

**B**

Re-execute the report SQL, then save the new output as the original report.

**C**

Locate the report SELECT's specific query ID in Query History and supply that ID to RESULT\_SCAN.

**D**

Run DESC RESULT using the report SELECT's query ID and export that output.

Correct answer: C

### Explanation

The extension adds DESC RESULT after queries, so the latest statement may be that description. Scan the original report's explicit ID, within the available result-retention window, to retrieve its rows without rerunning the SQL.

