ExamGecko
Home Home / Snowflake / SnowPro Core

Snowflake SnowPro Core Practice Test - Questions Answers, Page 30

Question list
Search
Search

A Snowflake user has two tables that contain numeric values and is trying to find out which values are present in both tables. Which set operator should be used?

A.
INTERSECT
A.
INTERSECT
Answers
B.
MFRCK
B.
MFRCK
Answers
C.
MINUS
C.
MINUS
Answers
D.
UNION
D.
UNION
Answers
Suggested answer: A

Explanation:

To find out which numeric values are present in both tables, the INTERSECT set operator should be used.This operator returns rows from one query's result set which also appear in another query's result set, effectively finding the common elements between the two tables45.

What type of columns does Snowflake recommend to be used as clustering keys? (Select TWO).

A.
A VARIANT column
A.
A VARIANT column
Answers
B.
A column with very low cardinality
B.
A column with very low cardinality
Answers
C.
A column with very high cardinality
C.
A column with very high cardinality
Answers
D.
A column that is most actively used in selective filters
D.
A column that is most actively used in selective filters
Answers
E.
A column that is most actively used in join predicates
E.
A column that is most actively used in join predicates
Answers
Suggested answer: C, D

Explanation:

Snowflake recommends using columns with very high cardinality and those that are most actively used in selective filters as clustering keys. High cardinality columns have a wide range of unique values, which helps in evenly distributing the data across micro-partitions. Columns used in selective filters help in pruning the number of micro-partitions to scan, thus improving query performance.

Reference: Based on general database optimization principles.

Which of the following describes the Snowflake Cloud Services layer?

A.
Coordinates activities in the Snowflake account
A.
Coordinates activities in the Snowflake account
Answers
B.
Executes queries submitted by the Snowflake account users
B.
Executes queries submitted by the Snowflake account users
Answers
C.
Manages quotas on the Snowflake account storage
C.
Manages quotas on the Snowflake account storage
Answers
D.
Manages the virtual warehouse cache to speed up queries
D.
Manages the virtual warehouse cache to speed up queries
Answers
Suggested answer: A

Explanation:

The Snowflake Cloud Services layer coordinates activities within the Snowflake account. It is responsible for tasks such as authentication, infrastructure management, metadata management, query parsing and optimization, and access control.

Reference: Based on general cloud database architecture knowledge.

What does Snowflake recommend regarding database object ownership? (Select TWO).

A.
Create objects with ACCOUNTADMIN and do not reassign ownership.
A.
Create objects with ACCOUNTADMIN and do not reassign ownership.
Answers
B.
Create objects with SYSADMIN.
B.
Create objects with SYSADMIN.
Answers
C.
Create objects with SECURITYADMIN to ease granting of privileges later.
C.
Create objects with SECURITYADMIN to ease granting of privileges later.
Answers
D.
Create objects with a custom role and grant this role to SYSADMIN.
D.
Create objects with a custom role and grant this role to SYSADMIN.
Answers
E.
Use only MANAGED ACCESS SCHEMAS for66 objects owned by ACCOUNTADMIN.
E.
Use only MANAGED ACCESS SCHEMAS for66 objects owned by ACCOUNTADMIN.
Answers
Suggested answer: B, D

Explanation:

Snowflake recommends creating objects with a role that has the necessary privileges and is not overly permissive. SYSADMIN is typically used for managing system-level objects and operations. Creating objects with a custom role and granting this role to SYSADMIN allows for more granular control and adherence to the principle of least privilege.

Reference: Based on best practices for database object ownership and role management.

If a multi-cluster warehouse is using an economy scaling policy, how long will queries wait in the queue before another cluster is started?

A.
1 minute
A.
1 minute
Answers
B.
2 minutes
B.
2 minutes
Answers
C.
6 minutes
C.
6 minutes
Answers
D.
8 minutes
D.
8 minutes
Answers
Suggested answer: B

Explanation:

In a multi-cluster warehouse with an economy scaling policy, queries will wait in the queue for 2 minutes before another cluster is started. This is to minimize costs by allowing queries to queue up for a short period before adding additional compute resources.

Reference: [COF-C02] SnowPro Core Certification Exam Study Guide

How can a Snowflake user access a JSON object, given the following table? (Select TWO).

A.
src:salesperson.name
A.
src:salesperson.name
Answers
B.
src:sa1esPerson. name
B.
src:sa1esPerson. name
Answers
C.
src:salesperson.Name
C.
src:salesperson.Name
Answers
D.
SRC:salesperson.name
D.
SRC:salesperson.name
Answers
E.
SRC:salesperson.Name
E.
SRC:salesperson.Name
Answers
Suggested answer: A, C

Explanation:

To access a JSON object in Snowflake, dot notation is used where the path to the object is specified after the column name containing the JSON data. Both lowercase and uppercase can be used for attribute names, so both ''name'' and ''Name'' are valid.

Reference: [COF-C02] SnowPro Core Certification Exam Study Guide

What happens when a database is cloned?

A.
It does not retain any privileges granted on the source object.
A.
It does not retain any privileges granted on the source object.
Answers
B.
It replicates all granted privileges on the corresponding source objects.
B.
It replicates all granted privileges on the corresponding source objects.
Answers
C.
It replicates all granted privileges on the corresponding child objects.
C.
It replicates all granted privileges on the corresponding child objects.
Answers
D.
It replicates all granted privileges on the corresponding child schema objects.
D.
It replicates all granted privileges on the corresponding child schema objects.
Answers
Suggested answer: A

Explanation:

When a database is cloned in Snowflake, it does not retain any privileges that were granted on the source object. The clone will need to have privileges reassigned as necessary for users to access it.

Reference: [COF-C02] SnowPro Core Certification Exam Study Guide

Which native data types are used for storing semi-structured data in Snowflake? (Select TWO)

A.
NUMBER
A.
NUMBER
Answers
B.
OBJECT
B.
OBJECT
Answers
C.
STRING
C.
STRING
Answers
D.
VARCHAR
D.
VARCHAR
Answers
E.
VARIANT
E.
VARIANT
Answers
Suggested answer: B, E

Explanation:

Snowflake supports semi-structured data types, which include OBJECT and VARIANT. These data types are capable of storing JSON-like data structures, allowing for flexibility in data representation.OBJECT can directly contain VARIANT, and thus indirectly contain any other data type, including itself1.

Snowflake's hierarchical key mode includes which keys? (Select TWO).

A.
Account master keys
A.
Account master keys
Answers
B.
Database master keys
B.
Database master keys
Answers
C.
File keys
C.
File keys
Answers
D.
Secure view keys
D.
Secure view keys
Answers
E.
Schema master keys
E.
Schema master keys
Answers
Suggested answer: A, C

Explanation:

Snowflake's hierarchical key model includes several levels of keys, where Account master keys and File keys are part of this hierarchy.Account master keys are used to encrypt all the data within an account, while File keys are used to encrypt individual files within the database2.

How does Snowflake recommend handling the bulk loading of data batches from files already available in cloud storage?

A.
Use Snowpipe.
A.
Use Snowpipe.
Answers
B.
Use the INSERT command.
B.
Use the INSERT command.
Answers
C.
Use an external table.
C.
Use an external table.
Answers
D.
Use the COPY command.
D.
Use the COPY command.
Answers
Suggested answer: D

Explanation:

Snowflake recommends using the COPY command for bulk loading data batches from files already available in cloud storage.This command allows for efficient and large-scale data loading operations from files staged in cloud storage into Snowflake tables3.

Total 627 questions
Go to page: of 63