ExamGecko
Home Home / Snowflake / COF-C02

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

Question list
Search
Search

What is a directory table in Snowflake?

A.
A separate database object that is used to store file-level metadata
A.
A separate database object that is used to store file-level metadata
Answers
B.
An object layered on a stage that is used to store file-level metadata
B.
An object layered on a stage that is used to store file-level metadata
Answers
C.
A database object with grantable privileges for unstructured data tasks
C.
A database object with grantable privileges for unstructured data tasks
Answers
D.
A Snowflake table specifically designed for storing unstructured files
D.
A Snowflake table specifically designed for storing unstructured files
Answers
Suggested answer: B

Explanation:

A directory table in Snowflake is an object layered on a stage that is used to store file-level metadata.It is not a separate database object but is conceptually similar to an external table because it stores metadata about the data files in the stage5.

Which Snowflake command can be used to unload the result of a query to a single file?

A.
Use COPY INTO <external stage> followed by a GET command to download the file.
A.
Use COPY INTO <external stage> followed by a GET command to download the file.
Answers
B.
Use COPY INTO <internal stage> followed by a put command to download the file.
B.
Use COPY INTO <internal stage> followed by a put command to download the file.
Answers
C.
Use COPY INTO <internal stage> with SINGLE = TRUE followed by a GET command to download the file.
C.
Use COPY INTO <internal stage> with SINGLE = TRUE followed by a GET command to download the file.
Answers
D.
Use COPY INTO <external stage> with SINGLE = TRUE followed by a PUT command to download the file.
D.
Use COPY INTO <external stage> with SINGLE = TRUE followed by a PUT command to download the file.
Answers
Suggested answer: C

Explanation:

The Snowflake command to unload the result of a query to a single file isCOPY INTO <internal stage> with SINGLE = TRUEfollowed by aGETcommand to download the file.This command unloads the query result into a single file in the specified internal stage

When working with a managed access schema, who has the OWNERSHIP privilege of any tables added to the schema?

A.
The database owner
A.
The database owner
Answers
B.
The object owner
B.
The object owner
Answers
C.
The schema owner
C.
The schema owner
Answers
D.
The Snowflake user's role
D.
The Snowflake user's role
Answers
Suggested answer: C

Explanation:

In a managed access schema, the schema owner retains the OWNERSHIP privilege of any tables added to the schema.This means that while object owners have certain privileges over the objects they create, only the schema owner can manage privilege grants on these objects1.

When using the ALLOW CLIENT_MFA_CACHING parameter, how long is a cached Multi-Factor Authentication (MFA) token valid for?

A.
1 hour
A.
1 hour
Answers
B.
2 hours
B.
2 hours
Answers
C.
4 hours
C.
4 hours
Answers
D.
8 hours
D.
8 hours
Answers
Suggested answer: C

Explanation:

When using the ALLOW_CLIENT_MFA_CACHING parameter, a cached Multi-Factor Authentication (MFA) token is valid for up to 4 hours.This allows for continuous, secure connectivity without users needing to respond to an MFA prompt at the start of each connection attempt to Snowflake within this timeframe2.

What factors impact storage costs in Snowflake? (Select TWO).

A.
The account type
A.
The account type
Answers
B.
The storage file format
B.
The storage file format
Answers
C.
The cloud region used by the account
C.
The cloud region used by the account
Answers
D.
The type of data being stored
D.
The type of data being stored
Answers
E.
The cloud platform being used
E.
The cloud platform being used
Answers
Suggested answer: A, C

Explanation:

The factors that impact storage costs in Snowflake include the account type (Capacity or On Demand) and the cloud region used by the account.These factors determine the rate at which storage is billed, with different regions potentially having different rates3.

Which Snowflake role can manage any object grant globally, including modifying and revoking grants?

A.
USERADMIN
A.
USERADMIN
Answers
B.
ORGADMIN
B.
ORGADMIN
Answers
C.
SYSADMIN
C.
SYSADMIN
Answers
D.
SECURITYADMIN
D.
SECURITYADMIN
Answers
Suggested answer: D

Explanation:

The SECURITYADMIN role in Snowflake can manage any object grant globally, including modifying and revoking grants.This role has the necessary privileges to oversee and control access to all securable objects within the Snowflake environment4.

Which ACCOUNT_USAGE schema database role provides visibility into policy-related information?

A.
USAGE_VIEWER
A.
USAGE_VIEWER
Answers
B.
GOVERNANCE_VIEWER
B.
GOVERNANCE_VIEWER
Answers
C.
OBJECT_VIEWER
C.
OBJECT_VIEWER
Answers
D.
SECURITY_VIEWER
D.
SECURITY_VIEWER
Answers
Suggested answer: B

Explanation:

The GOVERNANCE_VIEWER role in the ACCOUNT_USAGE schema provides visibility into policy-related information within Snowflake.This role is specifically designed to access views that display object metadata and usage metrics related to governance12.

Which Snowflake data types can be used to build nested hierarchical data? (Select TWO)

A.
INTEGER
A.
INTEGER
Answers
B.
OBJECT
B.
OBJECT
Answers
C.
VARIANT
C.
VARIANT
Answers
D.
VARCHAR
D.
VARCHAR
Answers
E.
LIST
E.
LIST
Answers
Suggested answer: B, C

Explanation:

The Snowflake data types that can be used to build nested hierarchical data are OBJECT and VARIANT.These data types support the storage and querying of semi-structured data, allowing for the creation of complex, nested data structures

How can a dropped internal stage be restored?

A.
Enable Time Travel.
A.
Enable Time Travel.
Answers
B.
Clone the dropped stage.
B.
Clone the dropped stage.
Answers
C.
Execute the UNDROP command.
C.
Execute the UNDROP command.
Answers
D.
Recreate the dropped stage.
D.
Recreate the dropped stage.
Answers
Suggested answer: D

Explanation:

Once an internal stage is dropped in Snowflake, it cannot be recovered or restored using Time Travel or UNDROP commands.The only option is to recreate the dropped stage

Who can grant object privileges in a regular schema?

A.
Object owner
A.
Object owner
Answers
B.
Schema owner
B.
Schema owner
Answers
C.
Database owner
C.
Database owner
Answers
D.
SYSADMIN
D.
SYSADMIN
Answers
Suggested answer: A

Explanation:

In a regular schema within Snowflake, the object owner has the privilege to grant object privileges.The object owner is typically the role that created the object or to whom the ownership of the object has been transferred78.

References = [COF-C02] SnowPro Core Certification Exam Study Guide

Total 716 questions
Go to page: of 72