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
You can upload data into which stages using the PUT command?
The PUT command uploads data from an on-premises system to an internal stage (including named internal stages, table stages & user stages).
The GET command is used to download data from an internal stage to an on-premises system.
To download or upload data to an external stage, cloud provider utilities or other tools are used to interact with data in the cloud storage pointed to by the external stage.
https://docs.snowflake.com/en/user-guide/data-unload-overview#bulk-unloading-process
What is the minimum Snowflake edition that supports Column Level Masking?
Enterprise
The Enterprise edition has several additional capabilities not provided in the Standard edition. These include multi-cluster virtual warehouses, column-level masking, row access policies, materialized views, and search optimization.
https://docs.snowflake.com/en/user-guide/intro-editions.html
What is the maximum period for which Time Travel is permitted for Transient tables?
1 day
Transient and Temporary tables in Snowflake support Time Travel for up to 1 day, irrespective of the Snowflake edition used.
https://docs.snowflake.com/en/user-guide/tables-temp-transient
What is the minimum required role to create a trial account through Partner Connect?
Only users with the ACCOUNTADMIN role and a verified email address in Snowflake can access Partner Connect.
https://docs.snowflake.com/en/user-guide/ecosystem-partner-connect#connecting-with-a-snowflake-partner
What happens to the MV when columns are changed or dropped from a base table with a materialized view on top
When columns are changed or dropped from a base table with a materialized view on top, the change is not propagated to the materialized view.
The materialized view is suspended and can NOT be resumed. It must be re-created with the corrected definition that reflects the changed/dropped columns.
https://docs.snowflake.com/en/user-guide/views-materialized#changing-or-dropping-columns-in-the-base-table
True or False
When a Snowflake account shares data with another Snowflake account, The data provider is charged for the compute charges for queries the data consumer runs.
FALSE
Since the provider account stores and pays for the data storage, the data consumer doesn’t have to pay anything extra for storage.
However, the data consumer pays for the compute used to run queries on shared data. When queries are run on shared data, the compute of the data consumer is used
To create an external UDF, what is the minimum Snowflake edition required?
Standard
True or False
Each micro-partition generally contains 50MB to 500MB of uncompressed data.
True
Micro-partitions are small and typically store 50 MB to 500 MB of uncompressed data.
https://docs.snowflake.com/en/user-guide/tables-clustering-micropartitions.html
True or False
Consumer accounts cannot clone a shared database
True
Consumer accounts can only access and query data but cannot add, modify, or create database objects to a shared database.
Consumer accounts cannot clone a shared database, its schemas, or any of its tables.
Consumer accounts cannot use Time Travel on the shared data.
Consumer accounts cannot further share a shared database.
https://docs.snowflake.com/en/user-guide/data-share-consumers#general-limitations-for-shared-databases