ExamGecko
Home Home / Snowflake / SnowPro Core

Snowflake SnowPro Core Practice Test - Questions Answers, Page 41

Question list
Search
Search

Which Snowflake table objects can be shared with other accounts? (Select TWO).

A.
Temporary tables
A.
Temporary tables
Answers
B.
Permanent tables
B.
Permanent tables
Answers
C.
Transient tables
C.
Transient tables
Answers
D.
External tables
D.
External tables
Answers
E.
User-Defined Table Functions (UDTFs)
E.
User-Defined Table Functions (UDTFs)
Answers
Suggested answer: B, D

Explanation:

In Snowflake,permanent tablesandexternal tablescan be shared with other accounts using Secure Data Sharing.Temporary tables, transient tables, and UDTFs are not shareable objects

Which object can be used with Secure Data Sharing?

A.
View
A.
View
Answers
B.
Materialized view
B.
Materialized view
Answers
C.
External table
C.
External table
Answers
D.
User-Defined Function (UDF)
D.
User-Defined Function (UDF)
Answers
Suggested answer: A

Explanation:

Viewscan be used with Secure Data Sharing in Snowflake.Materialized views, external tables, and UDFs are not typically shared directly for security and performance reasons2.

How can a Snowflake administrator determine which user has accessed a database object that contains sensitive information?

A.
Review the granted privileges to the database object.
A.
Review the granted privileges to the database object.
Answers
B.
Review the row access policy for the database object.
B.
Review the row access policy for the database object.
Answers
C.
Query the ACCESS_HlSTORY view in the ACCOUNT_USAGE schema.
C.
Query the ACCESS_HlSTORY view in the ACCOUNT_USAGE schema.
Answers
D.
Query the REPLICATION USAGE HISTORY view in the ORGANIZATION USAGE schema.
D.
Query the REPLICATION USAGE HISTORY view in the ORGANIZATION USAGE schema.
Answers
Suggested answer: C

Explanation:

To determine which user has accessed a database object containing sensitive information, a Snowflake administrator can query theACCESS_HISTORYview in theACCOUNT_USAGEschema, which provides information about access to database objects3.

Which type of loop requires a BREAK statement to stop executing?

A.
FOR
A.
FOR
Answers
B.
LOOP
B.
LOOP
Answers
C.
REPEAT
C.
REPEAT
Answers
D.
WHILE
D.
WHILE
Answers
Suggested answer: B

Explanation:

TheLOOPtype of loop in Snowflake Scripting does not have a built-in termination condition and requires aBREAKstatement to stop executing4.

Which Snowflake function is maintained separately from the data and helps to support features such as Time Travel, Secure Data Sharing, and pruning?

A.
Column compression
A.
Column compression
Answers
B.
Data clustering
B.
Data clustering
Answers
C.
Micro-partitioning
C.
Micro-partitioning
Answers
D.
Metadata management
D.
Metadata management
Answers
Suggested answer: C

Explanation:

Micro-partitioning is a Snowflake function that is maintained separately from the data and supports features such as Time Travel, Secure Data Sharing, and pruning.It allows Snowflake to efficiently manage and query large datasets by organizing them into micro-partitions1.

Which views are included in the DATA SHARING USAGE schema? (Select TWO).

A.
ACCESS_HISTORY
A.
ACCESS_HISTORY
Answers
B.
DATA_TRANSFER_HISTORY
B.
DATA_TRANSFER_HISTORY
Answers
C.
WAREHOUSE_METERING_HISTORY
C.
WAREHOUSE_METERING_HISTORY
Answers
D.
MONETIZED_USAGE_DAILY
D.
MONETIZED_USAGE_DAILY
Answers
E.
LISTING TELEMETRY DAILY
E.
LISTING TELEMETRY DAILY
Answers
Suggested answer: D, E

Explanation:

The DATA_SHARING_USAGE schema includes views that display information about listings published in the Snowflake Marketplace or a data exchange, which includes DATA_TRANSFER_HISTORY and LISTING_TELEMETRY_DAILY2.

What are the least privileges needed to view and modify resource monitors? (Select TWO).

A.
SELECT
A.
SELECT
Answers
B.
OWNERSHIP
B.
OWNERSHIP
Answers
C.
MONITOR
C.
MONITOR
Answers
D.
MODIFY
D.
MODIFY
Answers
E.
USAGE
E.
USAGE
Answers
Suggested answer: C, D

Explanation:

To view and modify resource monitors, the least privileges needed are MONITOR and MODIFY.These privileges allow a user to monitor credit usage and make changes to resource monitors3.

How can a Snowflake user traverse semi-structured data?

A.
Insert a colon (:) between the VARIANT column name and any first-level element.
A.
Insert a colon (:) between the VARIANT column name and any first-level element.
Answers
B.
Insert a colon (:) between the VARIANT column name and any second-level element.
B.
Insert a colon (:) between the VARIANT column name and any second-level element.
Answers
C.
Insert a double colon (: :) between the VARIANT column name and any first-level element.
C.
Insert a double colon (: :) between the VARIANT column name and any first-level element.
Answers
D.
Insert a double colon (: :) between the VARIANT column name and any second-level element.
D.
Insert a double colon (: :) between the VARIANT column name and any second-level element.
Answers
Suggested answer: A

Explanation:

To traverse semi-structured data in Snowflake, a user can insert a colon (:) between the VARIANT column name and any first-level element.This path syntax is used to retrieve elements in a VARIANT column4.

What is the purpose of the Snowflake SPLIT TO_TABLE function?

A.
To count the number of characters in a string
A.
To count the number of characters in a string
Answers
B.
To split a string into an array of sub-strings
B.
To split a string into an array of sub-strings
Answers
C.
To split a string and flatten the results into rows
C.
To split a string and flatten the results into rows
Answers
D.
To split a string and flatten the results into columns
D.
To split a string and flatten the results into columns
Answers
Suggested answer: C

Explanation:

The purpose of the Snowflake SPLIT_TO_TABLE function is to split a string based on a specified delimiter and flatten the results into rows.This table function is useful for transforming a delimited string into a set of rows that can be further processed or queried5.

A column named 'Data' contains VARIANT data and stores values as follows:

How will Snowflake extract the employee's name from the column data?

A.
Data:employee.name
A.
Data:employee.name
Answers
B.
DATA:employee.name
B.
DATA:employee.name
Answers
C.
data:Employee.name
C.
data:Employee.name
Answers
D.
data:employee.name
D.
data:employee.name
Answers
Suggested answer: D

Explanation:

In Snowflake, to extract a specific value from a VARIANT column, you use the column name followed by a colon and then the key. The keys are case-sensitive. Therefore, to extract the employee's name from the ''Data'' column, the correct syntax isdata:employee.name.

Total 627 questions
Go to page: of 63