ExamGecko
Home Home / Snowflake / SnowPro Core

Snowflake SnowPro Core Practice Test - Questions Answers, Page 52

Question list
Search
Search

What SnowFlake database object is derived from a query specification, stored for later use, and can speed up expensive aggregation on large data sets?

A.

Temporary table

A.

Temporary table

Answers
B.

External table

B.

External table

Answers
C.

Secure view

C.

Secure view

Answers
D.

Materialized view

D.

Materialized view

Answers
Suggested answer: D

Explanation:

A materialized view in Snowflake is a database object derived from a query specification, stored for later use, and can significantly speed up expensive aggregations on large data sets. Materialized views store the result of their underlying query, reducing the need to recompute the result each time the view is accessed. This makes them ideal for improving the performance of read-heavy, aggregate-intensive queries.

Snowflake Documentation: Using Materialized Views

How can a user get the MOST detailed information about individual table storage details in Snowflake?

A.

SHOW TABLES command

A.

SHOW TABLES command

Answers
B.

SHOW EXTERNAL TABLES command

B.

SHOW EXTERNAL TABLES command

Answers
C.

TABLES view

C.

TABLES view

Answers
D.

TABLE STORAGE METRICS view

D.

TABLE STORAGE METRICS view

Answers
Suggested answer: D

Explanation:

To get the most detailed information about individual table storage details in Snowflake, the TABLE STORAGE METRICS view should be used. This Information Schema view provides granular storage metrics for tables within Snowflake, including data related to the size of the table, the amount of data stored, and storage usage over time. It's an essential tool for administrators and users looking to monitor and optimize storage consumption and costs.

Snowflake Documentation: Information Schema - TABLE STORAGE METRICS View

What happens when a network policy includes values that appear in both the allowed and blocked IP address list?

A.

Those IP addresses are allowed access to the Snowflake account as Snowflake applies the allowed IP address list first.

A.

Those IP addresses are allowed access to the Snowflake account as Snowflake applies the allowed IP address list first.

Answers
B.

Those IP addresses are denied access lei the Snowflake account as Snowflake applies the blocked IP address list first.

B.

Those IP addresses are denied access lei the Snowflake account as Snowflake applies the blocked IP address list first.

Answers
C.

Snowflake issues an alert message and adds the duplicate IP address values lo both 'he allowed and blocked IP address lists.

C.

Snowflake issues an alert message and adds the duplicate IP address values lo both 'he allowed and blocked IP address lists.

Answers
D.

Snowflake issues an error message and adds the duplicate IP address values to both the allowed and blocked IP address list

D.

Snowflake issues an error message and adds the duplicate IP address values to both the allowed and blocked IP address list

Answers
Suggested answer: B

Explanation:

In Snowflake, when setting up a network policy that specifies both allowed and blocked IP address lists, if an IP address appears in both lists, access from that IP address will be denied. The reason is that Snowflake prioritizes security, and the presence of an IP address in the blocked list indicates it should not be allowed regardless of its presence in the allowed list. This ensures that access controls remain stringent and that any potentially unsafe IP addresses are not inadvertently permitted access.

Snowflake Documentation: Network Policies

What is the MINIMUM permission needed to access a file URL from an external stage?

A.

MODIFY

A.

MODIFY

Answers
B.

READ

B.

READ

Answers
C.

SELECT

C.

SELECT

Answers
D.

USAGE

D.

USAGE

Answers
Suggested answer: D

Explanation:

To access a file URL from an external stage in Snowflake, the minimum permission required is USAGE on the stage object. USAGE permission allows a user to reference the stage in SQL commands, necessary for actions like listing files or loading data from the stage, but does not permit the user to alter or drop the stage.

Snowflake Documentation: Access Control

Which function will provide the proxy information needed to protect Snowsight?

A.

SYSTEMADMIN_TAG

A.

SYSTEMADMIN_TAG

Answers
B.

SYSTEM$GET_PRIVATELINK

B.

SYSTEM$GET_PRIVATELINK

Answers
C.

SYSTEMSALLONTLIST

C.

SYSTEMSALLONTLIST

Answers
D.

SYSTEMAUTHORIZE

D.

SYSTEMAUTHORIZE

Answers
Suggested answer: B

Explanation:

The SYSTEM$GET_PRIVATELINK function in Snowflake provides proxy information necessary for configuring PrivateLink connections, which can protect Snowsight as well as other Snowflake services. PrivateLink enhances security by allowing Snowflake to be accessed via a private connection within a cloud provider's network, reducing exposure to the public internet.

Snowflake Documentation: PrivateLink Setup

Which command should be used to unload all the rows from a table into one or more files in a named stage?

A.

COPY INTO

A.

COPY INTO

Answers
B.

GET

B.

GET

Answers
C.

INSERT INTO

C.

INSERT INTO

Answers
D.

PUT

D.

PUT

Answers
Suggested answer: A

Explanation:

To unload data from a table into one or more files in a named stage, the COPY INTO <location> command should be used. This command exports the result of a query, such as selecting all rows from a table, into files stored in the specified stage. The COPY INTO command is versatile, supporting various file formats and compression options for efficient data unloading.

Snowflake Documentation: COPY INTO Location

Topic 6, Exam pool F

What type of account can be used to share data with a consumer who does have a Snowflake account?

A.

Data provider

A.

Data provider

Answers
B.

Data consumer

B.

Data consumer

Answers
C.

Reader

C.

Reader

Answers
D.

Organization

D.

Organization

Answers
Suggested answer: C

Explanation:

A Reader account in Snowflake can be used to share data with a consumer who does not have a Snowflake account. Reader accounts are a type of shared account provided by data providers to external data consumers, allowing them to access and query shared data using Snowflake's web interface without needing their own Snowflake account.

Snowflake Documentation: Reader Accounts

Which privilege is needed for a SnowFlake user to see the definition of a secure view?

A.

OWNERSHIP

A.

OWNERSHIP

Answers
B.

MODIFY

B.

MODIFY

Answers
C.

CREATE

C.

CREATE

Answers
D.

USAGE

D.

USAGE

Answers
Suggested answer: A

Explanation:

To see the definition of a secure view in Snowflake, the minimum privilege required is OWNERSHIP of the view. Ownership grants the ability to view the definition as well as to modify or drop the view. Secure views are designed to protect sensitive data, and thus the definition of these views is restricted to users with sufficient privileges to ensure data security.

Snowflake Documentation: Secure Views

Which function should be used to find the query ID of the second query executed in a current session?

A.

Select LAST_QUERY_ID(-2)

A.

Select LAST_QUERY_ID(-2)

Answers
B.

Select LAST_QUERY_ID(2)

B.

Select LAST_QUERY_ID(2)

Answers
C.

Select LAST_QUERY_ID(1)

C.

Select LAST_QUERY_ID(1)

Answers
D.

Select LAST_QUERY_ID(2)

D.

Select LAST_QUERY_ID(2)

Answers
Suggested answer: A

Explanation:

The correct function to find the query ID of the second query executed in the current session is SELECT LAST_QUERY_ID(-2). The LAST_QUERY_ID function returns the query ID for the most recent query executed in the session when called with no arguments. When used with an argument, it can retrieve the ID of previous queries within the same session, where -2 would reference the second most recent query executed.

There's a clarification needed here; Snowflake's documentation indicates LAST_QUERY_ID() function does not accept arguments. It returns the ID of the last query executed in the session. To find the query ID of the second last executed query, users typically need to track query IDs manually or use session history views.

Which command will unload data from a table into an external stage?

A.

PUT

A.

PUT

Answers
B.

INSERT

B.

INSERT

Answers
C.

COPY INTO <location>

C.

COPY INTO <location>

Answers
D.

GET

D.

GET

Answers
Suggested answer: C

Explanation:

In Snowflake, the COPY INTO <location> command is used to unload (export) data from a Snowflake table to an external stage, such as an S3 bucket, Azure Blob Storage, or Google Cloud Storage. This command allows users to specify the format, file size, and other options for the data being unloaded, making it a flexible solution for exporting data from Snowflake to external storage solutions for further use or analysis.

Reference: Snowflake Documentation on Data Unloading

Total 627 questions
Go to page: of 63