A sales table FCT_SALES has 100 million records. The following Query was executed SELECT COUNT (1) FROM FCT__SALES; How did Snowflake fulfill this query?
Correct Answer: D
Snowflake is designed to optimize query performance by utilizing metadata for certain types of queries. When executing a COUNT query, Snowflake can often fulfill the request by accessing metadata about the table's row count, rather than scanning the entire table or micro-partitions. This is particularly efficient for large tables like FCT_SALES with a significant number of records. The metadata layer maintains statistics about the table, including the row count, which enables Snowflake to quickly return the result of a COUNT query without the need to perform a full scan. References: Snowflake Documentation on Metadata Management SnowPro® Core Certification StudyGuide
Question 67
A tabular User-Defined Function (UDF) is defined by specifying a return clause that contains which keyword?
Correct Answer: B
In Snowflake, a tabular User-Defined Function (UDF) is defined with a return clause that includes the keyword "TABLE." This indicates that the UDF will return a set of rows, which can be used in the FROM clause of a query. Reference: Based on my internal knowledge as of 2021.
Question 68
Which stage type can be altered and dropped?
Correct Answer: C
Question 69
Which Snowflake privilege is required on a pipe object to pause or resume pipes?
Correct Answer: A
OPERATE. In Snowflake, to pause or resume a pipe, theOPERATEprivilege is required on the pipe object. TheOPERATEprivilege allows users to perform operational tasks on specific objects such as pipes, tasks, and streams. Specifically, for a pipe, theOPERATEprivilege enables the user to execute theALTER PIPE ... SET PIPE_EXECUTION_PAUSED=TRUEorALTER 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:TheOPERATEprivilege is essential for pausing and resuming pipes. This privilege is more specific than general object access privileges likeSELECTorUSAGEand is tailored for operational control. * Granting the OPERATE Privilege:To grant theOPERATEprivilege on a pipe, an administrator or a user with the necessary grants can execute the SQL command: GRANTOPERATEONPIPE <pipe_name>TOROLE <role_name>; * Pausing and Resuming Pipes:Once theOPERATEprivilege is granted, the user or role can pause the pipe using: ALTERPIPE <pipe_name>SETPIPE_EXECUTION_PAUSED=TRUE; To resume the pipe, they use: ALTERPIPE <pipe_name>SETPIPE_EXECUTION_PAUSED=FALSE; Reference:For more information on pipe operations and privileges, you can refer to Snowflake's official documentation on pipes and security access control: https://docs.snowflake.com/en/sql-reference/sql/grant-privilege.html and https://docs.snowflake.com/en/user-guide/data-pipelines-intro.html#managing-pipes
Question 70
Which of the following is the Snowflake Account_Usage.Metering_History view used for?
Correct Answer: A
The Snowflake Account_Usage.Metering_History view is used to gather the hourly credit usage for an account. This view provides details on the credits consumed by various services within Snowflake for the last 365 days1.