COF-C02 Exam Questions

Total 498 Questions

Last Updated Exam : 16-Dec-2024

Topic 1: Exam pool A

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?


A.

Query against the result set cache


B.

Query against a virtual warehouse cache


C.

Query against the most-recently created micro-partition


D.

Query against the metadata excite





D.
  

Query against the metadata excite



Which of the following conditions must be met in order to return results from the results cache? (Select TWO).


A.

The user has the appropriate privileges on the objects associated with the query


B.

Micro-partitions have been reclustered since the query was last run


C.

The new query is run using the same virtual warehouse as the previous query


D.

The query includes a User Defined Function (UDF)


E.

The query has been run within 24 hours of the previously-run query





A.
  

The user has the appropriate privileges on the objects associated with the query



E.
  

The query has been run within 24 hours of the previously-run query



How would you determine the size of the virtual warehouse used for a task?


A.

Root task may be executed concurrently (i.e. multiple instances), it is recommended to leave some margins in the execution window to avoid missing instances of execution.


B.

Querying (select) the size of the stream content would help determine the warehouse size. For example, if querying large stream content, use a larger warehouse size.


C.

If using the stored procedure to execute multiple SQL statements, it's best to test run the stored procedure separately to size the compute resource first.


D.

Since task infrastructure is based on running the task body on schedule, it's recommended to configure the virtual warehouse for automatic concurrency handling using Multi-cluster warehouse (MCW) to match the task schedule





C.
  

If using the stored procedure to execute multiple SQL statements, it's best to test run the stored procedure separately to size the compute resource first.



A user needs to create a materialized view in the schema MYDB.MYSCHEMA. Which statements will provide this access?


A.

GRANT ROLE MYROLE TO USER USER1;
CREATE MATERIALIZED VIEW ON SCHEMA MYDB.MYSCHEMA TO ROLE MYROLE;


B.

GRANT ROLE MYROLE TO USER USER1;
CREATE MATERIALIZED VIEW ON SCHEMA MYDB.MYSCHEMA TO USER USER1;


C.

GRANT ROLE MYROLE TO USER USER1;
CREATE MATERIALIZED VIEW ON SCHEMA MYDB.MYSCHEMA TO USER1;


D.

GRANT ROLE MYROLE TO USER USER1;
CREATE MATERIALIZED VIEW ON SCHEMA MYDB.MYSCHEMA TO MYROLE;





B.
  

GRANT ROLE MYROLE TO USER USER1;
CREATE MATERIALIZED VIEW ON SCHEMA MYDB.MYSCHEMA TO USER USER1;



What data is stored in the Snowflake storage layer? (Select TWO).


A.

Snowflake parameters


B.

Micro-partitions


C.

Query history


D.

Persisted query results


E.

Standard and secure view results





B.
  

Micro-partitions



D.
  

Persisted query results



The Information Schema and Account Usage Share provide storage information for which of the following objects? (Choose three.)


A.

Users


B.

Tables


C.

Databases


D.

Internal Stages





A.
  

Users



B.
  

Tables



C.
  

Databases



Which stage type can be altered and dropped?


A.

Database stage


B.

External stage


C.

Table stage


D.

User stage





C.
  

Table stage



https://docs.snowflake.com/en/user-guide/data-load-local-file-system-createstage.html#table-stages

What happens to the underlying table data when a CLUSTER BY clause is added to a Snowflake table?


A.

Data is hashed by the cluster key to facilitate fast searches for common data values


B.

Larger micro-partitions are created for common data values to reduce the number of partitions that must be scanned


C.

Smaller micro-partitions are created for common data values to allow for more
parallelism


D.

Data may be colocated by the cluster key within the micro-partitions to improve pruning performance





D.
  

Data may be colocated by the cluster key within the micro-partitions to improve pruning performance



Which of the following indicates that it may be appropriate to use a clustering key for a table? (Select TWO).


A.

The table contains a column that has very low cardinality


B.

DML statements that are being issued against the table are blocked


C.

The table has a small number of micro-partitions


D.

Queries on the table are running slower than expected


E.

The clustering depth for the table is large





A.
  

The table contains a column that has very low cardinality



E.
  

The clustering depth for the table is large



The fail-safe retention period is how many days?


A.

1 day


B.

7 days


C.

45 days


D.

90 days





B.
  

7 days



https://docs.snowflake.com/en/user-guide/data-failsafe.html


Page 3 out of 50 Pages
Previous