ExamGecko
Home Home / Snowflake / SnowPro Core

Snowflake SnowPro Core Practice Test - Questions Answers, Page 50

Question list
Search
Search

What are valid sub-clauses to the OVER clause for a window function? (Select TWO).

A.

GROUP BY

A.

GROUP BY

Answers
B.

LIMIT

B.

LIMIT

Answers
C.

ORDER BY

C.

ORDER BY

Answers
D.

PARTITION BY

D.

PARTITION BY

Answers
E.

UNION ALL

E.

UNION ALL

Answers
Suggested answer: C, D

Explanation:

Valid sub-clauses to the OVER clause for a window function in SQL are:

C . ORDER BY: This clause specifies the order in which the rows in a partition are processed by the window function. It is essential for functions that depend on the row order, such as ranking functions.

D . PARTITION BY: This clause divides the result set into partitions to which the window function is applied. Each partition is processed independently of other partitions, making it crucial for functions that compute values across sets of rows that share common characteristics.

These clauses are fundamental to defining the scope and order of data over which the window function operates, enabling complex analytical computations within SQL queries.

Snowflake Documentation: Window Functions

How does Snowflake describe its unique architecture?

A.

A single-cluster shared data architecture using a central data repository and massively parallel processing (MPP)

A.

A single-cluster shared data architecture using a central data repository and massively parallel processing (MPP)

Answers
B.

A multi-duster shared nothing architecture using a soloed data repository and massively parallel processing (MPP)

B.

A multi-duster shared nothing architecture using a soloed data repository and massively parallel processing (MPP)

Answers
C.

A single-cluster shared nothing architecture using a sliced data repository and symmetric multiprocessing (SMP)

C.

A single-cluster shared nothing architecture using a sliced data repository and symmetric multiprocessing (SMP)

Answers
D.

A multi-cluster shared nothing architecture using a siloed data repository and symmetric multiprocessing (SMP)

D.

A multi-cluster shared nothing architecture using a siloed data repository and symmetric multiprocessing (SMP)

Answers
Suggested answer: A

Explanation:

Snowflake's unique architecture is described as a multi-cluster, shared data architecture that leverages massively parallel processing (MPP). This architecture separates compute and storage resources, enabling Snowflake to scale them independently. It does not use a single cluster or rely solely on symmetric multiprocessing (SMP); rather, it uses a combination of shared-nothing architecture for compute clusters (virtual warehouses) and a centralized storage layer for data, optimizing for both performance and scalability.

Snowflake Documentation: Snowflake Architecture Overview

What information does the Query Profile provide?

A.

Graphical representation of the data model

A.

Graphical representation of the data model

Answers
B.

Statistics for each component of the processing plan

B.

Statistics for each component of the processing plan

Answers
C.

Detailed Information about I he database schema

C.

Detailed Information about I he database schema

Answers
D.

Real-time monitoring of the database operations

D.

Real-time monitoring of the database operations

Answers
Suggested answer: B

Explanation:

The Query Profile in Snowflake provides a graphical representation and statistics for each component of the query's execution plan. This includes details such as the execution time, the number of rows processed, and the amount of data scanned for each operation within the query. The Query Profile is a crucial tool for understanding and optimizing the performance of queries, as it helps identify potential bottlenecks and inefficiencies.

Snowflake Documentation: Understanding the Query Profile

By default, how long is the standard retention period for Time Travel across all Snowflake accounts?

A.

0 days

A.

0 days

Answers
B.

1 day

B.

1 day

Answers
C.

7 days

C.

7 days

Answers
D.

14 days

D.

14 days

Answers
Suggested answer: B

Explanation:

By default, the standard retention period for Time Travel in Snowflake is 1 day across all Snowflake accounts. Time Travel enables users to access historical data within this retention window, allowing for point-in-time data analysis and recovery. This feature is a significant aspect of Snowflake's data management capabilities, offering flexibility in handling data changes and accidental deletions.

Snowflake Documentation: Using Time Travel

Which role has the ability to create a share from a shared database by default?

A.

ACCOUNTADMIN

A.

ACCOUNTADMIN

Answers
B.

SECURITYADMIN

B.

SECURITYADMIN

Answers
C.

SYSADMIN

C.

SYSADMIN

Answers
D.

ORGADMIN

D.

ORGADMIN

Answers
Suggested answer: A

Explanation:

By default, the ACCOUNTADMIN role in Snowflake has the ability to create a share from a shared database. This role has the highest level of access within a Snowflake account, including the management of all aspects of the account, such as users, roles, warehouses, and databases, as well as the creation and management of shares for secure data sharing with other Snowflake accounts.

Snowflake Documentation: Roles

Why would a Snowflake user decide to use a materialized view instead of a regular view?

A.

The base tables do not change frequently.

A.

The base tables do not change frequently.

Answers
B.

The results of the view change often.

B.

The results of the view change often.

Answers
C.

The query is not resource intensive.

C.

The query is not resource intensive.

Answers
D.

The query results are not used frequently.

D.

The query results are not used frequently.

Answers
Suggested answer: A

Explanation:

A Snowflake user would decide to use a materialized view instead of a regular view primarily when the base tables do not change frequently. Materialized views store the result of the view query and update it as the underlying data changes, making them ideal for situations where the data is relatively static and query performance is critical. By precomputing and storing the query results, materialized views can significantly reduce query execution times for complex aggregations, joins, and calculations.

Snowflake Documentation: Materialized Views

Which command can be used to list all the file formats for which a user has access privileges?

A.

LIST

A.

LIST

Answers
B.

ALTER FILE FORMAT

B.

ALTER FILE FORMAT

Answers
C.

DESCRIBE FILE FORMAT

C.

DESCRIBE FILE FORMAT

Answers
D.

SHOW FILE FORMATS

D.

SHOW FILE FORMATS

Answers
Suggested answer: D

Explanation:

The command to list all the file formats for which a user has access privileges in Snowflake is SHOW FILE FORMATS. This command provides a list of all file formats defined in the user's current session or specified database/schema, along with details such as the name, type, and creation time of each file format. It is a valuable tool for users to understand and manage the file formats available for data loading and unloading operations.

Snowflake Documentation: SHOW FILE FORMATS

Which common query problems are identified by the Query Profile? (Select TWO.)

A.

Syntax error

A.

Syntax error

Answers
B.

Inefficient pruning

B.

Inefficient pruning

Answers
C.

Ambiguous column names

C.

Ambiguous column names

Answers
D.

Queries too large to fit in memory

D.

Queries too large to fit in memory

Answers
E.

Object does not exist or not authorized

E.

Object does not exist or not authorized

Answers
Suggested answer: B, D

Explanation:

The Query Profile in Snowflake can identify common query problems, including:

B . Inefficient pruning: This refers to the inability of a query to effectively limit the amount of data being scanned, potentially leading to suboptimal performance.

D . Queries too large to fit in memory: This indicates that a query requires more memory than is available in the virtual warehouse, which can lead to spilling to disk and degraded performance.

The Query Profile helps diagnose these issues by providing detailed execution statistics and visualizations, aiding in query optimization and troubleshooting.

Snowflake Documentation: Query Profile

Top of Form

By default, which role has access to the SYSTEM$GLOBAL_ACCOUNT_SET_PARAMETER function?

A.

ACCOUNTADMIN

A.

ACCOUNTADMIN

Answers
B.

SECURITYADMIN

B.

SECURITYADMIN

Answers
C.

SYSADMIN

C.

SYSADMIN

Answers
D.

ORGADMIN

D.

ORGADMIN

Answers
Suggested answer: A

Explanation:

By default, the ACCOUNTADMIN role in Snowflake has access to the SYSTEM$GLOBAL_ACCOUNT_SET_PARAMETER function. This function is used to set global account parameters, impacting the entire Snowflake account's configuration and behavior. The ACCOUNTADMIN role is the highest-level administrative role in Snowflake, granting the necessary privileges to manage account settings and security features, including the use of global account parameters.

Snowflake Documentation: SYSTEM$GLOBAL_ACCOUNT_SET_PARAMETER

If a virtual warehouse runs for 61 seconds, shut down, and then restart and runs for 30 seconds, for how many seconds is it billed?

A.

60

A.

60

Answers
B.

91

B.

91

Answers
C.

120

C.

120

Answers
D.

121

D.

121

Answers
Suggested answer: C

Explanation:

Snowflake bills virtual warehouse usage in one-minute increments, rounding up to the nearest minute for any partial minute of compute time used. If a virtual warehouse runs for 61 seconds and then, after being shut down, restarts and runs for an additional 30 seconds, the total time billed would be 120 seconds or 2 minutes. The first 61 seconds are rounded up to 2 minutes, and the subsequent 30 seconds are within a new minute, which is also rounded up to the nearest minute.

Snowflake Documentation: Virtual Warehouses Billing

Total 627 questions
Go to page: of 63