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