ExamGecko
Home Home / Snowflake / SnowPro Core

Snowflake SnowPro Core Practice Test - Questions Answers, Page 61

Question list
Search
Search

What does the Activity area of Snowsight allow users to do? (Select TWO).

A.

Schedule automated data backups.

A.

Schedule automated data backups.

Answers
B.

Explore each step of an executed query.

B.

Explore each step of an executed query.

Answers
C.

Monitor queries executed by users in an account.

C.

Monitor queries executed by users in an account.

Answers
D.

Create and manage user roles and permissions.

D.

Create and manage user roles and permissions.

Answers
E.

Access Snowflake Marketplace to find and integrate datasets.

E.

Access Snowflake Marketplace to find and integrate datasets.

Answers
Suggested answer: B, C

Explanation:

The Activity area of Snowsight, Snowflake's web interface, allows users to perform several important tasks related to query management and performance analysis. Among the options provided, the correct ones are:

B . Explore each step of an executed query: Snowsight provides detailed insights into query execution, including the ability to explore the execution plan of a query. This helps users understand how a query was processed, identify performance bottlenecks, and optimize query performance.

C . Monitor queries executed by users in an account: The Activity area enables users to monitor the queries that have been executed by users within the Snowflake account. This includes viewing the history of queries, their execution times, resources consumed, and other relevant metrics.

These features are crucial for effective query performance tuning and ensuring efficient use of Snowflake's resources.

Snowflake Documentation on Snowsight: Using Snowsight

When a Snowflake user loads CSV data from a stage, which copy into <table> command guideline should they follow?

A.

The CSV field delimiter must be a comma character (*,'),

A.

The CSV field delimiter must be a comma character (*,'),

Answers
B.

The number of columns in each row should be consistent.

B.

The number of columns in each row should be consistent.

Answers
C.

The data file in the stage must be in a compressed format.

C.

The data file in the stage must be in a compressed format.

Answers
D.

The data file must have the same number of columns as the target table.

D.

The data file must have the same number of columns as the target table.

Answers
Suggested answer: B

Explanation:

When using the COPY INTO <table> command to load CSV data from a stage into a Snowflake table, one of the crucial guidelines to follow is that the number of columns in each row within the CSV file should be consistent. This ensures data integrity and allows for a smooth data loading process, as Snowflake expects each row in the CSV file to map directly to a row in the target table based on the number of columns. If there's a mismatch in the number of columns between any row in the file and the target table, Snowflake might return an error or produce unexpected results during the load operation.

It's important to note that while the CSV field delimiter can be specified to something other than a comma, ensuring the consistency in the number of columns across all rows is fundamental to successfully loading data.

Snowflake Documentation on Loading Data: Loading CSV Data

In addition to performing all the standard steps to share data, which privilege must be granted on each database referenced by a secure view in order to be shared?

A.

READ

A.

READ

Answers
B.

REFERENCES

B.

REFERENCES

Answers
C.

REFERENCEJJSAGE

C.

REFERENCEJJSAGE

Answers
D.

USAGE

D.

USAGE

Answers
Suggested answer: D

Explanation:

In addition to performing all the standard steps to share data, the USAGE privilege must be granted on each database referenced by a secure view in order to be shared. When sharing a database or specific objects like secure views, the receiving account needs to have the USAGE privilege on the database and schema to access the shared data. This privilege enables the receiving account to access the database and its schemas but does not allow for any DML operations. It's a prerequisite for accessing any objects within the database.

For a secure view to be part of a share, not only does the view itself need to be shared, but the underlying database (and schema, if applicable) must also be accessible to the recipients. Granting USAGE privilege on the database ensures that the receiving account can access the database in a read-only mode to utilize the shared view.

Snowflake Documentation on Shares: Creating and Managing Shares

What value provides information about disk usage for operations where intermediate results do not fit in memory in a Query Profile?

A.

IO

A.

IO

Answers
B.

Network

B.

Network

Answers
C.

Pruning

C.

Pruning

Answers
D.

Spilling

D.

Spilling

Answers
Suggested answer: D

Explanation:

In Snowflake, when a query execution requires more memory than what is available, Snowflake handles these situations by spilling the intermediate results to disk. This process is known as 'spilling.' The Query Profile in Snowflake includes a metric that helps users identify when and how much data spilling occurs during the execution of a query. This information is crucial for optimizing queries as excessive spilling can significantly slow down query performance. The value that provides this information about disk usage due to intermediate results not fitting in memory is appropriately labeled as 'Spilling' in the Query Profile.

Snowflake Documentation on Query Profile and Performance: This section explains the various components of the query profile, including the spilling metric, which indicates disk usage for operations where intermediate results exceed available memory.

How do secure views compare to non-secure views in Snowflake?

A.

Secure views execute slowly compared to non-secure views.

A.

Secure views execute slowly compared to non-secure views.

Answers
B.

Non-secure views are preferred over secure views when sharing data.

B.

Non-secure views are preferred over secure views when sharing data.

Answers
C.

Secure views are similar to materialized views in that they are the most performant.

C.

Secure views are similar to materialized views in that they are the most performant.

Answers
D.

There are no performance differences between secure and non-secure views.

D.

There are no performance differences between secure and non-secure views.

Answers
Suggested answer: D

Explanation:

Secure views and non-secure views in Snowflake are differentiated primarily by their handling of data access and security rather than performance characteristics. A secure view enforces row-level security and ensures that the view definition is hidden from the users. However, in terms of performance, secure views do not inherently execute slower or faster than non-secure views. The performance of both types of views depends more on other factors such as underlying table design, query complexity, and system workload rather than the security features embedded in the views themselves.

Snowflake Documentation on Views: This section provides an overview of both secure and non-secure views, clarifying that the main difference lies in security features rather than performance, thus supporting the assertion that there are no inherent performance differences.

When using SnowSQL, which configuration options are required when unloading data from a SQL query run on a local machine? {Select TWO).

A.

echo

A.

echo

Answers
B.

quiet

B.

quiet

Answers
C.

output_file

C.

output_file

Answers
D.

output_format

D.

output_format

Answers
E.

force_put_overwrite

E.

force_put_overwrite

Answers
Suggested answer: C, D

Explanation:

When unloading data from SnowSQL (Snowflake's command-line client), to a file on a local machine, you need to specify certain configuration options to determine how and where the data should be outputted. The correct configuration options required are:

C . output_file: This configuration option specifies the file path where the output from the query should be stored. It is essential for directing the results of your SQL query into a local file, rather than just displaying it on the screen.

D . output_format: This option determines the format of the output file (e.g., CSV, JSON, etc.). It is crucial for ensuring that the data is unloaded in a structured format that meets the requirements of downstream processes or systems.

These options are specified in the SnowSQL configuration file or directly in the SnowSQL command line. The configuration file allows users to set defaults and customize their usage of SnowSQL, including output preferences for unloading data.

Snowflake Documentation: SnowSQL (CLI Client) at Snowflake Documentation

Snowflake Documentation: Configuring SnowSQL at Snowflake Documentation

How can a Snowflake user post-process the result of SHOW FILE FORMATS?

A.

Use the RESULT_SCAN function.

A.

Use the RESULT_SCAN function.

Answers
B.

Create a CURSOR for the command.

B.

Create a CURSOR for the command.

Answers
C.

Put it in the FROM clause in brackets.

C.

Put it in the FROM clause in brackets.

Answers
D.

Assign the command to RESULTSET.

D.

Assign the command to RESULTSET.

Answers
Suggested answer: A

Explanation:

first run SHOW FILE FORMATS

then SELECT * FROM TABLE(RESULT_SCAN(LAST_QUERY_ID(-1)))

https://docs.snowflake.com/en/sql-reference/functions/result_scan#usage-notes

Which file function gives a user or application access to download unstructured data from a Snowflake stage?

A.

BUILD_SCOPED_FILE_URL

A.

BUILD_SCOPED_FILE_URL

Answers
B.

BUILD_STAGE_FILE_URL

B.

BUILD_STAGE_FILE_URL

Answers
C.

GET_PRESIGNED_URL

C.

GET_PRESIGNED_URL

Answers
D.

GET STAGE LOCATION

D.

GET STAGE LOCATION

Answers
Suggested answer: C

Explanation:

The function that provides access to download unstructured data from a Snowflake stage is:

C . GET_PRESIGNED_URL: This function generates a presigned URL for a single file within a stage. The generated URL can be used to directly access or download the file without needing to go through Snowflake. This is particularly useful for unstructured data such as images, videos, or large text files, where direct access via a URL is needed outside of the Snowflake environment.

Example usage:

SELECT GET_PRESIGNED_URL('stage_name', 'file_path');

This function simplifies the process of securely sharing or accessing files stored in Snowflake stages with external systems or users.

Snowflake Documentation: GET_PRESIGNED_URL Function at Snowflake Documentation

In Snowflake, the use of federated authentication enables which Single Sign-On (SSO) workflow activities? (Select TWO).

A.

Authorizing users

A.

Authorizing users

Answers
B.

Initiating user sessions

B.

Initiating user sessions

Answers
C.

Logging into Snowflake

C.

Logging into Snowflake

Answers
D.

Logging out of Snowflake

D.

Logging out of Snowflake

Answers
E.

Performing role authentication

E.

Performing role authentication

Answers
Suggested answer: B, C

Explanation:

Federated authentication in Snowflake allows users to use their organizational credentials to log in to Snowflake, leveraging Single Sign-On (SSO). The key activities enabled by this setup include:

B . Initiating user sessions: Federated authentication streamlines the process of starting a user session in Snowflake by using the existing authentication mechanisms of an organization.

C . Logging into Snowflake: It simplifies the login process, allowing users to authenticate with their organization's identity provider instead of managing separate credentials for Snowflake.

Snowflake Documentation: Configuring Federated Authentication

A user wants to upload a file to an internal Snowflake stage using a put command.

Which tools and or connectors could be used to execute this command? (Select TWO).

A.

SnowCD

A.

SnowCD

Answers
B.

SnowSQL

B.

SnowSQL

Answers
C.

SQL API

C.

SQL API

Answers
D.

Python connector

D.

Python connector

Answers
E.

Snowsight worksheets

E.

Snowsight worksheets

Answers
Suggested answer: B, E

Explanation:

To upload a file to an internal Snowflake stage using a PUT command, you can use:

B . SnowSQL: SnowSQL, the command-line client for Snowflake, supports the PUT command, allowing users to upload files directly to Snowflake stages from their local file systems.

E . Snowsight worksheets: Snowsight, the web interface for Snowflake, provides a user-friendly environment for executing SQL commands, including the PUT command, through its interactive worksheets.

Snowflake Documentation: Loading Data into Snowflake using SnowSQL

Snowflake Documentation: Using Snowsight

Topic 5, Exam pool E

Total 627 questions
Go to page: of 63