ExamGecko
Home Home / Snowflake / SnowPro Core

Snowflake SnowPro Core Practice Test - Questions Answers, Page 57

Question list
Search
Search

What action should be taken if a Snowflake user wants to share a newly created object in a database with consumers?

A.

Use the automatic sharing feature for seamless access.

A.

Use the automatic sharing feature for seamless access.

Answers
B.

Drop the object and then re-add it to the database to trigger sharing.

B.

Drop the object and then re-add it to the database to trigger sharing.

Answers
C.

Recreate the object with a different name in the database before sharing.

C.

Recreate the object with a different name in the database before sharing.

Answers
D.

Use the grant privilege ... TO share command to grant the necessary privileges.

D.

Use the grant privilege ... TO share command to grant the necessary privileges.

Answers
Suggested answer: D

Explanation:

When a Snowflake user wants to share a newly created object in a database with consumers, the correct action to take is to use the GRANT privilege ... TO SHARE command to grant the necessary privileges for the object to be shared. This approach allows the object owner or a user with the appropriate privileges to share database objects such as tables, secure views, and streams with other Snowflake accounts by granting access to a named share.

The GRANT statement specifies which privileges are granted on the object to the share. The object remains in its original location; sharing does not duplicate or move the object. Instead, it allows the specified share to access the object according to the granted privileges.

For example, to share a table, the command would be:

GRANT SELECT ON TABLE new_table TO SHARE consumer_share;

This command grants the SELECT privilege on a table named new_table to a share named consumer_share, enabling the consumers of the share to query the table.

Automatic sharing, dropping and re-adding the object, or recreating the object with a different name are not required or recommended practices for sharing objects in Snowflake. The use of the GRANT statement to a share is the direct and intended method for this purpose.

Which Snowflake privilege is required on a pipe object to pause or resume pipes?

A.

OPERATE

A.

OPERATE

Answers
B.

READ

B.

READ

Answers
C.

SELECT

C.

SELECT

Answers
D.

USAGE

D.

USAGE

Answers
Suggested answer: A

Explanation:

OPERATE. In Snowflake, to pause or resume a pipe, the OPERATE privilege is required on the pipe object. The OPERATE privilege allows users to perform operational tasks on specific objects such as pipes, tasks, and streams. Specifically, for a pipe, the OPERATE privilege enables the user to execute the ALTER PIPE ... SET PIPE_EXECUTION_PAUSED=TRUE or ALTER PIPE ... SET PIPE_EXECUTION_PAUSED=FALSE commands, which are used to pause or resume the pipe, respectively.

Here's a step-by-step explanation and reference:

Understanding Pipe Operations: Pipes in Snowflake are used for continuous data loading from staging areas into Snowflake tables. Managing pipes involves operations such as creating, monitoring, pausing, and resuming.

Privileges for Pipe Operations: The OPERATE privilege is essential for pausing and resuming pipes. This privilege is more specific than general object access privileges like SELECT or USAGE and is tailored for operational control.

Granting the OPERATE Privilege: To grant the OPERATE privilege on a pipe, an administrator or a user with the necessary grants can execute the SQL command:

GRANT OPERATE ON PIPE TO ROLE <role_name>;

Pausing and Resuming Pipes: Once the OPERATE privilege is granted, the user or role can pause the pipe using:

ALTER PIPE SET PIPE_EXECUTION_PAUSED=TRUE;

To resume the pipe, they use:

ALTER PIPE SET PIPE_EXECUTION_PAUSED=FALSE;

What information is stored in the ACCESS_HlSTORY view?

A.

History of the files that have been loaded into Snowflake

A.

History of the files that have been loaded into Snowflake

Answers
B.

Names and owners of the roles that are currently enabled in the session

B.

Names and owners of the roles that are currently enabled in the session

Answers
C.

Query details such as the objects included and the user who executed the query

C.

Query details such as the objects included and the user who executed the query

Answers
D.

Details around the privileges that have been granted for all objects in an account

D.

Details around the privileges that have been granted for all objects in an account

Answers
Suggested answer: D

Explanation:

Details around the privileges that have been granted for all objects in an account. The ACCESS_HISTORY view in Snowflake provides a comprehensive log of access control changes, including grants and revocations of privileges on all securable objects within the account. This information is crucial for auditing and monitoring the security posture of your Snowflake environment.

Here's how to understand and use the ACCESS_HISTORY view:

Purpose of ACCESS_HISTORY View: It is designed to track changes in access controls, such as when a user or role is granted or revoked privileges on various Snowflake objects. This includes tables, schemas, databases, and more.

Querying ACCESS_HISTORY: To access this view, you can use the following SQL query pattern:

SELECT * FROM SNOWFLAKE.ACCOUNT_USAGE.ACCESS_HISTORY WHERE EVENT_TYPE = 'GRANT' OR EVENT_TYPE = 'REVOKE';

Interpreting the Results: The results from the ACCESS_HISTORY view include the object type, the specific privilege granted or revoked, the grantee (who received or lost the privilege), and the timestamp of the event. This data is invaluable for audits and compliance checks.

In the Data Exchange, who can get or request data from the listings? (Select TWO).

A.

Users with ACCOUNTADMIN role

A.

Users with ACCOUNTADMIN role

Answers
B.

Users with sysadmin role

B.

Users with sysadmin role

Answers
C.

Users with ORGADMIN role

C.

Users with ORGADMIN role

Answers
D.

Users with import share privilege

D.

Users with import share privilege

Answers
E.

Users with manage grants privilege

E.

Users with manage grants privilege

Answers
Suggested answer: A, D

Explanation:

In the Snowflake Data Exchange, the ability to get or request data from listings is generally controlled by specific roles and privileges:

A . Users with ACCOUNTADMIN role: This role typically has the highest level of access within a Snowflake account, including the ability to manage and access all features and functions. Users with this role can access data listings within the Data Exchange.

D . Users with import share privilege: This specific privilege is necessary for users who need to import shared data from the Data Exchange. This privilege allows them to request and access data listings explicitly shared with them.

Authorization to execute CREATE <object> statements comes only from which role?

A.

Primary role

A.

Primary role

Answers
B.

Secondary role

B.

Secondary role

Answers
C.

Application role

C.

Application role

Answers
D.

Database role

D.

Database role

Answers
Suggested answer: A

Explanation:

In Snowflake, the authorization to execute CREATE <object> statements, such as creating tables, views, databases, etc., is determined by the role currently set as the user's primary role. The primary role of a user or session specifies the set of privileges (including creation privileges) that the user has. While users can have multiple roles, only the primary role is used to determine what objects the user can create unless explicitly specified in the session.

Which command is used to upload data files from a local directory or folder on a client machine to an internal stage, for a specified table?

A.

GET

A.

GET

Answers
B.

PUT

B.

PUT

Answers
C.

CREATE STREAM

C.

CREATE STREAM

Answers
D.

COPY INTO <location>

D.

COPY INTO <location>

Answers
Suggested answer: B

Explanation:

To upload data files from a local directory or folder on a client machine to an internal stage in Snowflake, the PUT command is used. The PUT command takes files from the local file system and uploads them to an internal Snowflake stage (or a specified stage) for the purpose of preparing the data to be loaded into Snowflake tables.

Syntax Example:

PUT file://<local_file_path> @<stage_name>;

This command is crucial for data ingestion workflows in Snowflake, especially when preparing to load data using the COPY INTO command.

Which file function provides a URL with access to a file on a stage without the need for authentication and authorization?

A.

GET_RELATIVE_PATH

A.

GET_RELATIVE_PATH

Answers
B.

GET_PRESIGNED_URL

B.

GET_PRESIGNED_URL

Answers
C.

BUILD_STAGE_FILE_URL

C.

BUILD_STAGE_FILE_URL

Answers
D.

BUILD_SCOPED_FILE_URL

D.

BUILD_SCOPED_FILE_URL

Answers
Suggested answer: B

Explanation:

The GET_PRESIGNED_URL file function in Snowflake provides a URL with access to a file on a stage without requiring authentication and authorization. This is particularly useful for sharing data files stored in Snowflake stages with external parties securely and conveniently. The presigned URL generated by this function gives temporary access to the file, which expires after a specified duration.

Example usage of GET_PRESIGNED_URL:

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

This function generates a URL that can be used to directly access a file in the stage, making it easier to share data without compromising security.

Top of Form

Which governance feature is supported by all Snowflake editions?

A.

Object tags

A.

Object tags

Answers
B.

Masking policies

B.

Masking policies

Answers
C.

Row access policies

C.

Row access policies

Answers
D.

OBJECT_DEPENDENCIES View

D.

OBJECT_DEPENDENCIES View

Answers
Suggested answer: D

Explanation:

Snowflake's governance features vary across different editions, but the OBJECT_DEPENDENCIES view is supported by all Snowflake editions. This feature is part of Snowflake's Information Schema and is designed to help users understand the dependencies between various objects in their Snowflake environment.

The OBJECT_DEPENDENCIES view provides a way to query and analyze the relationships and dependencies among different database objects, such as tables, views, and stored procedures. This is crucial for governance, as it allows administrators and data engineers to assess the impact of changes, understand object relationships, and ensure proper management of data assets.

Object tags, masking policies, and row access policies are more advanced features that offer fine-grained data governance capabilities such as tagging objects for classification, dynamically masking sensitive data based on user roles, and controlling row-level access to data. These features may have varying levels of support across different Snowflake editions, with some features being exclusive to higher-tier editions.

What causes objects in a data share to become unavailable to a consumer account?

A.

The DATA_RETENTI0N_TIME_IN_DAYS parameter in the consumer account is set to 0.

A.

The DATA_RETENTI0N_TIME_IN_DAYS parameter in the consumer account is set to 0.

Answers
B.

The consumer account runs the GRANT IMPORTED PRIVILEGES command on the data share every 24 hours.

B.

The consumer account runs the GRANT IMPORTED PRIVILEGES command on the data share every 24 hours.

Answers
C.

The objects in the data share are being deleted and the grant pattern is not re-applied systematically.

C.

The objects in the data share are being deleted and the grant pattern is not re-applied systematically.

Answers
D.

The consumer account acquires the data share through a private data exchange.

D.

The consumer account acquires the data share through a private data exchange.

Answers
Suggested answer: C

Explanation:

Objects in a data share become unavailable to a consumer account if the objects in the data share are deleted or if the permissions on these objects are altered without re-applying the grant permissions systematically. This is because the sharing mechanism in Snowflake relies on explicit grants of permissions on specific objects (like tables, views, or secure views) to the share. If these objects are deleted or if their permissions change without updating the share accordingly, consumers can lose access.

The DATA_RETENTION_TIME_IN_DAYS parameter does not directly affect the availability of shared objects, as it controls how long Snowflake retains historical data for time travel and does not impact data sharing permissions.

Running the GRANT IMPORTED PRIVILEGES command in the consumer account is not related to the availability of shared objects; this command is used to grant privileges on imported objects within the consumer's account and is not a routine maintenance command that would need to be run regularly.

Acquiring a data share through a private data exchange does not inherently make objects unavailable; issues would only arise if there were problems with the share configuration or if the shared objects were deleted or had their permissions altered without re-granting access to the share.

Which chart type is supported in Snowsight for Snowflake users to visualize data with dashboards?

A.

Area chart

A.

Area chart

Answers
B.

Box plot

B.

Box plot

Answers
C.

Heat grid

C.

Heat grid

Answers
D.

Pie chart

D.

Pie chart

Answers
Suggested answer: A

Explanation:

Snowsight, Snowflake's user interface for exploring, analyzing, and visualizing data, supports a variety of chart types for creating dashboards and visualizations. One of the supported chart types in Snowsight is the Area Chart (A). Area charts are useful for representing quantities over time and can be used to highlight volume change and rate of change, as well as to compare multiple quantities.

While Snowsight supports many types of visualizations to help users analyze their data effectively, including line charts, bar charts, and scatter plots, it's important to select the specific reference documentation or release notes for the most current list of supported chart types, as Snowflake continues to enhance and update Snowsight's capabilities.

As of the last update, Box plots (B), Heat grids (C), and Pie charts (D) are types of visualizations that may be supported in various analytics and visualization tools, but for the specific context of Snowsight's currently confirmed features, Area charts are a verified option for users to visualize their data.

Total 627 questions
Go to page: of 63