Snowflake SnowPro Core (COF-C02) — Cloud Data Platform Architecture, Performance, Governance & Data Sharing
High-yield Snowflake SnowPro Core (COF-C02) certification flashcards covering the 3-layer architecture, micro-partitions, Virtual Warehouses, caching layers, Time Travel & Fail-safe, Zero-Copy Cloning, COPY INTO vs. Snowpipe, Streams & Tasks, Secure Data Sharing, Dynamic Data Masking, and RBAC.
- Category
- Project Management, Agile & AI/Data Certifications — PMI PMP, PRINCE2 7th Ed., Scrum (PSM/CSPO) & ITIL 4 + AWS AI/ML, Databricks & Snowflake
- Level
- advanced
- Languages
- en → en
- Cards
- 32
- Markdown
- Snowflake SnowPro Core (COF-C02) — Cloud Data Platform Architecture, Performance, Governance & Data Sharing (.md)
Flashcards (32)
| # | Front (Term / Question) | Back (Definition / Answer) | Example | Multiple-Choice Options |
|---|---|---|---|---|
| 1 | How does the Query Acceleration Service (QAS) differ from Multi-Cluster Warehouses in Snowflake? | Query Acceleration Service offloads large table scans from outlier queries to serverless compute pools, whereas Multi-Cluster Warehouses add clusters for high user concurrency. | Instead of resizing an S warehouse to XL all day just for two unpredictable ad-hoc scan queries, an admin runs `ALTER WAREHOUSE bi_wh SET ENABLE_QUERY_ACCELERATION = TRUE QUERY_ACCELERATION_MAX_SCALE_FACTOR = 8`. |
|
| 2 | Compare Bulk Loading (`COPY INTO <table>`) and Continuous Loading (`Snowpipe`) in Snowflake across compute model, load history deduplication, and billing. | Bulk `COPY INTO` uses customer Virtual Warehouses (64-day load history); Snowpipe (`AUTO_INGEST = TRUE`) uses serverless compute triggered by cloud events (14-day load history). | Snowpipe bills 1.25× serverless compute credits plus 0.06 credits per 1,000 files notified, making file sizes of 100–250 MB compressed optimal for both Snowpipe and `COPY INTO`. |
|
| 3 | In Snowflake Virtual Warehouses, when should you Scale Up (resize XS -> 6XL) versus Scale Out (Multi-Cluster Warehouse min/max clusters), and how does billing work? | Scale Up (larger T-shirt size, doubling credits/hr) for complex queries or disk spilling; Scale Out (Multi-Cluster) for concurrency queues; billed per second (60s minimum). | If a Medium warehouse (4 credits/hr) starts, runs a 15-second query, and suspends, it is billed for the 60-second minimum; if it runs for 75 seconds, it is billed for exactly 75 seconds. |
|
| 4 | In Snowpark (Python, Java, Scala) and Snowflake Stored Procedures vs. UDFs, how does execution Rights (`EXECUTE AS OWNER` vs. `EXECUTE AS CALLER`) work? | Snowpark pushes DataFrames down as SQL into Virtual Warehouses; Stored Procedures default to `EXECUTE AS OWNER` (creator privileges), whereas `EXECUTE AS CALLER` uses caller privileges. | Unlike UDFs (which must return a single scalar or tabular expression and can be called inside a `SELECT` statement), Stored Procedures are invoked via `CALL proc()` and can execute DDL/DML and administrative commands. |
|
| 5 | How does the Snowflake Search Optimization Service (SOS) differ from Clustering Keys? | Search Optimization builds a persistent secondary search access path for selective point lookups (`=`, `IN`), substring, geospatial, and `VARIANT` queries without re-sorting micro-partitions. | When an operational API runs thousands of sub-second lookups like `WHERE user_uuid = 'a8f9...'` on a 20 TB table already clustered by `event_date`, enabling `ALTER TABLE t ADD SEARCH OPTIMIZATION ON EQUALITY(user_uuid)` prunes micro-partitions instantly. |
|
| 6 | What is the difference between Database Replication (`REPLICATION GROUP`) and Account Failover (`FAILOVER GROUP`) in Snowflake Business Continuity? | Replication Groups (all editions) replicate read-only databases across regions/clouds; Failover Groups (Business Critical+) add read-write promotion of databases, users, roles, warehouses, and Client Redirect. | During a regional AWS us-east-1 outage, an enterprise with Business Critical Edition runs `ALTER FAILOVER GROUP fg_prod PRIMARY` in Azure East US 2 and updates the `CONNECTION` primary so BI applications reconnect seamlessly. |
|
| 7 | What are the six standard system-defined roles in Snowflake Role-Based Access Control (RBAC), and what is the recommended role hierarchy? | `ORGADMIN`, `ACCOUNTADMIN` (top account role), `SECURITYADMIN` (global grants, inherits `USERADMIN`), `USERADMIN` (users/roles), `SYSADMIN` (warehouses/databases; parent for custom roles), and `PUBLIC`. | If an engineer creates a database while using `ACCOUNTADMIN` or a custom role not granted to `SYSADMIN`, system administrators under `SYSADMIN` cannot manage that database unless ownership or privileges are explicitly granted. |
|
| 8 | In Snowflake RBAC, how do Secondary Roles (`USE SECONDARY ROLES ALL`), Managed Access Schemas (`WITH MANAGED ACCESS`), and Future Grants work? | `USE SECONDARY ROLES ALL` activates privileges across all granted roles; Managed Access Schemas restrict `GRANT` authority to the Schema Owner and `SECURITYADMIN`. | In a Managed Access Schema (`CREATE SCHEMA fin WITH MANAGED ACCESS`), even if Role A owns table `t1`, Role A cannot grant `SELECT` on `t1`—only the schema owner or `SECURITYADMIN` can issue grants. |
|
| 9 | What responsibilities reside in Snowflake's Cloud Services layer, and how is Cloud Services compute billed? | Cloud Services handles authentication, RBAC, metadata, query optimization, and the Result Cache; it is billed only when exceeding 10% of daily warehouse compute credits. | Running `SELECT COUNT(*) FROM sales` or `SHOW TABLES` is answered purely from Cloud Services metadata without starting a Virtual Warehouse, and costs zero credits unless daily Cloud Services usage exceeds 10% of daily compute. |
|
| 10 | How are Snowflake Micro-Partitions structured, sized, and pruned during query execution? | Tables are automatically divided into immutable, compressed columnar micro-partitions (50–500 MB uncompressed) with per-column min/max metadata enabling horizontal and vertical pruning. | Because micro-partitions are immutable, updating a single row in a 16 MB micro-partition causes Snowflake to mark the old micro-partition as historical (for Time Travel) and write a brand-new micro-partition. |
|
| 11 | How does Zero-Copy Cloning (`CREATE ... CLONE`) work in Snowflake regarding storage costs, micro-partitions, and privileges? | Cloning creates new metadata pointers to existing immutable micro-partitions at zero initial storage cost; storage is billed only as new micro-partitions are written. | When `CREATE DATABASE dev_db CLONE prod_db` runs, child tables inside `dev_db` retain their grants, whereas a standalone cloned table requires `COPY GRANTS` to inherit privileges. |
|
| 12 | In Snowflake data loading, what are the three types of Internal Stages vs. External Stages, and which prefixes reference them in SQL? | User Stage (`@~`), Table Stage (`@%table`), Named Internal Stage (`@stage`), and Named External Stage (`@ext_stage` referencing S3/ADLS/GCS via a Storage Integration). | Running `PUT file:///tmp/data.csv @%orders;` uploads a local file via SnowSQL into the `orders` Table Stage, whereas production pipelines use a Named External Stage backed by a `STORAGE INTEGRATION` (avoiding hard-coded cloud keys). |
|
| 13 | How does Snowflake Secure Data Sharing (`SHARE` objects, Reader Accounts, and the Snowflake Marketplace) work? | Providers share live read-only databases, tables, and Secure Views via a `SHARE` with zero data copy; Consumers pay for compute (Providers pay for Reader Accounts). | If a Consumer does not have a Snowflake account, the Provider creates a managed Reader Account (`CREATE MANAGED ACCOUNT`), in which case the Provider pays for both storage and Reader Account compute. |
|
| 14 | When should you define a Clustering Key on a Snowflake table, and how does Automatic Clustering work? | Define Clustering Keys (1–4 columns ordered low-to-high cardinality) only on multi-terabyte tables with slow pruning; serverless Automatic Clustering maintains them in the background. | Inspecting `SYSTEM$CLUSTERING_INFORMATION('fact_events', '(event_date)')` reveals a high `average_depth`, prompting the team to run `ALTER TABLE fact_events CLUSTER BY (event_date, region)`. |
|
| 15 | How do the `INFORMATION_SCHEMA` and the `SNOWFLAKE.ACCOUNT_USAGE` views differ in query latency, retention period, and dropped objects? | `INFORMATION_SCHEMA` has 0 latency, 7d–6m retention, and excludes dropped objects; `ACCOUNT_USAGE` has 45m–3h latency, 365-day retention, and includes dropped objects. | To audit Virtual Warehouse credit usage over the past 9 months or inspect tables dropped last month, query `SNOWFLAKE.ACCOUNT_USAGE.WAREHOUSE_METERING_HISTORY` and `SNOWFLAKE.ACCOUNT_USAGE.TABLES`. |
|
| 16 | How do Snowflake Resource Monitors control credit spend, and what are the three trigger actions? | Created by `ACCOUNTADMIN`, Resource Monitors track warehouse credit quotas and trigger `NOTIFY`, `NOTIFY & SUSPEND` (finishes running queries), or `NOTIFY & SUSPEND IMMEDIATELY` (aborts queries). | Configuring a monthly Resource Monitor with `TRIGGERS ON 80 PERCENT DO NOTIFY ON 100 PERCENT DO SUSPEND ON 110 PERCENT DO SUSPEND_IMMEDIATE` protects the account from runaway warehouse queries. |
|
| 17 | How does Snowflake store and query semi-structured data (`VARIANT`, `OBJECT`, `ARRAY`), and how do `:`, `.`, `[]`, and `LATERAL FLATTEN` work? | Semi-structured data is stored in `VARIANT` columns (16 MB max); query paths via `col:key.subkey::TYPE` and explode nested arrays into rows using `LATERAL FLATTEN(INPUT => ...)`. | Querying `SELECT v:customer.name::STRING, f.value:sku::STRING FROM raw_orders, LATERAL FLATTEN(INPUT => v:items) f` extracts the customer name as a native `VARCHAR` (stripping JSON quotes) and flattens the nested `items` array. |
|
| 18 | What are the three caching layers in Snowflake, where does each live, and when is each invalidated? | Metadata Cache (Cloud Services, persistent), Result Cache (Cloud Services, 24-hour TTL up to 31 days), and Local SSD Data Cache (Virtual Warehouse, cleared on suspend). | When a dashboard runs the exact same SQL query with no non-deterministic functions (`CURRENT_TIMESTAMP()`) and no underlying table changes, the Cloud Services Result Cache returns the answer in milliseconds without waking a suspended Virtual Warehouse. |
|
| 19 | How do Dynamic Data Masking, Row Access Policies, Projection Policies, and Aggregation Policies enforce column- and row-level security in Snowflake (Enterprise Edition+)? | Masking Policies redact column values; Row Access Policies filter rows; Projection Policies block `SELECT` projection; Aggregation Policies enforce a minimum group size. | In a Data Clean Room, attaching an Aggregation Policy with `MIN_GROUP_SIZE => 100` and a Projection Policy on `email` lets a partner run demographic cohort counts without ever isolating an individual customer's record. |
|
| 20 | Compare Standard Views, Secure Views, and Materialized Views in Snowflake. | Standard Views are logical definitions; Secure Views hide DDL and optimizer pushdowns (required for Shares); Materialized Views pre-compute single-table query results physically. | Because a Materialized View in Snowflake can query only a single base table (no joins with other tables), engineers use **Dynamic Tables** when they need pre-computed materialized results across multi-table joins. |
|
| 21 | What is Snowflake Cortex AI, and which built-in LLM/ML functions are tested on modern Snowflake exams? | Snowflake Cortex provides serverless SQL/Python LLM functions (`COMPLETE`, `SUMMARIZE`, `SENTIMENT`, `TRANSLATE`, `EXTRACT_ANSWER`, `EMBED_TEXT`), Cortex Search (RAG), and Cortex Analyst (text-to-SQL). | An analyst runs `SELECT SNOWFLAKE.CORTEX.SENTIMENT(review_text), SNOWFLAKE.CORTEX.SUMMARIZE(review_text) FROM product_reviews` directly in SQL using serverless Cortex credits without exporting customer text to external APIs. |
|
| 22 | Compare Permanent, Transient, Temporary, and External tables in Snowflake across Time Travel and Fail-safe retention. | Permanent tables have 0–90 days Time Travel plus 7-day Fail-safe; Transient and Temporary tables have 0–1 day Time Travel and 0 Fail-safe. | To avoid paying for 7 days of Fail-safe storage on 5 TB of nightly staging tables that can be easily reloaded from S3, engineers create them as `CREATE TRANSIENT TABLE raw_stg (...)`. |
|
| 23 | How do Snowflake Streams (Change Data Capture) work, what metadata columns do they add, and how is a Stream's offset advanced? | Streams track CDC offsets using `METADATA$ACTION`, `METADATA$ISUPDATE`, and `METADATA$ROW_ID`; the offset advances ONLY when the stream is consumed inside a committed DML transaction. | In a Standard (delta) Stream, an `UPDATE` to a single row appears as two records—one `DELETE` and one `INSERT`—both with `METADATA$ISUPDATE = TRUE`; running a plain `SELECT * FROM my_stream` does NOT advance the offset. |
|
| 24 | How do Snowflake Tasks (`CREATE TASK`) and Dynamic Tables (`CREATE DYNAMIC TABLE`) compare for building automated data pipelines? | Tasks schedule procedural SQL/DAGs (starting `SUSPENDED` by default); Dynamic Tables declaratively materialize a SQL query and automatically refresh incrementally to meet a `TARGET_LAG`. | After creating a DAG of Tasks, a developer must explicitly run `ALTER TASK child_task RESUME` and then `ALTER TASK root_task RESUME` (or `SYSTEM$TASK_DEPENDENTS_ENABLE`) because newly created Tasks always start in a `SUSPENDED` state. |
|
| 25 | What is Tag-Based Masking in Snowflake Object Tagging? | Tag-Based Masking attaches a `MASKING POLICY` per data type directly to a `TAG`, automatically masking any column, table, or schema assigned that tag. | When Snowsight Data Classification automatically tags 400 new `VARCHAR` columns across 50 tables with `privacy_category = 'IDENTIFIER'`, Tag-Based Masking immediately protects every column without running 400 individual `ALTER COLUMN` statements. |
|
| 26 | How do Network Policies (`CREATE NETWORK POLICY`) and Multi-Factor Authentication (MFA / Duo) secure Snowflake account access? | Network Policies filter IPv4/PrivateLink access using Allowed and Blocked lists (`BLOCKED` evaluated first), and User-level Network Policies override Account-level Network Policies. | If the Account Network Policy allows `10.0.0.0/8` while a service account (`svc_etl`) has a User-Level Network Policy allowing only `192.168.1.50/32`, `svc_etl` can connect ONLY from `192.168.1.50` because user-level policies override account-level policies. |
|
| 27 | How do the four Snowflake Editions (Standard, Enterprise, Business Critical, and Virtual Private Snowflake / VPS) progress in capabilities? | Standard (1-day Time Travel); Enterprise (Multi-Cluster Warehouses, 90-day Time Travel, Masking/Row Policies); Business Critical (PrivateLink, Tri-Secret Secure, Failover); VPS (isolated environment). | If an organization requires Multi-Cluster Warehouses for BI concurrency and 45-day Time Travel, the minimum required edition is Enterprise; if it requires AWS PrivateLink or Customer-Managed Keys (Tri-Secret Secure), it needs Business Critical. |
|
| 28 | What SQL clauses and commands does Snowflake Time Travel provide (`AT | BEFORE` and `UNDROP`)? | Query past states via `AT` or `BEFORE` (`TIMESTAMP`, `OFFSET`, or `STATEMENT`), and restore dropped tables, schemas, or databases via `UNDROP`. | If an ETL script accidentally drops the `dim_customers` table, running `UNDROP TABLE dim_customers;` immediately restores the table and its metadata without scanning storage. |
|
| 29 | What is the official exam format, duration, passing score, and 3-layer architecture tested on the Snowflake SnowPro Core (COF-C02) exam? | 100 questions in 115 minutes (750/1000 pass); Snowflake separates Database Storage, Query Processing (MPP Virtual Warehouses), and Cloud Services. | Because Storage (S3/Blob/GCS) and Compute (MPP Virtual Warehouses) are completely decoupled, 10 different Virtual Warehouses can query the exact same table simultaneously without resource contention. |
|
| 30 | How do you unload data from a Snowflake table to cloud storage (`COPY INTO <location>`), and how do you export a single file or exceed the 16 MB default max file size? | Run `COPY INTO @stage FROM table`; Snowflake unloads parallel files capped at 16 MB unless `SINGLE=TRUE` or `MAX_FILE_SIZE` (up to 5 GB) is set. | To export a daily customer extract as a single Parquet file with column headers, run `COPY INTO @ext_stage/cust.parquet FROM customers FILE_FORMAT = (TYPE = PARQUET) SINGLE = TRUE HEADER = TRUE`. |
|
| 31 | What are the `ON_ERROR` options for `COPY INTO <table>`, and what does `VALIDATION_MODE` do? | `ON_ERROR` supports `ABORT_STATEMENT` (bulk default), `CONTINUE`, and `SKIP_FILE` (Snowpipe default); `VALIDATION_MODE` dry-runs the load to return parsing errors without inserting rows. | Running `COPY INTO sales FROM @my_stage VALIDATION_MODE = 'RETURN_ALL_ERRORS'` parses staged CSVs and returns every rejected row and line number without modifying the `sales` table. |
|
| 32 | What are Snowflake Iceberg Tables and Hybrid Tables (Unistore), and what workloads do they solve? | Iceberg Tables query open Parquet/Iceberg files on external storage (`EXTERNAL_VOLUME`); Hybrid Tables provide row-based storage with enforced primary keys and row locking for OLTP. | An application state service uses a Snowflake Hybrid Table to execute sub-10ms single-row `INSERT`/`UPDATE` point transactions with enforced foreign keys while joining that live operational state directly with analytical fact tables. |
|