ExamGecko
Home Home / Snowflake / COF-C02

Snowflake COF-C02 Practice Test - Questions Answers, Page 25

Question list
Search
Search

Which feature allows a user the ability to control the organization of data in a micro-partition?

A.
Range Partitioning
A.
Range Partitioning
Answers
B.
Search Optimization Service
B.
Search Optimization Service
Answers
C.
Automatic Clustering
C.
Automatic Clustering
Answers
D.
Horizontal Partitioning
D.
Horizontal Partitioning
Answers
Suggested answer: C

Explanation:

Automatic Clustering is a feature that allows users to control the organization of data within micro-partitions in Snowflake.By defining clustering keys, Snowflake can automatically reorganize the data in micro-partitions to optimize query performance1.

A Snowflake user executed a query and received the results. Another user executed the same query 4 hours later. The data had not changed.

What will occur?

A.
No virtual warehouse will be used, data will be read from the result cache.
A.
No virtual warehouse will be used, data will be read from the result cache.
Answers
B.
No virtual warehouse will be used, data will be read from the local disk cache.
B.
No virtual warehouse will be used, data will be read from the local disk cache.
Answers
C.
The default virtual warehouse will be used to read all data.
C.
The default virtual warehouse will be used to read all data.
Answers
D.
The virtual warehouse that is defined at the session level will be used to read all data.
D.
The virtual warehouse that is defined at the session level will be used to read all data.
Answers
Suggested answer: A

Explanation:

Snowflake maintains a result cache that stores the results of every query for 24 hours.If the same query is executed again within this time frame and the data has not changed, Snowflake will retrieve the data from the result cache instead of using a virtual warehouse to recompute the results2.

Which statements reflect key functionalities of a Snowflake Data Exchange? (Choose two.)

A.
If an account is enrolled with a Data Exchange, it will lose its access to the Snowflake Marketplace.
A.
If an account is enrolled with a Data Exchange, it will lose its access to the Snowflake Marketplace.
Answers
B.
A Data Exchange allows groups of accounts to share data privately among the accounts.
B.
A Data Exchange allows groups of accounts to share data privately among the accounts.
Answers
C.
A Data Exchange allows accounts to share data with third, non-Snowflake parties.
C.
A Data Exchange allows accounts to share data with third, non-Snowflake parties.
Answers
D.
Data Exchange functionality is available by default in accounts using the Enterprise edition or higher.
D.
Data Exchange functionality is available by default in accounts using the Enterprise edition or higher.
Answers
E.
The sharing of data in a Data Exchange is bidirectional. An account can be a provider for some datasets and a consumer for others.
E.
The sharing of data in a Data Exchange is bidirectional. An account can be a provider for some datasets and a consumer for others.
Answers
Suggested answer: B, E

Explanation:

A Snowflake Data Exchange allows groups of accounts to share data privately among the accounts (B), and it supports bidirectional sharing, meaning an account can be both a provider and a consumer of data (E).This facilitates secure and governed data collaboration within a selected group3.

Which database objects can be shared with the Snowflake secure data sharing feature? (Choose two.)

A.
Files
A.
Files
Answers
B.
External tables
B.
External tables
Answers
C.
Secure User-Defined Functions (UDFs)
C.
Secure User-Defined Functions (UDFs)
Answers
D.
Sequences
D.
Sequences
Answers
E.
Streams
E.
Streams
Answers
Suggested answer: B, C

Explanation:

Snowflake's secure data sharing feature allows sharing of certain database objects with other Snowflake accounts.Among the options provided, external tables and secure UDFs can be shared

Query parsing and compilation occurs in which architecture layer of the Snowflake Cloud Data Platform?

A.
Cloud services layer
A.
Cloud services layer
Answers
B.
Compute layer
B.
Compute layer
Answers
C.
Storage layer
C.
Storage layer
Answers
D.
Cloud agnostic layer
D.
Cloud agnostic layer
Answers
Suggested answer: A

Explanation:

Query parsing and compilation in Snowflake occur within the cloud services layer.This layer is responsible for various management tasks, including query compilation and optimization

Which of the following is the Snowflake Account_Usage.Metering_History view used for?

A.
Gathering the hourly credit usage for an account
A.
Gathering the hourly credit usage for an account
Answers
B.
Compiling an account's average cloud services cost over the previous month
B.
Compiling an account's average cloud services cost over the previous month
Answers
C.
Summarizing the throughput of Snowpipe costs for an account
C.
Summarizing the throughput of Snowpipe costs for an account
Answers
D.
Calculating the funds left on an account's contract
D.
Calculating the funds left on an account's contract
Answers
Suggested answer: A

Explanation:

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.

Which SQL command can be used to see the CREATE definition of a masking policy?

A.
SHOW MASKING POLICIES
A.
SHOW MASKING POLICIES
Answers
B.
DESCRIBE MASKING POLICY
B.
DESCRIBE MASKING POLICY
Answers
C.
GET_DDL
C.
GET_DDL
Answers
D.
LIST MASKING POLICIES
D.
LIST MASKING POLICIES
Answers
Suggested answer: C

Explanation:

The SQL command GET_DDL can be used to retrieve the CREATE definition of a masking policy in Snowflake.This command generates the DDL statement required to recreate the masking policy

Which statement describes pruning?

A.
The filtering or disregarding of micro-partitions that are not needed to return a query.
A.
The filtering or disregarding of micro-partitions that are not needed to return a query.
Answers
B.
The return of micro-partitions values that overlap with each other to reduce a query's runtime.
B.
The return of micro-partitions values that overlap with each other to reduce a query's runtime.
Answers
C.
A service that is handled by the Snowflake Cloud Services layer to optimize caching.
C.
A service that is handled by the Snowflake Cloud Services layer to optimize caching.
Answers
D.
The ability to allow the result of a query to be accessed as if it were a table.
D.
The ability to allow the result of a query to be accessed as if it were a table.
Answers
Suggested answer: A

Explanation:

Pruning in Snowflake refers to the process of filtering or disregarding micro-partitions that are not needed to satisfy the conditions of a query.This optimization technique helps reduce the amount of data scanned, thereby improving query performance

How can a user change which columns are referenced in a view?

A.
Modify the columns in the underlying table
A.
Modify the columns in the underlying table
Answers
B.
Use the ALTER VIEW command to update the view
B.
Use the ALTER VIEW command to update the view
Answers
C.
Recreate the view with the required changes
C.
Recreate the view with the required changes
Answers
D.
Materialize the view to perform the changes
D.
Materialize the view to perform the changes
Answers
Suggested answer: C

Explanation:

In Snowflake, to change the columns referenced in a view, the view must be recreated with the required changes. TheALTER VIEWcommand does not allow changing the definition of a view; it can only be used to rename a view, convert it to or from a secure view, or add, overwrite, or remove a comment for a view.Therefore, the correct approach is to drop the existing view and create a new one with the desired column references.

Which commands should be used to grant the privilege allowing a role to select data from all current tables and any tables that will be created later in a schema? (Choose two.)

A.
grant USAGE on all tables in schema DB1.SCHEMA to role MYROLE;
A.
grant USAGE on all tables in schema DB1.SCHEMA to role MYROLE;
Answers
B.
grant USAGE on future tables in schema DB1.SCHEMA to role MYROLE;
B.
grant USAGE on future tables in schema DB1.SCHEMA to role MYROLE;
Answers
C.
grant SELECT on all tables in schema DB1.SCHEMA to role MYROLE;
C.
grant SELECT on all tables in schema DB1.SCHEMA to role MYROLE;
Answers
D.
grant SELECT on future tables in schema DB1.SCHEMA to role MYROLE;
D.
grant SELECT on future tables in schema DB1.SCHEMA to role MYROLE;
Answers
E.
grant SELECT on all tables in database DB1 to role MYROLE;
E.
grant SELECT on all tables in database DB1 to role MYROLE;
Answers
F.
grant SELECT on future tables in database DB1 to role MYROLE;
F.
grant SELECT on future tables in database DB1 to role MYROLE;
Answers
Suggested answer: C, D

Explanation:

To grant a role the privilege to select data from all current and future tables in a schema, two separate commands are needed.The first command grants theSELECTprivilege on all existing tables within the schema, and the second command grants theSELECTprivilege on all tables that will be created in the future within the same schema.

Total 716 questions
Go to page: of 72