Practice Tests COF-C02 - Mock Exam 3 Flashcards
True or False
The search optimization service uses a persistent data structure
True
The search optimization service uses a persistent data structure as an optimized search access path to speed up point lookups. When the data in the table is changed (for example, by loading new data sets or performing their DML operations), the maintenance service updates the search access path to reflect the changes. The search optimization configuration on a table and the maintenance service are transparent to the users.
https://docs.snowflake.com/en/user-guide/search-optimization-service
True or False
s3:ListBucket is needed to unload data to S3 location
FALSE
Snowflake requires s3:DeleteObject & s3:PutObject permissions on the target S3 bucket.
https://docs.snowflake.com/en/user-guide/data-unload-s3#configuring-an-s3-bucket-for-unloading-data
Can VARIANT data type be used as clustering key?
NO
Clustering keys can be of any data type except GEOGRAPHY, VARIANT, OBJECT, or ARRAY
https://docs.snowflake.com/en/user-guide/tables-clustering-keys#defining-a-clustering-key-for-a-table
True or False
Regarding Snowflake virtual warehouse’s high availability, Snowflake replicates virtual warehouses across three availability zones.
FALSE
The compute layer, i.e., the virtual warehouses, is not replicated. The virtual warehouses do not permanently store data and thus don’t require replication.
Snowflake typically runs each virtual warehouse in a single availability zone. However, in case of an availability zone failure, Snowflake’s cloud services layer can re-provision impacted warehouses in a different availability zone.
https://developers.snowflake.com/wp-content/uploads/2021/06/Snowflake-High-Availability-for-Data-Apps-Whitepaper.pdf
True or False
How frequently the base table is queried drive the costs associated with materialized view maintenance
FALSE
The costs of keeping data in materialized views are impacted by
1) The number of materialized views created for each base table.
2) The extent of data changes occurring in these materialized views when changes are made to the base table.
3) The number of these materialized views with a clustering key is defined.
https://docs.snowflake.com/en/user-guide/views-materialized#label-materialized-views-maintenance-billing
True or False
Tasks can be cloned.
TRUE
Virtual warehouses & Share objects cannot be cloned.
Tables, Schemas & Databases can be cloned.
Other objects that can be cloned include Stages, File Formats, Tasks, Sequences, and Streams.
https://docs.snowflake.com/en/user-guide/object-clone
True or False
After a virtual warehouse has been suspended by a resource monitor, an account administrator can resume the virtual warehouse.
FALSE
If a monitor has a Suspend or Suspend Immediately action, and its used credits hit the threshold for the action, any warehouses assigned to the monitor are put on hold and can’t be used again until one of the following happens:
- The next interval starts as per the monitor configuration. A monitor credit limit is applicable within a defined time interval (days, months, etc.)
- The credit quota for the monitor is increased.
- The credit threshold needed to suspend is increased.
- The virtual warehouse is removed from the monitor configuration (does not apply to account-level monitors)
- The monitor is dropped altogether.
https://docs.snowflake.com/en/user-guide/resource-monitors
True or False
Privileges can be granted on securable objects.
TRUE
Objects or entities that can be granted privileges are called securable objects.
Each securable object can be assigned a set of rights. Privileges can only be granted to roles; they cannot be granted directly to individual users. Therefore, it is possible to grant roles to other users or other roles.
https://docs.snowflake.com/en/user-guide/security-access-control-overview
True or False
Transient tables can be cloned to permanent tables.
FALSE
Transient tables can NOT be cloned to a permanent table.
Doing so will typically show the following error “Transient object cannot be cloned to a permanent object.”
However, a transient table may be cloned to a transient table or another temporary table.
What objects may be shared via direct data sharing?
You can share the following Snowflake objects:
Databases
Tables
Dynamic tables
External tables
Apache Iceberg™ tables
Secure views
Secure materialized views
Secure user-defined functions (UDFs)
https://docs.snowflake.com/en/user-guide/data-sharing-intro
True or False
If a database or a schema Is cloned, the child object privileges are automatically copied.
TRUE
A cloned object does not inherit any privileges from its source object; for instance, a cloned table does not inherit any privileges from its source table.
However, if a database or schema is cloned, privileges are inherited by the child objects.
https://docs.snowflake.com/en/user-guide/object-clone#access-control-privileges-for-cloned-objects
What is the minimum Snowflake edition required for securely sharing data across regions and cloud platforms (via replication)?
Standard
Database sharing across regions and clouds (via replication) is supported in all Snowflake editions; thus, the minimum edition that supports it is the Standard edition.
https://docs.snowflake.com/en/user-guide/intro-editions.html
True or False
Add or delete data contribute to total storage when cloning objects.
TRUE
When tables, schemas, or databases are cloned, the cloning operation does not contribute to total storage until data manipulation language (DML) operations are performed on the source or target, which modify or delete existing data or add additional data.
https://docs.snowflake.com/en/user-guide/tables-storage-considerations#label-cloning-tables
True or False
SECURITYADMIN can create & manage users
TRUE
The USERADMIN role is typically meant for creating and managing users.
However, the privileges of the USERADMIN role are inherited by SECURITYADMIN and ACCOUNTADMIN; therefore, they also get the privileges to create users. ACCOUNTADMIN is the most powerful role anyway and can do anything in a Snowflake account.
https://docs.snowflake.com/en/user-guide/security-access-control-overview#system-defined-roles.
True or False
The data in the views in the INFORMATION_SCHEMA can have a latency of up to 3 hours.
FALSE
The data provided via the INFORMATION_SCHEMA views is real-time, and there is no latency in the information provided. So, if you are asked which schema should be used if there is a requirement to view real-time data, then the views in INFORMATION SCHEMA should be used as they contain real-time information.
https://docs.snowflake.com/en/sql-reference/account-usage#differences-between-account-usage-and-information-schema