Practice Tests COF-C02 - Mock Exam 1 Flashcards
Which of the following privileges allows a user in a consumer account to create a database from a share? Select two.
- IMPORT SHARE priv
- SYSADMIN role
- ACCOUNTADMIN role
- SECURITY ADMIN role
A user in a consumer account can create a database from the Share if they have the ACCOUNTADMIN role OR the IMPORT SHARE privileges
https://docs.snowflake.com/en/user-guide/data-share-consumers
Data Sharing
An ACCOUNTADMIN can see the results of any query executed by any user in a Snowflake system.
False
You can only view results for queries you have personally executed. For example, as an administrator, If you have permission to view queries run by another user, the Query Detail page displays the query’s details but not the actual query result for data privacy reasons.
Can Named Internal Stage be cloned?
Named Internal Stages cannot be cloned.
When a database or schema is cloned, any Snowpipe that points to a Named Internal Stage is not cloned.
Named External Stages can be cloned. Since a table stage is associated with a table, it is automatically cloned when the table is cloned. Additionally, external tables cannot be cloned either. Databases, Schema, Tables, etc., can be cloned.
https://docs.snowflake.com/en/user-guide/object-clone#cloning-and-stages
A data consumer has created a read-only database on a Share object shared by a data provider. The data provider adds an object to the Share. The data consumer needs to REFRESH. the SHARE?
No.
All new objects added to a share object by the data provider automatically become accessible to the consumer
https://docs.snowflake.com/en/user-guide/data-sharing-intro#what-is-a-share
In Snowsight (Snowflake web user interface), you can execute only one query at a given time.
False
Multiple worksheets can be opened in Snowsight, each with a different query. The queries continue to execute even if the worksheets are inactive; thus, multiple queries can be executed simultaneously. https://docs.snowflake.com/en/user-guide/ui-snowsight
Which Snowflake editions support database failover and failback between Snowflake accounts, thus providing business continuity and disaster recovery?
Database failover and failback between Snowflake accounts are provided first in the Business Critical edition and are also available in the Virtual Private Snowflake (VPS) edition.
https://docs.snowflake.com/en/user-guide/intro-editions.html
Which of the following strategies should be used to optimize the performance of a virtual warehouse?
- Increase VW size
- Suspend the VW
- Increase disc cache
- configure MAX_CONCURRENCY_LEVEL
- Reduce queuing
The following strategies may be applied to improve the performance of a virtual warehouse.
- Reduce queuing
- Resolve memory spillage.
- Increase warehouse size.
- Try query acceleration.
- Optimize the warehouse cache.
- Limit concurrently running queries.
https://docs.snowflake.com/en/user-guide/performance-query-warehouse
True/False: It is possible to disable failsafe entirely for a Snowflake account.
Once the Time Travel period ends, Snowflake keeps the data for a further 7-day period as further protection. This fail-safe can not be disabled or configured. You can NOT change it for a Snowflake account, database, schema, or table.
Concurrent queries is suitable for scaling up a virtual warehouse to a larger size?
NO
Based on the complexity of the queries and the desired performance, a virtual warehouse can be scaled up or down. In general, increasing the virtual warehouse size improves query speed for CPU-intensive queries. On the other hand, scaling up is ineffective when dealing with a high number of concurrent users or queries. Instead, a multi-cluster virtual warehouse (scaling out) is utilized to accommodate an increased number of users and queries
https://docs.snowflake.com/en/user-guide/warehouses-considerations
True or False: A reader account can be used to share data with a non-Snowflake user or a non-Snowflake organization.
True
Sharing data with a non-Snowflake user or organization is possible by creating a reader account. This reader account is created by the data provider solely for sharing purposes.
https://docs.snowflake.com/en/user-guide/data-sharing-reader-create
True or False: Files already loaded from a stage to a table can be loaded again into a cloned table.
True
Cloning doesn’t copy the load metadata of a cloned table. Therefore, the load metadata for a cloned table would be empty. Thus, files already loaded for the source table can be loaded again into the cloned table.
Which objects are not supported by Search Optimization?
Search optimization does not support
- External tables.
- Materialized views.
- Columns defined with a COLLATE clause.
- Column concatenation.
- Analytical expressions.
- Casts on table columns (except for fixed-point numbers cast to strings).
https://docs.snowflake.com/en/user-guide/search-optimization-service#queries-not-supported-by-the-search-optimization-service
How does a secure UDF differ from a different typical UDF?
Specific SQL UDF optimizations may allow data that should be hidden from users to be accessed indirectly via different techniques. Secure UDFs do not use these SQL optimizations, ensuring that users have no access to the underlying data, even indirectly. Furthermore, Secure UDFs allow only authorized users to see the definition and information of secure UDFs (i.e., users who are granted the role that owns the UDF).
https://docs.snowflake.com/en/developer-guide/secure-udf-procedure
Is data encrypted automatically at the client machine before being transmitted to the Snowflake internal stage
Yes
Data is encrypted automatically at the client machine before being transmitted to the Snowflake internal stage. Once the data is in an internal stage, it is stored encrypted. This is part of the end-to-end encryption managed by Snowflake.
https://docs.snowflake.com/en/user-guide/security-encryption-end-to-end
Dynamic Data Masking provides what sort of security in Snowflake?
Snowflake supports masking policies that may be applied to columns and enforced at the column level to provide column-level security. Column-level security is achieved by dynamic data masking or external Tokenization.
https://docs.snowflake.com/en/user-guide/security-column
Which role must be granted to a Snowflake user to allow them to create new Snowflake accounts?
The ORGADMIN role performs organization-specific tasks like listing all accounts and creating new ones.
https://docs.snowflake.com/en/user-guide/organizations-gs#enabling-the-orgadmin-role-in-an-account
Does Materialized views need to be refreshed manually?
No
A materialized view is a view that pre-computes data based on a SELECT query. The query’s results are pre-computed and physically stored to enhance performance for similar queries that are executed in the future. When the underlying table is updated, the materialized view refreshes automatically, requiring no additional maintenance. Snowflake-managed services perform the update in the background transparent to the user without interfering with the user’s experience.
https://docs.snowflake.com/en/user-guide/views-materialized
For how long a query remains visible on the query history page in the Snowsight interface?
The query history page can show the history of queries executed in the last 14 days.
True or False?
Snowflake uses AES - 128-bit encryption to encrypt data at rest.
False
Snowflake-managed keys are rotated regularly (at 30-day intervals), and an annual rekeying process re-encrypts data with new keys. The data encryption and key management processes are entirely transparent to the users. Snowflake uses AES 256-bit encryption to encrypt data at rest.
True or False?
A user with the SYSADMIN role can create a new virtual warehouse.
True
The SYSADMIN role can create and manage most Snowflake objects, including databases, tables, views, virtual warehouses, etc. However, the SYSADMIN role does not have the privileges to create new users or roles.
https://docs.snowflake.com/en/user-guide/security-access-control-overview#system-defined-roles.
True or False
Streams can be used with directory tables.
True
Streams can be used with directory tables to easily track which files have been added, removed, or changed. This is done by creating a stream on top of the stage object.
https://docs.snowflake.com/en/user-guide/data-load-dirtables-manage#streams-on-directory-tables
True or False: The functions provided in INFORMATION_SCHEMA can be used to view account-level information.
True
The INFORMATION_SCHEMA provides data on the objects in the parent database of the INFORMATION_SCHEMA. It also provides data on account-level objects such as roles, warehouses, and databases.
https://docs.snowflake.com/en/sql-reference/info-schema#information-schema-views-and-table-functions
True or False
Snowflake billing is based on the amount of data processed by queries
False
Snowflake doesn’t charge on how much data a query processed.
https://docs.snowflake.com/en/user-guide/cost-understanding-overall#how-are-costs-incurred
True or False
If a virtual warehouse is suspended, it does not contribute to the cost.
True
Virtual warehouses in a resumed (active) state contribute to the costs. However, it does not matter if the virtual warehouse is not running a query; if it is resumed, it contributes to the costs.
https://docs.snowflake.com/en/user-guide/cost-understanding-compute Snowflake